Unexpected EOF from the server.
2013-05-07 16:35
337 查看
被一个问题烦了好多天,终于TMD找到了解决办法,FUCK
在linux下安装unixodbc和freetds,实现在linux下访问ms-sqlserver的功能。
添加了许多环境变量之后,isql和tsql都可以正常使用。
但是调用SQLDriverConnect()函数却一直错误:
[unixODBC][FreeTDS][SQL Server]Unable to connect to data source.
[unixODBC][FreeTDS][SQL Server]Adaptive Server connection failed.
[unixODBC][FreeTDS][SQL Server]Unexpected EOF from the server.
最后在stackoverflow上看到一个回答:试试添加一个环境变量TDSVER=8.0
试了下,能行!
终于搞定了,原来就这么简单,草!
在linux下安装unixodbc和freetds,实现在linux下访问ms-sqlserver的功能。
添加了许多环境变量之后,isql和tsql都可以正常使用。
但是调用SQLDriverConnect()函数却一直错误:
[unixODBC][FreeTDS][SQL Server]Unable to connect to data source.
[unixODBC][FreeTDS][SQL Server]Adaptive Server connection failed.
[unixODBC][FreeTDS][SQL Server]Unexpected EOF from the server.
最后在stackoverflow上看到一个回答:试试添加一个环境变量TDSVER=8.0
试了下,能行!
终于搞定了,原来就这么简单,草!
相关文章推荐
- Freetds 连接SQL Server 错误:Unexpected EOF from the server
- https使用HttpWebRequest出现错误:System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.的解决方法
- keystone -- An unexpected error prevented the server from fulfilling your request. 错误
- The server encountered an unexpected condition that prevented it from fulfilling the request.
- HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request.错误解决办法
- The server encountered an internal error that prevented it from fulfilling this request.
- mysqldump 备份某张表 Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions,
- 小心vCenter Server磁盘空间不足(Unexpected exception from PowerOnIntImpl)
- Communications link failure,The last packet successfully received from the server was *** millisecon
- mysql重连,连接丢失:The last packet successfully received from the server
- 彻底解决"The last packet successfully received from the server was * milliseconds ago"问题
- 异常之 Could not create the view: An unexpected exception was thrown.(server出错)
- Error message when you try to install a SQL Server 2005 service pack or a SQL Server 2005 hotfix package: "Error 29528. The setup has encountered an unexpected error while Setting Internal Properties"
- The server encountered an internal error () that prevented it from fulfilling this request
- Siverlight访问WCF The remote server returned an unexpected response: (404) Not Found 解决办法
- There are no resources that can be added or removed from the server. .
- There are no resources that can be added or removed from the server
- Cannot obtain the required interface ("IID_IDBCreateCommand") from OLE DB provider "OraOLEDB.Oracle" for linked server xxxx
- 常见错误tomcat部署项目报错There are no resources that can be added or removed from the server
- description The server encountered an internal error () that prevented it from fulfilling this request.