RE: PHP5 & FreeTDS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Craig Donnelly wrote:
> On the page where I connect to the MSSQL server I get the following
> error:
>
> Warning: mssql_connect() [function.mssql-connect]: Unable to connect
> to server: 172.16.xx.xxx in
> /var/ftpusers/tarot/tarot/admin/sqltest.php on line 4

A couple of things to try:

(1) Try defining a TDSDUMP file before the connection attempt and see if it provides
any hints as to why it failed.  I normally do this via:

putenv("TDSDUMP=/tmp/tdsdump");

before the connection attempt.  Make sure to remove this after you're done testing,
this file can get very big very quickly.

(2) Install Sqsh (http://www.sqsh.org/) and see if you can connect with it.  If not,
it may give you more information on the connection failure than PHP does (just
guessing here)...

HTH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux