2011-11-04 16 views
6

Sto provando a collegarmi a un database sul mio computer host (Windows XP, SQL Server 05). La mia macchina ospite è Ubuntu 10.04. Posso collegare ed eseguire comandi con tsql, ma isql fallisce. Di seguito sono riportati i miei file di configurazione e i messaggi di errore.FreeTDS - tsql si connette, isql fallisce

freetds.conf

text size = 64512 

[SQLEXPRESS] 
host = 192.168.163.1 
port = 1433 
tds version = 7.0 

ODBCINST.INI

[FreeTDS] 
Description  = TDS driver (Sybase/MS SQL) 
Driver   = /usr/lib/odbc/libtdsodbc.so 
Setup   = /usr/lib/odbc/libtdsS.so 
CPTimeout  = 
CPReuse   = 
FileUsage  = 1 

odbc.ini

[SQLEXPRESS] 
Driver   = FreeTDS 
Description  = ODBC connection via FreeTDS 
Trace   = No 
Servername = 192.168.163.1 
Database  = SCOPE_Peel 
Port  = 1433 
UID   = sa 
PWD   = test1234 
ReadOnly = No 

tsql:

tsql -S SQLEXPRESS -U sa 
#success 

isql:

isql SQLEXPRESS sa test1234 -v 
[S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source 
[ISQL]ERROR: Could not SQLConnect 

risposta

5

La questione era questa linea in odbc.ini

Servername = 192.168.163.1

Avrebbe dovuto essere SQLEXPRESS che penso punti per il nome del server configurato in freetds.conf

+0

Ciao, ho impostato lo stesso Nomeserver di SQLEXPRESS, ma continuo a ricevere lo stesso errore. – user1181940

Problemi correlati