【发布时间】:2014-02-15 13:00:54
【问题描述】:
安装的freetds
/etc/odbcinst.ini
[FreeTDS]
Description = ODBC for Microsoft SQL
Driver = /usr/lib/libtdsodbc.so
UsageCount = 1
Threading = 2
/etc/odbc.ini
[myserver-connector]
Description = MS SQL connection to 'asterisk' database
Driver = FreeTDS
Database = mydb
Server = 192.168.100.1
UserName = sampleuser
Password = password
Trace = No
TDS_Version = 7.0
Port = 1433
echo "select 1" | isql -v myserver-connector
我收到以下错误消息:
[01000][unixODBC][Driver Manager]Can't open lib '/usr/lib/libtdsodbc.so' : file not found
[ISQL]ERROR: Could not SQLConnect
【问题讨论】:
-
您可以使用 apt-file 实用程序查看是否有提供该 .so 文件的包。
标签: sql-server ubuntu freetds