SQL Server Network Interfaces: Connection string is not valid [87]

前端 未结 3 2420
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 08:08

When I am running this from cmd on my SQL Server 2008 instance:

sqlcmd -U sa -S mymachinen_name\\MSSQLSERVER

(where MSSQLSERVER

3条回答
  •  抹茶落季
    2020-12-19 08:57

    I encountered this error trying to connect to the server through Jenkins and resolved it this way:

    sqlcmd  -e -S "SERVER_NAME,PORT_NUMBER" -U %USER% -P %PASSWORD% -i "D:\\test.sql"
    

提交回复
热议问题