我无法运行sqlcmd
命令我的操作系统(18.04)是
$ uname -a Linux 4.15.0-23-泛型#25-Ubuntu 5月23日18:02:16 UTC 2018 x86_64 GNU/Linux
$ sqlcmd -S localhost -U SA -P 'password'
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2749.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
发布于 2019-01-09 02:55:21
我们也有同样的问题
我已经修复了这个问题,只需用localhost
替换为127.0.0.1
sqlcmd -S 127.0.0.1 -U SA
https://askubuntu.com/questions/1054747
复制相似问题