【问题标题】:Command line start ssms with localdb does not work使用 localdb 的命令行启动 ssms 不起作用
【发布时间】:2015-12-05 09:00:59
【问题描述】:

我需要从连接到 (localdb)\myinstance 的命令行启动 ssms (SQL Management Studio)。实例存在

sqllocaldb info myinstance

但是在 (localdb)\myinstance 中使用命令行和 -S 参数会引发错误。

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

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

【问题讨论】:

  • 您必须共享实例吗?我发现的唯一另一件事是关于(localdb)\.

标签: ssms


【解决方案1】:

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

【讨论】:

  • 不,那没用,我也试过了。\myinstance,我想知道它是否与 ssms 命令行参数不接受(localdb)有关。
猜你喜欢
  • 2012-10-07
  • 1970-01-01
  • 1970-01-01
  • 2019-08-08
  • 1970-01-01
  • 2021-05-19
  • 2020-11-25
  • 1970-01-01
  • 2022-12-21
相关资源
最近更新 更多