Jump to content

Archived

This topic is now archived and is closed to further replies.

mATOK

mssql_connect

Recommended Posts

Hi there,

I am trying to connect to a Microsoft SQL server 2005 (IIS 6.0) using mssql_connect and I am returned:

[b]Fatal error: Call to undefined function: mssql_connect() [/b]

I am running PHP V 4.3.4

I tried adding the extension in the php.ini file but when I do Apache/1.3.29  does not load....

please help  ???

Share this post


Link to post
Share on other sites
Make sure you read through the manual to verify that you've taken all the necessary steps to enable the mssql functions.  There are some dlls and other items that need to be setup properly.

Share this post


Link to post
Share on other sites
Have a read of this [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]FAQ[/url].

NOTE: That FAQ is for the mysql extension. However you can still follow it to enable the mssql extension. The mssql extension is called php_mssql.dll. Also you need to copy a file called ntwdblib.dll from MS SQL to the php installation folder, or the Windows follder (WINNT or WINNT/SYSTEM32). Have a read of [url=http://uk.php.net/manual/en/ref.mssql.php]this page[/url] for more info.

Share this post


Link to post
Share on other sites
the file ntwdblib.dll is not found on my SQL2005 server... is it needed? Can I grab it from somewhere else?

Share this post


Link to post
Share on other sites

×

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.