How to connect to SQL Server LocalDB using Invoke-Sqlcmd?

后端 未结 4 2035
猫巷女王i
猫巷女王i 2021-02-20 11:39

I have sqlcmd.exe from both SQLServer 2008 and SQLServer 2012:

PS C:\\> Get-Command sqlcmd.exe

Definition
----------
C:\\Program Files\\Microsof         


        
4条回答
  •  抹茶落季
    2021-02-20 12:07

    I'm guessing that invoke-sqlcmd doesn't know what "(localdb)" is. Try using localhost instead.

提交回复
热议问题