How to change the connection in Sql Server Data Tools Editor in Visual Studio -
my goal keep sql server stored procedures under source control. want stop using sql server management studio , use visual studio sql related development.
i've added new sql server database project solution. have imported database schema new project, , sql objects (tables, stored procedures) there in own files.

i know if run (with f5) .sql files changes applied (localdb). if fine, if want run on machine (like dedicated sql server shared entire team)? how can change connection string of current .sql file in sql server data tools editor?
i have latest version of sql server data tools extension visual studio 2012 (sql server data tools 11.1.31203.1). don't know if related current version, cannot find anymore transact-sql editor toolbar.
i have tried right-click on sql editor, choose connection -> disconnect. if reverse (connection -> connect...) editor directly connects automatically (probably localdb), without asking me dialog choose connection.
another strange thing i've observed, if try run simple sql query (like select * dbo.applicationuser receive following message (even if autocomplete works): 
thanks.
(note: have same issue visual studio 2013)
this should simple , straight-forward thing do, is, if using ssdt version 12.0.41025.0 (or newer, 1 suppose):
- do either:
- go
sqlmenu @ top of visual studio window - right-click inside of sql editor tab
- go
- go
connection -> - select
change connection
then display "connect server" modal dialog window.
if not see options "disconnect queries" , "change connection...", need upgrade ssdt via either:
visual studio:
go "tools" menu , "extensions , updates..."
direct download:
Comments
Post a Comment