How to change the port when calling sqlcmd

前端 未结 3 1624
走了就别回头了
走了就别回头了 2021-02-05 08:47

I have this command

sqlcmd.exe -E -i \"C:\\joe-db-scripts\\joe-db-tasks.Install.sql\"

and I need to add the specific non-standard port of 32001

3条回答
  •  暖寄归人
    2021-02-05 09:02

    That's it: How to Connect to the Database Engine using sqlcmd. Something like this:

    sqlcmd -S ComputerA,1691
    

提交回复
热议问题