How to execute sqlcmd from powershell?

前端 未结 7 1511
忘掉有多难
忘掉有多难 2020-12-29 05:11

I have a string in powershell, which contains a native sqlcmd command. The command itself can be executed successfully in cmd.exe. I have difficulty in executing them in pow

7条回答
  •  无人及你
    2020-12-29 05:51

    Both instance name and username should be fully qualified

    \Instanc_name and \Username. Only your instance name is correctly scripted.

提交回复
热议问题