I get intermittent Error 101 connection reset and Error 15 Socket Not Connected from my dev server after switching database drivers. The reason, apparently, is the Sqlsrv PDO drivers, which I am trying to use to connect to the SQL Server 2005 database using the native SQL Server 2008 R2 client.
My Windows event log shows this in Application Errors right during every crash:
Application path failure: C: \ wamp \ bin \ apache \ apache2.2.17 \ bin \ httpd.exe
Error in module path: c: \ wamp \ bin \ php \ php5.2.11 \ ext \ php_pdo_sqlsrv_52_ts_vc6.dll
The server is Windows Server 2008 R2 with Apache 2.2.17 from WAMPServer 2.1, the problem occurs on PHP versions 5.2.11 and 5.3.9. The old mssql driver worked fine on 5.2.11.
I got the latest drivers from the official Sqlsrv driver project on codeplex . I am using the Thread Safe driver version as I am using thread safe PHP. I confirmed that thread safety is not a problem / I used the VC6 driver version with PHP 5.2.11, since my copy was compiled with VC ++ 6, and I used the VC9 driver version from 5.3.9 when it was compiled with VC9.
What is the problem or how to isolate it?
source share