downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

sqlsrv_connect> <sqlsrv_commit
[edit] Last updated: Fri, 07 Jun 2013

view this page in

sqlsrv_configure

(No hay información de versión disponible, podría estar únicamente en SVN)

sqlsrv_configureCambia la configuración de los drivers del gestionador de errores y de log

Descripción

bool sqlsrv_configure ( string $setting , mixed $value )

Cambia la configuración de los drivers del gestionador de errores y de log.

Parámetros

setting

El nombre de la propiedad a configurar. Los valores posibles son "WarningsReturnAsErrors", "LogSubsystems", and "LogSeverity".

value

El valor de la propiedad especificada. La tabla siguiente muestra los valores posibles:

Opciones de configuración de la gestión de errores y log
Propiedades Opciones
WarningsReturnAsErrors 1 (TRUE) or 0 (FALSE)
LogSubsystems SQLSRV_LOG_SYSTEM_ALL (-1) SQLSRV_LOG_SYSTEM_CONN (2) SQLSRV_LOG_SYSTEM_INIT (1) SQLSRV_LOG_SYSTEM_OFF (0) SQLSRV_LOG_SYSTEM_STMT (4) SQLSRV_LOG_SYSTEM_UTIL (8)
LogSeverity SQLSRV_LOG_SEVERITY_ALL (-1) SQLSRV_LOG_SEVERITY_ERROR (1) SQLSRV_LOG_SEVERITY_NOTICE (4) SQLSRV_LOG_SEVERITY_WARNING (2)

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.



add a note add a note User Contributed Notes sqlsrv_configure - [1 notes]
up
0
smhahmadi
5 months ago
Performance tip:

Beware of the performance penalty involved with unchecked use of logging options. In my case, although I was using the buffered cursor, sqlsrv_fetch_array was running too slowly. The solution was to remove my lavish use of those configuration options (using both SQLSRV_LOG_SYSTEM_ALL and SQLSRV_LOG_SEVERITY_ALL).

 
show source | credits | stats | sitemap | contact | advertising | mirror sites