I am just learning SSDT.
I connect to a database, write some SQL, and then save it to a file as part of the project. All that works fine.
But now I want to open and run the script.
When I open the script, the toolbar at the top is missing which I normally use to run the script.
I don't understand how to get this toolbar back except by selecting "New Query" which opens up the SQL window with the toolbar, and then copy and pasting the SQL into the new window.
It seems like the Editor would automatically bring up the toolbar.
I am using VS15 with the latest SSDT.
Quite by accident, I found the answer to this question:
To make the toolbar appear, set the build action to "None". Then it will open the Editor with the toolbar.
In other words, the right way to add a script that you want to run at design time is to select "Add -> Script ->" then select "Script (Not in build)".
Then it will open with the expected toolbar.
If it is included in the build, the toolbar will not show. I am guessing that this is by design as a non-build script would normally be run at design time.