The default installation of Visual Studio 2012 cannot open SQL documents when you double click on them in Source Control Explorer. To be able to do that you have to install the
SQL Server Data Tools for Visual Studio 2012
- Open the ” December 2012″ update page at http://msdn.microsoft.com/en-us/jj650015
- Download and install SSDTSetup.exe by clicking Download SQL Server Data Tools for Visual Studio 2012
- Close all instances of Visual Studio and SQL Server Management Studio
- Execute the downloaded installer file
For more information visit http://msdn.microsoft.com/en-US/data/tools.aspx