downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

sqlsrv_close> <sqlsrv_cancel
[edit] Last updated: Sat, 25 May 2013

view this page in

sqlsrv_client_info

(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)

sqlsrv_client_infoReturns information about the client and specified connection

説明

array sqlsrv_client_info ( resource $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.

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)

例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 />";
}
?>

参考



add a note add a note User Contributed Notes sqlsrv_client_info - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites