Unable to load dynamic library mssql.dll

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Unable to load dynamic library mssql.dll

Postby noister » 23. February 2012 14:03

hi,

i got this error when i uncomment the php_mssql in php.ini file. coz ill be connecting to mssql database express in my project.

based on research, ntwdblib.dll is required... so i downloaded the said file and put both under /sys32 and under /xampp... but still xampp didnt work properly.

hope someone can share and bring solution to this.

thanks,

noister
noister
 
Posts: 6
Joined: 01. December 2011 10:22
Operating System: Windows Server 2003

Re: Unable to load dynamic library mssql.dll

Postby JonB » 23. February 2012 15:33

Read this topic - look down to post #6

viewtopic.php?f=16&t=49670

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

xampp and mssql

Postby noister » 27. April 2012 08:01

please help, im stuck here. almost a week problem haven't found a solution yet.

i have xampp 1.7.4 and connect mssql 2005 express.

here's the common things i did.

1. php_mssql.dll in php.ini already uncomment and placed the file in xampp/php/ext, restart apache is done.
2. ntwdblib.dll (latest) already placed in system32 also in xampp/php, server has already reset.
3. also in mssql, enabled tcp/ip connections and already granted user.

when i try to load my php code it says "Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\mobiletrack\system\loaddata.php on line 5"

Please help what to do next, other than what i did above.

noister

[EDIT by Altrea: related Topics merged]
noister
 
Posts: 6
Joined: 01. December 2011 10:22
Operating System: Windows Server 2003

Re: Unable to load dynamic library mssql.dll

Postby hackattack142 » 28. April 2012 00:10

Does it show up on your phpinfo() page?
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Unable to load dynamic library mssql.dll

Postby noister » 03. May 2012 05:03

it appears in Configure Command =
Code: Select all
cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--
noister
 
Posts: 6
Joined: 01. December 2011 10:22
Operating System: Windows Server 2003

Re: Unable to load dynamic library mssql.dll

Postby noister » 03. May 2012 07:17

any help here?

Noister
noister
 
Posts: 6
Joined: 01. December 2011 10:22
Operating System: Windows Server 2003

Re: Unable to load dynamic library mssql.dll

Postby hackattack142 » 06. May 2012 04:50

If you notice, that configure statement says "without" mssql. The mssql driver was discontinued some time ago and is no longer maintained as far as I am aware. It might be better to go with sqlsrv which is maintained by Microsoft. It should provide similar functionality. You will need to get the SQLSRV20.exe from http://www.microsoft.com/en-us/download ... x?id=20098 (Not the SQLSRV30.exe available on the same page as it is no longer compatible with your OS) and the Microsoft SQL Server 2008 Native Client from http://www.microsoft.com/en-us/download ... x?id=16177 (Not the SQL Server 2012 Native Client as it is no longer compatible with your OS). From the SQLSRV20.exe, you would put php_sqlsrv_53_ts_vc6.dll and php_pdo_sqlsrv_53_ts_vc6.dll in your PHP ext folder, add them to your PHP.ini file, and check that they appear in your phpinfo() when you start Apache.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 153 guests