获取'08S01','[08S01] [Microsoft] [SQL Server的ODBC驱动程序11]通信链接失败(0)(SQLExecDirectW)'

时间:2018-03-24 19:56:23

标签: python sql sql-server python-3.x pyodbc

我在CentOS上使用pyodbc和Microsoft SQL Server数据库。事情很好但突然间我开始得到'08S01', '[08S01] [Microsoft][ODBC Driver 11 for SQL Server]Communication link failure (0) (SQLExecDirectW)'。我寻找解决方案,并获得了数据库性能问题,网络连接问题的建议,我检查并正常工作。它甚至不会生成跟踪文件。

我的配置

/etc/odbc.ini

[sqlserver]
TraceFile  =  /tmp/odbc.trace
Trace      =  1
Driver=FreeTDS
Description=ODBC connection via FreeTDS
Server=***
Port=1433
ServerName=sqlserver
Database=***

odbci.ini
[sqlserver]
Driver = FreeTDS
Description = ODBC connection via FreeTDS
Host = ***
Port = 1433
ServerName = sqlserver
Database = ***
TraceFile  =  /tmp/odbc.log
Trace      =  Yes

0 个答案:

没有答案