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

search for in the

mssql_connect> <mssql_bind
Last updated: Fri, 13 Nov 2009

view this page in

mssql_close

(PHP 4, PHP 5, PECL odbtp >= 1.1.1)

mssql_closeMS SQL Server への接続を閉じる

説明

bool mssql_close ([ resource $link_identifier ] )

指定したリンク ID が指す MS SQL Server データベースへのリンクを閉じます。 リンク ID が指定されない場合、最後にオープンされたリンクが指定されたと仮定します。

持続的でないリンクはスクリプト実行終了時に自動的に閉じられるので この関数は通常は必要ではありません。

パラメータ

link_identifier

mssql_connect() が返す MS SQL リンク ID。

この関数は、 mssql_pconnect() が作成した持続的リンクを閉じません。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 mssql_close() example

<?php
// MSSQL に接続します
$link mssql_connect('KALLESPC\SQLEXPRESS''sa''phpfi');

// ここで何かの操作を行います

// MSSQL へのリンクを閉じます
mssql_close($link);
?>

参考



add a note add a note User Contributed Notes
mssql_close
There are no user contributed notes for this page.

mssql_connect> <mssql_bind
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites