[unixODBC-support] can not connect through php
Nick Gorham
nick.gorham at easysoft.com
Thu Apr 22 20:19:00 BST 2010
jwan at ea.ucla.edu wrote:
> Hi
>
> I have install freetds with unixODBC. I have tsql and isql connect to
> the database fine. With isql, I can see all the database objects that
> I have access to.
> My problem right now is I can not connect to this Microsoft SQL server
> through php. I have the odbc.so installed previously with LAMP
> (apache2 and php5). I have added the line in php.ini,
> extension=odbc.so, restart the apache server. Now I still have the
> following error:
> SQL error: [unixODBC][FreeTDS][SQL Server]Unable to connect to data
> source, SQL state S1000 in SQLConnect in /w/web.02/...
>
> Any idae?
>
> Thanks
>
> Jun
>
I would enable driver manager logging and see how the connect differs
from isql.
--
Nick
More information about the unixODBC-support
mailing list