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"
1条答案
按热度按时间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.