使用localdb的命令行启动ssms不起作用

时间:2015-12-04 22:52:19

标签: ssms

我需要从连接到(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

我可以使用命名管道进行连接,但最好使用已知名称。

1 个答案:

答案 0 :(得分:0)

您可以尝试以下操作:ssms -S LOCALHOST\myinstance连接到LocalDb实例