mirror of
https://github.com/php/doc-ru.git
synced 2025-08-20 23:31:15 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/ru/trunk@340313 c90b9560-bf6c-de11-be94-00142212c4b1
120 lines
3.4 KiB
XML
120 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: e99d7aeee97dd6307276b2f58399a1253c19c487 Maintainer: rjhdby Status: ready -->
|
||
<!-- Reviewed: no -->
|
||
<!-- $Revision$ -->
|
||
<refentry xml:id="function.mssql-close" xmlns="http://docbook.org/ns/docbook">
|
||
<refnamediv>
|
||
<refname>mssql_close</refname>
|
||
<refpurpose>Закрывает соединение с MS SQL Server</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsynopsisdiv>
|
||
<warning>
|
||
&warn.removed.function.7-0-0.alternatives;
|
||
<simplelist role="alternatives">
|
||
<member><function>sqlsrv_close</function></member>
|
||
<member><function>odbc_close</function></member>
|
||
<member><function>odbc_close_all</function></member>
|
||
</simplelist>
|
||
</warning>
|
||
</refsynopsisdiv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type>bool</type><methodname>mssql_close</methodname>
|
||
<methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Закрывает соединение с MS SQL Server, заданное ассоциированным с ним идентификатором.
|
||
Если идентификатор не указан, то будет закрыто последнее открытое соединение.
|
||
</para>
|
||
<para>
|
||
Обратите внимание, что обычно это делать не обязательно, так как непостоянные
|
||
соединения закрываются автоматически после окончания работы скрипта.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>link_identifier</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Идентификатор соединения MS SQL, возвращенный функцией
|
||
<function>mssql_connect</function>.
|
||
</para>
|
||
<para>
|
||
Эта функция не закрывает постоянные соединения, открытые функцией
|
||
<function>mssql_pconnect</function>.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
&return.success;
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>Пример <function>mssql_close</function></title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
// Соединяемся с MSSQL
|
||
$link = mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi');
|
||
|
||
// Тут творим, что хотим
|
||
|
||
// Закрываем соединение с MSSQL
|
||
mssql_close($link);
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><function>mssql_connect</function></member>
|
||
<member><function>mssql_pconnect</function></member>
|
||
</simplelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
</refentry>
|
||
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|