我需要从连接到(localdb)\ myinstance的命令行启动ssms(SQL Management Studio)。实例存在
sqllocaldb info myinstance
但是使用命令行和-S参数和(localdb)\ myinstance会引发错误。
PS C:\workingArea> ssms -S(localdb)\myinstance
localdb : The term 'localdb' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:9
+ ssms -S(localdb)\myinstance
我可以使用命名管道进行连接,但最好使用已知名称。
答案 0 :(得分:0)
您可以尝试以下操作:ssms -S LOCALHOST\myinstance
连接到LocalDb实例