How to change the default connection to a server in Visual studio 2012 SQL Project?

suresh2 picture suresh2 · Jan 23, 2013 · Viewed 26.9k times · Source

In visual studio 2012 sqlproj, the default connection button always connect to the (localdb)\Projects by default. How do I change that? Every time I need to disconnect and connect again to change the server.

Answer

Yang picture Yang · Jul 5, 2013

Check the properties of your database project. Under Debug tab, there's option "Target Connection String". Change that to the server and database you want to use.