©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(No version information available, might only be in Git)
sqlsrv_client_info — Returns information about the client and specified connection
$conn
)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.
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_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 />" ;
}
?>