首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Sqlcmd:错误:用于Server的Microsoft驱动程序17

Sqlcmd:错误:用于Server的Microsoft驱动程序17
EN

Ask Ubuntu用户
提问于 2018-07-13 09:01:06
回答 1查看 24.5K关注 0票数 7

我无法运行sqlcmd命令我的操作系统(18.04)是

$ uname -a Linux 4.15.0-23-泛型#25-Ubuntu 5月23日18:02:16 UTC 2018 x86_64 GNU/Linux

代码语言:javascript
运行
复制
$ 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..
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2019-01-09 02:55:21

我们也有同样的问题

我已经修复了这个问题,只需用localhost替换为127.0.0.1

sqlcmd -S 127.0.0.1 -U SA

票数 8
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1054747

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档