Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 9 down vote accepted

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.

share|improve this answer
    
Thanks, that works! – Glen Little Oct 5 '12 at 17:08

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.

share|improve this answer
1  
Can you explain how to do this? – fixer1234 May 10 at 9:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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