- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我正在使用 FreeTDS 0.91 连接到远程 MSSQL 服务器,但到目前为止所有尝试都没有结果。
在我的 Unix 上执行 tsql 命令时,出现以下错误:
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Error 20004 (severity 9)
Read from the server failed
OS error 104, "Connection reset by peer"
Error 20002 (severity 9)
Adaptive Server connection failed
There was a problem connecting to the server
freetds.log 中包含以下内容:
16:05:49.144905 20207 (log.c:196):Starting log file for FreeTDS 0.91
on 2011-09-28 16:05:49 with debug flags 0xffff.
16:05:49.145281 20207 (iconv.c:330):tds_iconv_open(0x3d29320, UTF-8)
16:05:49.145426 20207 (iconv.c:187):local name for ISO-8859-1 is ISO-8859-1
16:05:49.145448 20207 (iconv.c:187):local name for UTF-8 is UTF-8
16:05:49.145459 20207 (iconv.c:187):local name for UCS-2LE is UCS-2LE
16:05:49.145469 20207 (iconv.c:187):local name for UCS-2BE is UCS-2BE
16:05:49.145479 20207 (iconv.c:349):setting up conversions for client charset "UTF-8"
16:05:49.145489 20207 (iconv.c:351):preparing iconv for "UTF-8" "UCS-2LE" conversion
16:05:49.145508 20207 (iconv.c:391):preparing iconv for "ISO-8859-1" "UCS-2LE" conversion
16:05:49.145533 20207 (iconv.c:394):tds_iconv_open: done
16:05:49.145550 20207 (net.c:205):Connecting to 70.70.218.13 port 2600 (TDS version 7.0)
16:05:49.145686 20207 (net.c:270):tds_open_socket: connect(2) returned "Operation now in progress"
16:05:49.236008 20207 (net.c:310):tds_open_socket() succeeded
16:05:49.236061 20207 (util.c:156):Changed query state from DEAD to IDLE
16:05:49.236083 20207 (login.c:782):quietly sending TDS 7+ login packet
16:05:49.236173 20207 (token.c:328):tds_process_login_tokens()
16:05:49.857930 20207 (util.c:331):tdserror(0x3d29080, 0x3d29320, 20004, 104)
16:05:49.858072 20207 (util.c:361):tdserror: client library returned TDS_INT_CANCEL(2)
16:05:49.858090 20207 (util.c:384):tdserror: returning TDS_INT_CANCEL(2)
16:05:49.858114 20207 (util.c:156):Changed query state from IDLE to DEAD
16:05:49.858137 20207 (token.c:337):looking for login token, got 0()
16:05:49.858155 20207 (token.c:122):tds_process_default_tokens() marker is 0()
16:05:49.858168 20207 (token.c:125):leaving tds_process_default_tokens() connection dead
16:05:49.858179 20207 (login.c:466):login packet accepted
16:05:49.858189 20207 (util.c:331):tdserror(0x3d29080, 0x3d29320, 20002, 0)
16:05:49.858209 20207 (util.c:361):tdserror: client library returned TDS_INT_CANCEL(2)
16:05:49.858220 20207 (util.c:384):tdserror: returning TDS_INT_CANCEL(2)
16:05:49.858232 20207 (mem.c:615):tds_free_all_results()
这看起来像是 SQL 服务器的问题,还是我安装或配置了 FreeTDS 错误?
迷路了。请帮忙。
当我通过 telnet 连接到服务器时,这是我得到的响应:
正在尝试 70.70.218.13...
连接到 70.70.218.13。
转义字符是'^]'。
^^
外部主机关闭了连接。
这是否意味着与主机的 telnet 连接成功?
SQL 数据库在 Windows 服务器上运行。连接到 Windows 服务器(就像通过远程桌面一样)是否是用于主机名和端口的正确类型的值?还是我必须在 Windows 服务器上找到 SQL 服务器的直接主机名?
最佳答案
汗。
我刚遇到同样的情况。我通过在我的主页中添加 .freetds.conf 解决了这个问题,
[global]
# TDS protocol version
tds version = 7.0
我知道这正是大多数 FreeTDS 连接问题的答案。
并且@Michael Berkowski 也提供了这个方法。
关于sql-server - FreeTDS 连接问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7590944/
我试图弄清楚这两个拼图在连接到 Linux 上的 MS-SQL 服务器时如何交互和组合在一起。 据我了解,FreeTDS 是用于与 MS-SQL 对话的协议(protocol)(即一组规则),它是真正
我正在尝试创建我的第一个图像,这是我从其他人那里 fork 出来的,但我遇到了构建失败的问题。看起来错误就在这里 [91mconfigure: error: Cannot find FreeTDS i
我实际上正在尝试通过依赖于 FreeTDS 的模块 pymssql 从 Python 连接到 Azure 上的 MS SQL Server。我只是无法让它发挥作用。我找到了命令行工具 tsql,它应该
我有一个问题,即使我在这些设置中设置为 8.0,FreeTDS 仍然使用 4.2 版进行连接 我可以使用 tsql 进行连接,当我使用 tsql 时,它显示它正在使用 7.1(来自 8.0 的别名),
我有两台相同的服务器(称为测试和生产),Linux Red Hat Enterprise Linux Server 6.2 版(圣地亚哥)、PHP 5.4.2 版、Apache Apache 2.4.
我正在尝试从 Ubuntu 14.04.4 服务器连接到在 Windows 10 上运行的 Pervasive Sql Server。 我正在使用以下服务尝试连接到服务器: FreeTDS unixO
我正在使用安装在 OS X Snow Leopard 上的 FreeTDS 0.82 连接到 SQL Server 2005 数据库。 当我尝试连接 tsql 时,我得到了这个: tsql -S ab
我有一个 C 程序通过 FreeTDS 连接到 MSSQL 数据库. 我正在尝试执行一个 varchar 参数设置为类似“Saída Liberada”的存储过程,但它在 MS SQL 中以奇怪的字符
SQL语句下面 SELECT getdate() go 当我从 SQL Server management studio 运行时,它给出了 "Jul 27 2016 22:00:00.860" 当我从
将应用程序移动到具有更新软件的新服务器后(从 php 5.2.17 -> 5.3.15、FreeTDS 0.64 -> 0.82 移动) SELECT GETDATE() 和任何其他日期时间函数/列产
我们正在为数据库运行带有 Microsoft SQL Server 的 Linux 服务器。除了 FreeTDS 之外,还有什么好的(最好是开源的)c 库可供我们使用吗? 谢谢 最佳答案 不是真的。
我有一个 UBUNTU LAMP 设置。安装了所有必要的扩展 php5-odbcphp5-mssqlFREETDSunixODBC 在 CLI 中,我使用 isql 测试了与数据库的连接。和 tsql
我正在尝试使用 FreeTDS 连接到 MSSQL 2005 服务器。 但我收到“用户登录失败”错误。在 FreeTDS manual 故障排除部分中有一个部分。但它没有提到任何与之相关的可能错误。我
freetds v0.91 - tds 版本不匹配 我想在 Ubuntu 14.04 上使用 FreeBSD 连接到 Windows SQL Server。 FreeTDS 是使用 apt-get 安
我正在迁移一个连接到外部 MSSQL 数据库的 PHP 网站。新服务器是 Linux 服务器。我知道要让它工作,我需要一个适用于 Linux 的 ODBC 驱动程序,如下所示: 免费TDS Micro
我正在使用 FreeTDS 0.91 连接到远程 MSSQL 服务器,但到目前为止所有尝试都没有结果。 在我的 Unix 上执行 tsql 命令时,出现以下错误: locale is "en_US
我决定使用 FreeTDS 驱动程序和 unixODBC 来管理我的基于 LAMP 的应用程序与远程 MsSQL 数据库之间的 PDO 连接。不幸的是,驱动程序似乎没有读取 freetds.conf
我在使用 DBI 和 FreeTDS(在 Ubuntu 上)将一些数据插入 SQL Azure 时遇到了 Perl 的间歇性问题。可能会出现问题,并且忽略了某些行,然后我可以再次运行它而不会出现问题。
我正在寻找分步指南,如何在 Heroku 上安装 freetds。我需要从 ruby 脚本访问 Sql Server,不幸的是,Cedar 不支持开箱即用的 tinytds gem。我已经阅读了互
我在 Centos 7 Linux 机器上尝试通过 pyodbc 连接到 SQL 数据库。我了解到您需要设置 DSN,您可以通过安装 freetds 驱动程序并执行以下操作来实现: import py
我是一名优秀的程序员,十分优秀!