Script to automatically open SQL Server Management

2019-08-12 22:42发布

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

2条回答
The star\"
2楼-- · 2019-08-12 23:11

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

查看更多
Emotional °昔
3楼-- · 2019-08-12 23:22

With C#:

using System; 
using System.Diagnostics;

void StartStudio() 
{
      Process proc = new Process();
      proc.StartInfo.FileName = "ssms";
      proc.Start(); 
}
查看更多
登录 后发表回答