| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
sqlsrv_connect(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう) sqlsrv_connect — Opens a connection to a Microsoft SQL Server database 説明
resource sqlsrv_connect
( string
$serverName
[, array $connectionInfo
] )Opens a connection to a Microsoft SQL Server database. By default, the connection is attempted using Windows Authentication. To connect using SQL Server Authentication, include "UID" and "PWD" in the connection options array. パラメータ
返り値
A connection resource. If a connection cannot be successfully opened, 例
例1 Connect using Windows Authentication.
<?php
例2 Connect by specifying a user name and password.
<?php
例3 Connect on a specifed port.
<?php 注意
By default, the sqlsrv_connect() uses connection pooling to
improve connection performance. To turn off connection pooling (i.e. force a
new connection on each call), set the "ConnectionPooling" option in the
$connectionOptions array to 0 (or The SQLSRV extension does not have a dedicated function for changing which database is connected to. The target database is specified in the $connectionOptions array that is passed to sqlsrv_connect. To change the database on an open connection, execute the following query "USE dbName" (e.g. sqlsrv_query($conn, "USE dbName")). 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「sqlsrv_connect - Opens a connection to a Microsoft SQL Server database」をGoogle検索
|