« sqlsrv_commit
sqlsrv_connect »

sqlsrv_configure

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

sqlsrv_configure — Changes the driver error handling and logging configurations

説明

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

Changes the driver error handling and logging configurations.

パラメータ

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)

戻り値

成功した場合に true を、失敗した場合に false を返します。

関連キーワード:
sqlsrv   Changes   driver   logging   configurations   configure   WarningsReturnAsErrors   LogSubsystems   LogSeverity   Logging   commit   connect   mixed   table
関連する関数・ページ:
function.sqlsrv-get-config   sqlsrv.configuration   ref.sqlsrv   function.sqlsrv-close   function.sqlsrv-server-info   function.sqlsrv-has-rows