sql server - Visual Studio - Open a SQL file with SQL Management Studio in an existing SSMS window? -
I am using Visual Studio 2008 and SQL Server 2008. Let me open my VS in SQL Projects should have .sql files. By default, management studios have no problem so far: I right-click on the file, open with, add SSMS and set it as the default that I do not like is that it opens a new instance of SSMS every time , And I would like to open it in an existing instance.
I have seen that the open command is connected to it. Ssms.exe calls in SQL files (which I want is the behavior) / dde switch in windows. Definitely not sure what the switch does, but I played with it and with nothing to open a file in an existing context, there is nothing in doing so.
How can I treat this behavior in a visual studio?
Thanks in advance! Right click on the .sql file in Visual Studio, then click on "Open With",
Then click on "Add" ... in the "Open" dialog. To do something in the "add program" dialog type "explorer.exe" and "firewall name" fields in the Program Name field. Click "OK with Explorer", then click OK, then with the dialog, select "With Exclorator" in "Open" and click on "Set as Default" Now VS SQL files will open with Explorer, which will be in their turn call SSMS.
Normally if you open 2 separate .sql files in Explorer, you get them in a single SSMS window. If it still opens 2 SSMS window, then you have to fix the registry (replace / delete DD with HKEY_CLASSES_ROOT \ sqlwb.sql.9.0 \ shell \ open \ command,% 1)
Comments
Post a Comment