sqlsrv_client_info

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

sqlsrv_client_infoReturns information about the client and specified connection

说明

sqlsrv_client_info ( resource $conn ) : array

Returns information about the client and specified connection

参数

conn

The connection about which information is returned.

返回值

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)

范例

Example #1 sqlsrv_client_info() example

<?php
$serverName 
"serverName\sqlexpress";
$connOptions = array("UID"=>"username""PWD"=>"password");
$conn sqlsrv_connect$serverName$connOptions );

if( 
$conn === false ) {
    die( 
print_rsqlsrv_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 />";
}
?>

参见

相关文章
php date/time 函数 returns an array with information about sunset/sunrise and twilight begin/endphp direct io 函数 gets stat information about the file descriptor fdphp php 选项/信息 函数 gets information about the garbage collectorphp gnupg 函数 returns an array with information about all keys that matches the given patternphp mysqlnd memcache 函数 returns information about the plugin configurationphp odbc 函数 returns information about a current connectionphp postgresql 函数 returns an array with client protocol and server version when available php paradox 函数 return lots of information about a paradox filephp sqlsrv 函数 returns information about the client and specified connectionphp sqlsrv 函数 returns error and warning information about the last sqlsrv operation performedphp sqlsrv 函数 returns the value of the specified configuration settingphp sqlsrv 函数 returns information about the serverphp wincache 函数 retrieves information about memory usage by the resolve file path cachephp wincache 函数 retrieves information about files cached in the session cachephp hyperwave api 函数 returns statistics about fulltext serverphp hyperwave api 函数 returns information about server configurationphp mongo returns information about all connection poolsphp mongodb driver server returns an array of information about this serverphp mongopool returns information about all connection poolsphp mysqlnduhconnection returns statistics about the client connection
关注编程学问公众号