array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.sqlsrv-configure.php', 1 => 'sqlsrv_configure', 2 => 'Changes the driver error handling and logging configurations', ), 'up' => array ( 0 => 'ref.sqlsrv.php', 1 => 'SQLSRV Funktionen', ), 'prev' => array ( 0 => 'function.sqlsrv-commit.php', 1 => 'sqlsrv_commit', ), 'next' => array ( 0 => 'function.sqlsrv-connect.php', 1 => 'sqlsrv_connect', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sqlsrv/functions/sqlsrv-configure.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

sqlsrv_configure

(No version information available, might only be in Git)

sqlsrv_configureChanges the driver error handling and logging configurations

Beschreibung

sqlsrv_configure(string $setting, mixed $value): bool

Changes the driver error handling and logging configurations.

Parameter-Liste

setting

The name of the setting to set. The possible values are "WarningsReturnAsErrors", "LogSubsystems", and "LogSeverity".

value

The value of the specified setting. The following table shows possible values:
Error and Logging Setting Options
Setting Options
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)

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Siehe auch