Re: Fwd: connect to SQL server 2005
Robert Gonzalez <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Have you considered building the mssql extension and using that instead of ODBC? Aside from that, are your environment vars set properly? One of the things that had tripped me up in the past was an environment variable called FREETDSCONF that was not set but was expected by PHP. When it didn't find it PHP gave its best shot at finding but the PHP path that is checked is not the same as the installation path of FreeTDS so I was getting a crapped out connection. On Wed, May 19, 2010 at 9:29 PM, <[email protected]> wrote: > Hi, > > SQL Server version : SQL 2005 > FreeTDS version (or snapshot date, if not a release) : freetds-0.82 > which client library you are using : unixODBC (libtdsodbc.so) > what language or Perl module, as appropriate, you're using : php ( > built in odbc module) > your client OS and hardware architecture (red hat x64) > > I can connect through isql and tsql fine. but having trouble when > connect using php. I have made sure that I set the mbstring in > php.ini correctly to take UTF-8. but looks like the 4th > tds_process_tokens() get halt in the middle the process and did not > receive the packet I should receive and when I run the php script, it > gets "segmentation fault" > > can someone help please? > > Thanks > > Jun > _______________________________________________ > FreeTDS mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds > -- Robert Gonzalez http://www.robert-gonzalez.com http://twitter.com/RobertGonzalez http://www.linkedin.com/in/robertanthonygonzalez