Skip to Content.
Sympa Menu

freetds - [freetds] SQLServer - No Connection

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lagos, Ioannis" <J.Lagos AT helex.gr>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] SQLServer - No Connection
  • Date: Wed, 20 Aug 2008 12:26:37 +0300

I have installed the unixODBC-2.2.12, freetds-0.82 on a RH 2.6.9-55.EL
x86_64, Apache/2.0.52 (Red Hat), PHP/4.3.9



I use odbc to connect to a SQL Server.



tsql is connecting successfully.



isql -v myDSN is connecting successfully.



A php script executed from shell successfully and I get results.



But, if the same php script is executed from the Browser, I get an error
connection!

(Trying to connect from php with odbc_connect.)



Have any idea for this ?







My Environment is as:



Libraries located in /usr/local/lib

Env var LD_LIBRARY_PATH = /usr/local/lib

FREETDS=/usr/local/etc



>From phpinfo I get the following info:



--with-unixODBC=shared,/usr'

--prefix=/usr



ODBC

ODBC library

unixODBC

ODBC_INCLUDE

-I/usr/include

ODBC_LFLAGS

-L/usr/lib

ODBC_LIBS

-lodbc





I appreciate if anybody can help.



Thanks in advance,

John Lagos







Archive powered by MHonArc 2.6.24.

Top of Page