Page 1 of 1

Can 1.8 work with mssql and sqlsrv?

PostPosted: 09. March 2013 01:14
by MLinus
Recently my Windows 7 computer crashed and I had to reload all my apps. Got the latest XAMPP v1.8.1 and now my mssql functions don't work. I understand that php_mssql.dll is no longer supported and sqlsrv is the new extension for accessing SQL Server but I have a lot of code running that still needs to be supported.

My question is this, can I run 1.8.1 using BOTH MS SQL versions? This way I can maintain my current code while converting to the new extension.

I have added the php_mssql.dll/php_pdo_mssql.dll to the ext directory and uncommented them out of the php.ini file. I got "php_body_write error in php5ts.dll file" and a "no ntwdblib.dll" error. I added a ntwdblib.dll file but that did not help.

I have found a bunch of posts on this issue but none that say they successfully got this to work. I appreciate any help you may be able to provide.

Re: Can 1.8 work with mssql and sqlsrv?

PostPosted: 09. March 2013 15:05
by Altrea
Hi MLinus,

A short salutation is an act of politeness. Even if the internet is an virtual area, there is always a human being behind the screen. A polite beginning is the first positive impression you can leave here and helps to get polite answers too. Please keep that in mind if you start a new thread in any community board. Thank you.

MLinus wrote:can I run 1.8.1 using BOTH MS SQL versions? This way I can maintain my current code while converting to the new extension.

No. AFAIK PHP build in XAMPP 1.8.1 is not compiled with the old mssql functions.

best wishes,
Altrea