SQLSRV_CLIENT_INFO(3) SQLSRV_CLIENT_INFO(3)
sqlsrv_client_info - Returns information about the client and specified connection
SYNOPSIS
array sqlsrv_client_info (resource $conn)
DESCRIPTION
Returns information about the client and specified connection
PARAMETERS
o $conn
- The connection about which information is returned.
RETURN VALUES
Returns an associative array with keys described in the table below. Returns FALSE otherwise.
Array returned by sqlsrv_client_info
+--------------+-------------------------------------------------+
| Key | |
| | |
| | Description |
| | |
+--------------+-------------------------------------------------+
|DriverDllName | |
| | |
| | SQLNCLI10.DLL |
| | |
|DriverODBCVer | |
| | |
| | ODBC version (xx.yy) |
| | |
| DriverVer | |
| | |
| | SQL Server Native Client DLL version (10.5.xxx) |
| | |
|ExtensionVer | |
| | |
| | php_sqlsrv.dll version (2.0.xxx.x) |
| | |
+--------------+-------------------------------------------------+
EXAMPLES
Example #1
sqlsrv_client_info(3) example
<?php
$serverName = "serverNamesqlexpress";
$connOptions = array("UID"=>"username", "PWD"=>"password");
$conn = sqlsrv_connect( $serverName, $connOptions );
if( $conn === false ) {
die( print_r( sqlsrv_errors(), true));
}
if( $client_info = sqlsrv_client_info( $conn)) {
foreach( $client_info as $key => $value) {
echo $key.": ".$value."<br />";
}
} else {
echo "Error in retrieving client info.<br />";
}
?>
SEE ALSO
sqlsrv_server_info(3).
PHP Documentation Group SQLSRV_CLIENT_INFO(3)