Page 1 of 1

I can't connect to mssql in php5...

Posted: Fri Mar 10, 2006 8:45 am
by icarpenter
Hi I am sure someone has come accross this one before...

I can't connect to mssql in php5...however this same script works OK in PHP 4.4.2.

I have enabled the php_mssql.dll and this file exists in my windows\system32 director.y..

but I can't connect to the server and get the following error...

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: MyServer in C:\Inetpub\wwwroot\index.php on line 13
Couldn't connect to server.


Any help will be greatly appreciated...

Ian.

Posted: Fri Mar 10, 2006 9:22 am
by icarpenter
Gotit

I had to replace ntwdblib.dll that lives in C:\PHP...

you can find correct ntwdblib.dll here: http://webzila.com/dll/1/ntwdblib.zip