我已经定义了下面的连接步骤,但是我收到了一个错误。尝试了/ usr / lib64 /中的大多数可用驱动程序,但仍然是同样的错误。
/usr/local/etc/freetds.conf
#Server defined by Victor
[THESERVER]
host = 172.xx.xxx.xx
port = 1433
tds version = 7.2
/etc/odbc.ini
# Defined by victor
[CRMCONNECT]
Description = "CRMConnect"
Driver = msSQL
Trace = Yes
Servername = THESERVER
hostname = 172.xx.xxx.xx
Database = "THE_DB"
UserName = "user"
Password = "password"
PROTOCOL = TCPIP
/etc/odbcinst.ini
[msSQL]
Description = msSQL Driver
Driver = /usr/lib64/libodbc.so.2.0.0
fileusage=1
dontdlclose=1
command
[root@darubini ~]# isql -v "CRMCONNECT" "user" "password"
Error message [IM004][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed [ISQL]ERROR: Could not SQLConnect