---
title: "sqlsrv_configure | Microsoft Docs"
ms.custom: ""
ms.date: "03/26/2018"
ms.prod: sql
ms.prod_service: connectivity
ms.reviewer: ""
ms.technology: connectivity
ms.topic: conceptual
apiname:
- "sqlsrv_configure"
apitype: "NA"
helpviewer_keywords:
- "sqlsrv_configure"
- "API Reference, sqlsrv_configure"
ms.assetid: 9393f975-a4ef-4c50-b4dd-14892fc55cc9
author: David-Engel
ms.author: v-daenge
---
# sqlsrv_configure
[!INCLUDE[Driver_PHP_Download](../../includes/driver_php_download.md)]
Changes the settings for error handling and logging options.
## Syntax
```
sqlsrv_configure( string $setting, mixed $value )
```
#### Parameters
*$setting*: The name of the setting to be configured. See the table below for a list of settings.
*$value*: The value to be applied to the setting specified in the *$setting* parameter. The possible values for this parameter depend on which setting is specified. The following table lists the possible combinations:
|Setting|Possible values for $value parameter (integer equivalent in parentheses)|Default value|
|-----------|------------------------------------------------------------------------------|-----------------|
|ClientBufferMaxKBSize1|A non negative number up to the PHP memory limit.
Zero and negative numbers are not allowed.|10240 KB|
|LogSeverity2|SQLSRV_LOG_SEVERITY_ALL (-1)
SQLSRV_LOG_SEVERITY_ERROR (1)
SQLSRV_LOG_SEVERITY_NOTICE (4)
SQLSRV_LOG_SEVERITY_WARNING (2)|SQLSRV_LOG_SEVERITY_ERROR (1)|
|LogSubsystems2|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)|SQLSRV_LOG_SYSTEM_OFF (0)|
|WarningsReturnAsErrors3|**true** (1) or **false** (0)|**true** (1)|
## Return Value
If **sqlsrv_configure** is called with an unsupported setting or value, the function returns **false**. Otherwise, the function returns **true**.
## Remarks
(1) For more information about client-side queries, see [Cursor Types (SQLSRV Driver)](../../connect/php/cursor-types-sqlsrv-driver.md).
(2) For more information about logging activity, see [Logging Activity](../../connect/php/logging-activity.md).
(3) For more information about configuring error and warning handling, see [How to: Configure Error and Warning Handling Using the SQLSRV Driver](../../connect/php/how-to-configure-error-and-warning-handling-using-the-sqlsrv-driver.md).
## See Also
[SQLSRV Driver API Reference](../../connect/php/sqlsrv-driver-api-reference.md)
[Programming Guide for the Microsoft Drivers for PHP for SQL Server](../../connect/php/programming-guide-for-php-sql-driver.md)