Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 Open ssms from command line

Author  Topic 

mrhadley
Starting Member

1 Post

Posted - 2014-12-02 : 16:58:25
I have a program that can open a file, I can choose to open it inside sql server management studio(ssms).

I have found how I can open a file in it from the command line. I cant figure out how to open a file and going to a specific line from command line. Is this possible ?

For visual studio I have used GetRunningObjectTable, casting object to EnvDTE80.DTE2, open a file inside this and using goto to go to the correct line. My wondering is also if the above is not possible are there something similar for ssms like I have used for visual studio ?

Please help I have been stuck for a few days now.

Thanks.
   

- Advertisement -