Jump to content

Recommended Posts

Hi,

I'm having this same problem as many others do, but I just can't seem to get things working at all.

*I have copied ntwdblib.dll version 2000.80.194.0 to win/system32 and PHP directories

*extension=php_mssql.dll is uncommented in php.ini

*I'm using following php code to connect:

$server = "localhost\SQLEXPRESS";

$s = mssql_connect($server,$userName,$password) or die("Couldn't connect to SQL Server");

(of course I have given username and pw) but I just seem to get connection error.

*I have tried to connect to same database from command prompt with same username and password, and there it works. So the problem seems to exist only in PHP now.

*I have allowed tcp/ip and named pipes in SQL Server Configuration Manager.

 

Lastly I have found out that for someone with this problem working solution was to use the sqlsrv driver instead of mssql. However I haven't found sqlsrv driver in my php.ini so could anyone help me with that since it could solve this?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.