Last night I enabled error logging with this:
sqlsrv_configure("LogSubsystems", SQLSRV_LOG_SYSTEM_ALL); sqlsrv_configure("LogSeverity", SQLSRV_LOG_SEVERITY_ALL); sqlsrv_configure("WarningsReturnAsErrors", 1);
And wow...my phperrs log file was filling quickly. So I used this to shut it off:
sqlsrv_configure("LogSubsystems", SQLSRV_LOG_SYSTEM_OFF); sqlsrv_configure("LogSeverity", SQLSRV_LOG_SEVERITY_ERROR); sqlsrv_configure("WarningsReturnAsErrors", 0);
And I can't stop the logging. I've added the same options to the php.ini file.
sqlsrv.WarningsReturnAsErrors = 0 sqlsrv.LogSubsystems = 0 sqlsrv.LogSeverity = 1
I'm using ADODB for PHP, version 5.14, latest version with support for the mssqlnative driver. I've restarted Apache, but every time anything accesses the SQL server, and receives an empty result set (which is supposed to happen sometimes), I get this every second:
[31-Dec-2011 09:37:41] sqlsrv_fetch_array: SQLSTATE = IMSSP [31-Dec-2011 09:37:41] sqlsrv_fetch_array: error code = -28 [31-Dec-2011 09:37:41] sqlsrv_fetch_array: message = The active result for the query contains no fields.
Sometimes, this is in there as well, but I can't find where it's being called. I've even commented out the sqlsrv_configure lines in ADODB.
[31-Dec-2011 09:37:39] sqlsrv_configure: SQLSTATE = IMSSP [31-Dec-2011 09:37:39] sqlsrv_configure: error code = -14 [31-Dec-2011 09:37:39] sqlsrv_configure: message = An invalid parameter was passed to sqlsrv_configure.
Any ideas how to stop the logging? This was not a problem with the ADODB libraries before I ran that first batch of code in a test script (which has since been changed).