mirror of
https://github.com/php/doc-es.git
synced 2026-04-29 10:03:21 +02:00
d5de726ad0
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@338461 c90b9560-bf6c-de11-be94-00142212c4b1
136 lines
3.7 KiB
XML
136 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: e99d7aeee97dd6307276b2f58399a1253c19c487 Maintainer: regiemix Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id='function.mssql-init' xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>mssql_init</refname>
|
|
<refpurpose>Inicializa un stored procedure (procedimiento almacenado) local o remoto</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv>
|
|
<warning>
|
|
&warn.removed.function.7-0-0.alternatives;
|
|
<simplelist role="alternatives">
|
|
<member>
|
|
Utilizar una consulta <literal>EXEC</literal> emitida a través de
|
|
<link linkend="ref.pdo-sqlsrv">PDO_SQLSRV</link>,
|
|
<link linkend="ref.pdo-odbc">PDO_ODBC</link>,
|
|
<link linkend="book.sqlsrv">SQLSRV</link>, o el
|
|
<link linkend="book.uodbc">controlador de ODBC unificado</link>.
|
|
</member>
|
|
</simplelist>
|
|
</warning>
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>mssql_init</methodname>
|
|
<methodparam><type>string</type><parameter>sp_name</parameter></methodparam>
|
|
<methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Inicializa un stored procedure (procedimiento almacenado) local o remoto.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>sp_name</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Nombre del stored procedure, como <literal>ownew.sp_name</literal> o
|
|
<literal>otherdb.owner.sp_name</literal>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>link_identifier</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Un identificador de la conexión MS SQL, devuelto por
|
|
<function>mssql_connect</function>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Devuelve un identificador de recurso llamado "statement", utilizado en subsiguientes llamadas a la función
|
|
<function>mssql_bind</function> y <function>mssql_execute</function>,
|
|
o &false; si se producen errores.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Ejemplo de <function>mssql_init</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// Conectar a MSSQL y seleccionar la base de datos
|
|
$link = mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi');
|
|
mssql_select_db('php', $link);
|
|
|
|
// Crear una nueva sentencia
|
|
$stmt = mssql_init('StatementTest', $link);
|
|
|
|
// Vincular valores aquí
|
|
|
|
// Una vez que los valores han sido vinculados ejecutamos nuestra sentencia
|
|
// utilizando mssql_execute:
|
|
mssql_execute($stmt);
|
|
|
|
// Y liberamos el recurso del siguiente modo:
|
|
mssql_free_statement($stmt);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>mssql_bind</function></member>
|
|
<member><function>mssql_execute</function></member>
|
|
<member><function>mssql_free_statement</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
|
|
-->
|