metcaelfe Posted March 21, 2013 Share Posted March 21, 2013 Howdy freaks, I think I have hit a dead end with my attempts to connect to a MSSQL server (2008R2) using PHP (5.4.. I am running PHP through IIS using FastCGI. I believe I have fulfilled the prerequisites but I either get an error informing Native Client 2012 required for driver, or call to unknown function (either mssql_connect() or sqlsr_connect() depending on driver in use - MS Version 2, or 3). PHP is functioning correctly via IIS - phpinfo() works Version 3.1? SQL extensions from Microsoft are installed (added to php.ini) (php_sqlsrv_54_nts.dll && php_pdo_sqlsrv_54_nts.dll) - I have also tried the Version 2.0 DLLs, but these seem not to work at all. SQL Native Client installed (v 10.0) I think the problem is that I am using Windows Server 2003 (x86) and the SQL Native Client 2012 is not supported on 2k3... I cannot install it, only 2008R2 native client, so the 5.4 drivers from MS cannot be used. --------------------------------- I guess I know what I think the answer is, but, can anyone tell me if what I am trying to achieve is even possible? I assume no and that I will need to roll back to PHP 5.3 or something along those lines, I just want to confirm this prior to bursting a few more blood vessels in my eyes on this... Any assistance will be greatly appreciated - if you need screens or more info at all, let me know Thanks all! Cael Quote Link to comment https://forums.phpfreaks.com/topic/275957-php-iis6-winsvr2k3-connecting-to-mssql-php-548/ Share on other sites More sharing options...
kicken Posted March 21, 2013 Share Posted March 21, 2013 and the SQL Native Client 2012 is not supported on 2k3...Have you tried installing the 2012 native client and had it fail? I do not see any note on the description for it suggesting it would not work. If it wont install, or is unstable, then I would say your diagnosis is probably accurate. Either stick with 5.3 or update to a supported OS. Quote Link to comment https://forums.phpfreaks.com/topic/275957-php-iis6-winsvr2k3-connecting-to-mssql-php-548/#findComment-1420065 Share on other sites More sharing options...
metcaelfe Posted April 2, 2013 Author Share Posted April 2, 2013 Thanks for the reply kicken. I did try to install the 2012 Native Client, but it will not install on Win 2k3. Rolled back to 5.3 and I got it all sorted. Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/275957-php-iis6-winsvr2k3-connecting-to-mssql-php-548/#findComment-1422414 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.