My goal is to keep SQL Server stored procedures under source control. I also want to stop using SQL Server Management Studio and use only Visual Studio for SQL related development.
I added a new SQL Server database project to my solution. I have successfully imported my database schema into a new project, and all the SQL objects (tables, stored procedures) are in their own files.

I know that now, if I run (with F5) .sql files, my changes will be applied to mine (LocalDB) . This is fine, but what if I want to run something very quickly on another machine (for example, a dedicated SQL Server common to the whole team)? How to change the connection string of the current .sql file in the Sql server data tool editor ?
I have the latest version of the Sql Server Data Tools extension for Visual Studio 2012 (SQL Server Data Tools 11.1.31203.1). I do not know if this is related to the current version, but I can no longer find the Transact-SQL editor toolbar.
I also tried right-clicking on the sql editor, select Connection -> Disconnect. If I do the opposite (Connection → Connect ...), the editor connects directly (possibly to my LocalDB) without asking me how to choose my connection.
Another strange thing that I observed, if I try to run a simple SQL query (for example, select * from dbo.ApplicationUser ), I get the following message (even if autocomplete works): 
Thanks.
(Note: I have the same problem with Visual Studio 2013)
source share