Script to automatically open SQL Server Management Studio 2005 from another interface

故事扮演 提交于 2019-12-11 12:37:21

问题


Please I need help with a script that can help me open the SQL Server Management Studio 2005 from a button in an another interface.

Thanks Roger


回答1:


sqlwb.exe is SSMS in SQL Server 2005 and it has parameters such as -S etc for Server name, but also has a filename parameter.

At command prompt, run sqlwb /? to get command line usage




回答2:


With C#:

using System; 
using System.Diagnostics;

void StartStudio() 
{
      Process proc = new Process();
      proc.StartInfo.FileName = "ssms";
      proc.Start(); 
}


来源:https://stackoverflow.com/questions/1353863/script-to-automatically-open-sql-server-management-studio-2005-from-another-inte

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!