I have a number of SQL script files in a database project. When I open some of them, the editor includes a toolbar, with options to connect to database, execute the script, etc.

However, when I open some of them, that toolbar is not shown, and there appears to be no way to execute the script.

How can I get that bar to appear?


A fix that seems to work for me is to change the Build Action to be "None" in the properties for the sql file in question. Close and reopen the file, and voila there is the infamous connection toolbar.


Unfortunately the above answer means that Database Projects is rendered pointless. A better solution is to build your own bespoke toolbar using the toolbar controls and commands from the SQL Menu.

  • 1
    Can you explain how to do this? – fixer1234 May 10 '16 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.