I use Visual Studio 2008 and SQL Server 2008. I would like the .sql files in my VS projects to open in SQL Management Studio by default. There are no problems so far: I right-clicked the file, Open With, Add SSMS and set it as the default. I do not like that every time he opens a new instance of SSMS, and I would like it to open in an existing instance, if any.
I noticed that the Open command associated with .sql files on Windows (which has the behavior I want) calls ssms.exe with the / dde switch. Not quite sure what the switch does, but I played with it, and it seems to have nothing to do with opening files in an existing instance.
Any idea how I can get this behavior to work in Visual Studio?
Thanks in advance!
sql sql-server visual-studio
Todd menier
source share