FreeTDS v0.91 - TdS версия несоответствующие
Я хочу подключиться к Windows, SQL Server с FreeBSD на Ubuntu 14.04. FreeTDS устанавливается с помощью apt-get. я попробовал разные версии TdS со следующими командами:FreeTDS не использует сконфигурированный TdS версию
$ TDSVER=7.0 tsql -H xxx.xxx.xxx.xxx -U xxxx -p 1433 -P xxxxxxx
Файл журнала показывает:
...
net.c:205:Connecting to xxx.xxx.xxx.xxx port 1433 (TDS version 7.0)
net.c:270:tds_open_socket: connect(2) returned "Operation now in progress"
net.c:310:tds_open_socket() succeeded
...
Нет проблем здесь. Но если я изменю TDSVER до 7,4:
$ TDSVER=7.4 tsql -H xxx.xxx.xxx.xxx -U xxxx -p 1433 -P xxxxxxx
ТДС версия будет 4.2?
...
net.c:205:Connecting to xxx.xxx.xxx.xxx port 1433 (TDS version 4.2)
net.c:270:tds_open_socket: connect(2) returned "Operation now in progress"
net.c:310:tds_open_socket() succeeded
...
Выход команды $ tsql -C
является:
Compile-time settings (established with the "configure" script)
Version: freetds v0.91
freetds.conf directory: /etc/freetds
MS db-lib source compatibility: no
Sybase binary compatibility: yes
Thread safety: yes
iconv library: yes
TDS version: 4.2
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: yes
Я пытался настроить TdS версию в ~/.freetds.conf, результаты одинаковы.
FreeTDS v1.00.9 - соответствует
Затем я попытался построить версию, загруженный с мерзавцем и установить под моей домашней папке. Это кажется версия подобран:
$ TDSVER=7.4 .local/bin/tsql -H xxx.xxx.xxx.xxx -U xxxx -p 1433 -P xxxxxxx
...
iconv.c:384:tds_iconv_open: done
net.c:216:Connecting to xxx.xxx.xxx.xxx port 1433 (TDS version 7.4)
net.c:242:tds_open_socket: connect(2) returned "Operation now in progress"
net.c:343:tds_open_socket() succeeded
...
Выход $ .local/bin/tsql -C
является:
Compile-time settings (established with the "configure" script)
Version: freetds v1.00.9
freetds.conf directory: /home/bgdata/.local/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: auto
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: no
OpenSSL: no
GnuTLS: no
MARS: no
Это что ошибка в v0.91 или я сделал что-то не так? Спасибо.