安装的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