[unixODBC-support] Problem using DSN string onfunctionodbc_connect php4

Felipe Roman felipe at fonet-br.com
Fri Mar 18 17:33:43 GMT 2005


-----Original Message-----
From: unixodbc-support-bounces at easysoft.com
[mailto:unixodbc-support-bounces at easysoft.com] On Behalf Of Stefan
Radman
Sent: Friday, March 18, 2005 12:14 PM

> $con = odbc_connect("Driver={SQL Server}; Server=ODBC; Database=ADM", 
> "user", "pass");

> Try:
> $con = odbc_connect("Driver=TDS; Server=192.168.1.50;
Database=ADM","user", "pass")
> Does that work?
Not, return this warning but not get a valid ODBC link connect

Warning: odbc_connect(): SQL error: [unixODBC]Client unable to establish
connection, SQL state S1000 in SQLConnect in /var/www/teste.php on line
4

Thanks

[]'s

-- 
Felipe Roman
FONET-BR
http://www.fonet-br.com
felipe at fonet-br.com 




More information about the unixODBC-support mailing list