mssql connectivity with wamp server (top urgent)

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
sheeba
Forum Newbie
Posts: 3
Joined: Sat Mar 06, 2010 1:29 am

mssql connectivity with wamp server (top urgent)

Post by sheeba »

hi, i am trying to connect with mssql server using wamp server. but it is saying that fatal error : Call to undefined function mssql_connect() . Pls any one tell me how to do it
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: mssql connectivity with wamp server (top urgent)

Post by pbs »

Have you configured mssql in wamp server.
sheeba
Forum Newbie
Posts: 3
Joined: Sat Mar 06, 2010 1:29 am

Re: mssql connectivity with wamp server (top urgent)

Post by sheeba »

but i dont know how to configure MSSql server in Wamp Server. Is it like only enabling the dll files.
Brian Swan
Forum Newbie
Posts: 17
Joined: Thu Jan 14, 2010 11:56 am

Re: mssql connectivity with wamp server (top urgent)

Post by Brian Swan »

Based on the error you are getting, it looks like the mssql extension isn't loading.

1. Put the php_mssql.dll file in your extension directory.
2. Make sure extension is enabled in your php.ini file (extension=php_mssql.dll).
3. The mssql extension requires the ntwdblib.dll file. You can download this for free...a quick internet search will turn up a few downloads. Put this file in you PHP directory.
4. Re-start your Web Server.

If you are running on Windows, you can use the driver produced my Microsoft...more info here: http://blogs.msdn.com/brian_swan/archiv ... r-php.aspx

Hope that helps.

-Brian
sheeba
Forum Newbie
Posts: 3
Joined: Sat Mar 06, 2010 1:29 am

Re: mssql connectivity with wamp server (top urgent)

Post by sheeba »

i have tried all these things. but when start my wamp server an error msg comes like unable to load the php_mssql.dll
iamroming
Forum Commoner
Posts: 27
Joined: Sun Jan 31, 2010 4:02 am
Location: Hyderabad, India
Contact:

Re: mssql connectivity with wamp server (top urgent)

Post by iamroming »

just check the extensions in this file

phpforapache.ini ii the apcache/bin folder
because the phpforapache file in the php bin gets copied into the php.ini in the apache bin

this might help you
rac
Forum Newbie
Posts: 1
Joined: Thu Sep 29, 2011 6:05 am

Re: mssql connectivity with wamp server (top urgent)

Post by rac »

i also have the same problem. I have tried everything but still unable to make a connection with mssql database.
Post Reply