Connect to multiple sql servers on ssms launch

62lalag4  于 2024-01-05  发布在  SQL Server
关注(0)|答案(1)|浏览(129)

I'm trying to automate the launch of SSMS to automatically load my Solution file and connect to two servers.

I have the file bit working, but can only make it connect to one server.

I use the -S parameter in the command line, but when I use more than one, it only uses the end one.

Is there a way to use -S to connect to multiple servers?

Code: c:\ssms.exe -E -S myServer\myInstance -S myOtherServer\OtherInsance "c:\mySol.ssmssln"

hs1rzwqc

hs1rzwqc1#

Check SSMSBoost add-in that I develop. It allows to auto-connect servers during start-up, also it has "Workspaces" - lists of documents with connections, that can be loaded with 1 click. Restore previous session is also included.

相关问题