2001-11-10 21:49:43 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2001-12-18 21:11:55 +00:00
|
|
|
<!-- $Revision: 1.26 $ -->
|
1999-06-06 18:51:02 +00:00
|
|
|
<reference id="ref.mssql">
|
1999-06-20 03:04:56 +00:00
|
|
|
<title>Microsoft SQL Server functions</title>
|
1999-06-06 18:51:02 +00:00
|
|
|
<titleabbrev>MS SQL Server</titleabbrev>
|
2001-11-14 19:00:48 +00:00
|
|
|
<partintro>
|
|
|
|
<simpara>
|
|
|
|
The MSSQL extension is available on Win32 systems only. You can
|
|
|
|
use the Sybase extension to connect to MSSQL databases from
|
|
|
|
other platforms.
|
|
|
|
</simpara>
|
|
|
|
<simpara>
|
|
|
|
These functions allow you to access MS SQL Server database.
|
|
|
|
The extension requires the MS SQL Client Tools to be installed
|
|
|
|
on the system where PHP is installed. The Client Tools can
|
|
|
|
be installed from the MS SQL Server CD or by copying ntwdblib.dll
|
2001-11-14 19:05:26 +00:00
|
|
|
from \winnt\system32 on the server to \winnt\system32 on the PHP box.
|
2001-11-14 19:00:48 +00:00
|
|
|
Copying ntwdblib.dll will only provide access. Configuration of the client
|
|
|
|
will require installation of all the tools.
|
|
|
|
</simpara>
|
|
|
|
<simpara>
|
|
|
|
The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini.
|
|
|
|
</simpara>
|
|
|
|
</partintro>
|
1999-06-06 18:51:02 +00:00
|
|
|
|
|
|
|
<refentry id="function.mssql-close">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_close</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Close MS SQL Server connection</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_close</function></funcdef>
|
|
|
|
<paramdef>int
|
|
|
|
<parameter><optional>link_identifier</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-07-07 18:42:46 +00:00
|
|
|
Returns: &true; on success, &false; on error.
|
2000-02-27 21:22:48 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_close</function> closes the link to a MS SQL
|
2000-02-27 21:22:48 +00:00
|
|
|
Server database that's associated with the specified link
|
|
|
|
identifier. If the link identifier isn't specified, the last
|
|
|
|
opened link is assumed.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
Note that this isn't usually necessary, as non-persistent open
|
|
|
|
links are automatically closed at the end of the script's
|
|
|
|
execution.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_close</function> will not close persistent links
|
2000-02-27 21:22:48 +00:00
|
|
|
generated by <function>mssql_pconnect</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
See also: <function>mssql_connect</function>,
|
|
|
|
<function>mssql_pconnect</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-connect">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_connect</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Open MS SQL server connection</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_connect</function></funcdef>
|
|
|
|
<paramdef>string
|
|
|
|
<parameter><optional>servername</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
<paramdef>string
|
|
|
|
<parameter><optional>username</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
<paramdef>string
|
|
|
|
<parameter><optional>password</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-07-07 21:57:31 +00:00
|
|
|
Returns: A positive MS SQL link identifier on success, or &false;
|
2000-02-27 21:22:48 +00:00
|
|
|
on error.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_connect</function> establishes a connection to a
|
2000-02-27 21:22:48 +00:00
|
|
|
MS SQL server. The servername argument has to be a valid
|
|
|
|
servername that is defined in the 'interfaces' file.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
In case a second call is made to
|
|
|
|
<function>mssql_connect</function> with the same arguments, no
|
|
|
|
new link will be established, but instead, the link identifier of
|
|
|
|
the already opened link will be returned.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
The link to the server will be closed as soon as the execution of
|
|
|
|
the script ends, unless it's closed earlier by explicitly calling
|
|
|
|
<function>mssql_close</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
See also <function>mssql_pconnect</function>,
|
|
|
|
<function>mssql_close</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-data-seek">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_data_seek</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Move internal row pointer</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_data_seek</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result_identifier</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter>row_number</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-07-07 18:42:46 +00:00
|
|
|
Returns: &true; on success, &false; on failure.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_data_seek</function> moves the internal row
|
2000-02-27 21:22:48 +00:00
|
|
|
pointer of the MS SQL result associated with the specified result
|
2000-07-18 18:56:12 +00:00
|
|
|
identifier to point to the specified row number. The next call
|
2000-02-27 21:22:48 +00:00
|
|
|
to <function>mssql_fetch_row</function> would return that row.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
See also: <function>mssql_data_seek</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-fetch-array">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_fetch_array</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Fetch row as array</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_fetch_array</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-07-07 21:57:31 +00:00
|
|
|
Returns: An array that corresponds to the fetched row, or &false;
|
2000-02-27 21:22:48 +00:00
|
|
|
if there are no more rows.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_fetch_array</function> is an extended version of
|
1999-06-06 18:51:02 +00:00
|
|
|
<function>mssql_fetch_row</function>. In addition to storing the
|
|
|
|
data in the numeric indices of the result array, it also stores
|
|
|
|
the data in associative indices, using the field names as keys.
|
|
|
|
</para>
|
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
An important thing to note is that using
|
|
|
|
<function>mssql_fetch_array</function> is NOT significantly
|
|
|
|
slower than using <function>mssql_fetch_row</function>, while it
|
|
|
|
provides a significant added value.
|
|
|
|
</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
|
|
|
For further details, also see
|
2000-02-27 21:22:48 +00:00
|
|
|
<function>mssql_fetch_row</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-fetch-field">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_fetch_field</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Get field information</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>object <function>mssql_fetch_field</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
<paramdef>int
|
|
|
|
<parameter><optional>field_offset</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
Returns an object containing field information.
|
|
|
|
</para>
|
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_fetch_field</function> can be used in order to
|
2000-07-21 11:10:09 +00:00
|
|
|
obtain information about fields in a certain query result. If
|
2000-02-27 21:22:48 +00:00
|
|
|
the field offset isn't specified, the next field that wasn't yet
|
2000-07-21 11:10:09 +00:00
|
|
|
retrieved by <function>mssql_fetch_field</function> is retrieved.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The properties of the object are:
|
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
name - column name. if the column is a result of a function,
|
|
|
|
this property is set to computed#N, where #N is a serial
|
|
|
|
number.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
column_source - the table from which the column was taken
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
max_length - maximum length of the column
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
numeric - 1 if the column is numeric
|
|
|
|
</simpara></listitem>
|
|
|
|
</itemizedlist>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
See also <function>mssql_field_seek</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-fetch-object">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_fetch_object</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Fetch row as object</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_fetch_object</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
Returns: An object with properties that correspond to the fetched
|
2001-07-07 18:42:46 +00:00
|
|
|
row, or &false; if there are no more rows.
|
2000-02-27 21:22:48 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_fetch_object</function> is similar to
|
2000-02-27 21:22:48 +00:00
|
|
|
<function>mssql_fetch_array</function>, with one difference - an
|
|
|
|
object is returned, instead of an array. Indirectly, that means
|
|
|
|
that you can only access the data by the field names, and not by
|
|
|
|
their offsets (numbers are illegal property names).
|
|
|
|
</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
Speed-wise, the function is identical to
|
|
|
|
<function>mssql_fetch_array</function>, and almost as quick as
|
|
|
|
<function>mssql_fetch_row</function> (the difference is
|
|
|
|
insignificant).
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
|
|
|
See also: <function>mssql_fetch-array</function> and
|
|
|
|
<function>mssql_fetch-row</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-fetch-row">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_fetch_row</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Get row as enumerated array</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>array <function>mssql_fetch_row</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-07-07 21:57:31 +00:00
|
|
|
Returns: An array that corresponds to the fetched row, or &false;
|
2000-02-27 21:22:48 +00:00
|
|
|
if there are no more rows.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_fetch_row</function> fetches one row of data from
|
2000-02-27 21:22:48 +00:00
|
|
|
the result associated with the specified result identifier. The
|
|
|
|
row is returned as an array. Each result column is stored in an
|
|
|
|
array offset, starting at offset 0.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
Subsequent call to <function>mssql_fetch_rows</function> would
|
2001-07-07 18:42:46 +00:00
|
|
|
return the next row in the result set, or &false; if there are no
|
2000-02-27 21:22:48 +00:00
|
|
|
more rows.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
See also: <function>mssql_fetch_array</function>,
|
2000-02-27 21:22:48 +00:00
|
|
|
<function>mssql_fetch_object</function>,
|
|
|
|
<function>mssql_data_seek</function>,
|
|
|
|
<function>mssql_fetch_lengths</function>, and
|
|
|
|
<function>mssql_result</function>.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
2000-02-27 21:22:48 +00:00
|
|
|
<refentry id="function.mssql-field-length">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_field_length</refname>
|
|
|
|
<refpurpose>Get the length of a field</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_field_length</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
<paramdef>int
|
|
|
|
<parameter><optional>offset</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
2000-02-27 21:22:48 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-field-name">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_field_name</refname>
|
|
|
|
<refpurpose>Get the name of a field</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_field_name</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
<paramdef>int
|
|
|
|
<parameter><optional>offset</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
2000-02-27 21:22:48 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
1999-06-06 18:51:02 +00:00
|
|
|
<refentry id="function.mssql-field-seek">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_field_seek</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Set field offset</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_field_seek</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter>field_offset</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
Seeks to the specified field offset. If the next call to
|
|
|
|
<function>mssql_fetch_field</function> won't include a field
|
1999-10-20 22:41:42 +00:00
|
|
|
offset, this field would be returned.</para>
|
|
|
|
<para></para>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
1999-10-20 22:41:42 +00:00
|
|
|
See also: <function>mssql_fetch_field</function>.</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
2000-02-27 21:22:48 +00:00
|
|
|
<refentry id="function.mssql-field-type">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_field_type</refname>
|
|
|
|
<refpurpose>Get the type of a field</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>string <function>mssql_field_type</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
<paramdef>int
|
|
|
|
<parameter><optional>offset</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
2000-02-27 21:22:48 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
1999-06-06 18:51:02 +00:00
|
|
|
<refentry id="function.mssql-free-result">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_free_result</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Free result memory</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_free_result</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
<function>mssql_free_result</function> only needs to be called
|
|
|
|
if you are worried about using too much memory while your script
|
|
|
|
is running. All result memory will automatically be freed when
|
2000-07-23 18:15:44 +00:00
|
|
|
the script ends. You may call <function>mssql_free_result</function>
|
1999-06-06 18:51:02 +00:00
|
|
|
with the result identifier as an argument and the associated
|
|
|
|
result memory will be freed.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
2000-02-27 21:22:48 +00:00
|
|
|
<refentry id="function.mssql-get-last-message">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_get_last_message</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Returns the last message from server (over
|
|
|
|
min_message_severity?)
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>string
|
|
|
|
<function>mssql_get_last_message</function>
|
|
|
|
</funcdef>
|
2001-05-16 18:33:21 +00:00
|
|
|
<void/>
|
2000-06-24 07:38:45 +00:00
|
|
|
</funcprototype>
|
2000-02-27 21:22:48 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-min-error-severity">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_min_error_severity</refname>
|
|
|
|
<refpurpose>Sets the lower error severity</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>void
|
|
|
|
<function>mssql_min_error_severity</function>
|
|
|
|
</funcdef>
|
|
|
|
<paramdef>int <parameter>severity</parameter></paramdef>
|
|
|
|
</funcprototype>
|
2000-02-27 21:22:48 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-min-message-severity">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_min_message_severity</refname>
|
|
|
|
<refpurpose>Sets the lower message severity</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>void
|
|
|
|
<function>mssql_min_message_severity</function>
|
|
|
|
</funcdef>
|
|
|
|
<paramdef>int <parameter>severity</parameter></paramdef>
|
|
|
|
</funcprototype>
|
2000-02-27 21:22:48 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
2001-05-14 20:22:52 +00:00
|
|
|
<refentry id="function.mssql-next-result">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_next_result</refname>
|
|
|
|
<refpurpose>Move the internal result pointer to the next result</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>bool
|
|
|
|
<function>mssql_next_result</function>
|
|
|
|
</funcdef>
|
|
|
|
<paramdef>int <parameter>result_id</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
2001-12-18 20:59:12 +00:00
|
|
|
When sending more than one SQL statement to the server or
|
|
|
|
executing a stored procedure with multiple results, it will cause
|
|
|
|
the server to return multiple result sets. This function will
|
|
|
|
test for additional results available form the server. If an
|
|
|
|
additional result set exists it will free the existing result set
|
2001-12-18 21:11:55 +00:00
|
|
|
and prepare to fetch the rows from the new result set. The
|
2001-12-18 20:59:12 +00:00
|
|
|
function will return &true; if an additional result set was
|
|
|
|
available or &false; otherwise.
|
2001-05-14 20:22:52 +00:00
|
|
|
</para>
|
|
|
|
<example>
|
|
|
|
<title><function>mssql_next_result</function> example</title>
|
|
|
|
<programlisting role="php">
|
2001-11-20 23:58:47 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2001-05-14 20:22:52 +00:00
|
|
|
$link = mssql_connect ("localhost", "userid", "secret");
|
|
|
|
mssql_select_db("MyDB", $link);
|
|
|
|
$SQL = "Select * from table1 select * from table2";
|
|
|
|
$rs = mssql_query($SQL, $link);
|
|
|
|
do {
|
|
|
|
while ($row = mssql_fetch_row($rs)) {
|
|
|
|
}
|
|
|
|
} while (mssql_next_result($rs));
|
|
|
|
mssql_free_result($rs);
|
|
|
|
mssql_close ($link);
|
2001-11-20 23:58:47 +00:00
|
|
|
?>
|
|
|
|
]]>
|
2001-05-14 20:22:52 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
1999-06-06 18:51:02 +00:00
|
|
|
<refentry id="function.mssql-num-fields">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_num_fields</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Get number of fields in result</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_num_fields</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_num_fields</function> returns the number of
|
2000-02-27 21:22:48 +00:00
|
|
|
fields in a result set.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
See also: <function>mssql_db_query</function>,
|
|
|
|
<function>mssql_query</function>,
|
|
|
|
<function>mssql_fetch_field</function>, and
|
1999-06-06 18:51:02 +00:00
|
|
|
<function>mssql_num_rows</function>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-num-rows">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_num_rows</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Get number of rows in result</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_num_rows</function></funcdef>
|
|
|
|
<paramdef>string <parameter>result</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_num_rows</function> returns the number of rows in
|
2000-02-27 21:22:48 +00:00
|
|
|
a result set.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
See also: <function>mssql_db_query</function>,
|
|
|
|
<function>mssql_query</function>, and
|
1999-06-06 18:51:02 +00:00
|
|
|
<function>mssql_fetch_row</function>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-pconnect">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_pconnect</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Open persistent MS SQL connection</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_pconnect</function></funcdef>
|
|
|
|
<paramdef>string
|
|
|
|
<parameter><optional>servername</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
<paramdef>string
|
|
|
|
<parameter><optional>username</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
<paramdef>string
|
|
|
|
<parameter><optional>password</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
Returns: A positive MS SQL persistent link identifier on success,
|
2001-07-07 18:42:46 +00:00
|
|
|
or &false; on error.
|
2000-02-27 21:22:48 +00:00
|
|
|
</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_pconnect</function> acts very much like
|
2000-02-27 21:22:48 +00:00
|
|
|
<function>mssql_connect</function> with two major differences.
|
|
|
|
</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
|
|
|
First, when connecting, the function would first try to find a
|
|
|
|
(persistent) link that's already open with the same host,
|
|
|
|
username and password. If one is found, an identifier for it
|
2000-02-27 21:22:48 +00:00
|
|
|
will be returned instead of opening a new connection.
|
|
|
|
</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
|
|
|
Second, the connection to the SQL server will not be closed when
|
|
|
|
the execution of the script ends. Instead, the link will remain
|
|
|
|
open for future use (<function>mssql_close</function> will not
|
2000-02-27 21:22:48 +00:00
|
|
|
close links established by <function>mssql_pconnect</function>).
|
|
|
|
</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
This type of links is therefore called 'persistent'.
|
|
|
|
</para>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-query">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_query</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Send MS SQL query</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_query</function></funcdef>
|
|
|
|
<paramdef>string <parameter>query</parameter></paramdef>
|
|
|
|
<paramdef>int
|
|
|
|
<parameter><optional>link_identifier</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-07-07 21:57:31 +00:00
|
|
|
Returns: A positive MS SQL result identifier on success, or &false;
|
2000-02-27 21:22:48 +00:00
|
|
|
on error.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_query</function> sends a query to the currently
|
2000-02-27 21:22:48 +00:00
|
|
|
active database on the server that's associated with the
|
|
|
|
specified link identifier. If the link identifier isn't
|
|
|
|
specified, the last opened link is assumed. If no link is open,
|
|
|
|
the function tries to establish a link as if
|
|
|
|
<function>mssql_connect</function> was called, and use it.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2000-02-27 21:22:48 +00:00
|
|
|
See also: <function>mssql_db_query</function>,
|
|
|
|
<function>mssql_select_db</function>, and
|
1999-06-06 18:51:02 +00:00
|
|
|
<function>mssql_connect</function>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-result">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_result</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Get result data</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_result</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter>i</parameter></paramdef>
|
|
|
|
<paramdef>mixed <parameter>field</parameter></paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_result</function> returns the contents of one
|
2000-02-27 21:22:48 +00:00
|
|
|
cell from a MS SQL result set. The field argument can be the
|
2000-07-22 19:52:43 +00:00
|
|
|
field's offset, the field's name or the field's table dot
|
2000-07-22 18:48:40 +00:00
|
|
|
field's name (tablename.fieldname). If the column name has been
|
2000-07-22 19:52:43 +00:00
|
|
|
aliased ('select foo as bar from...'), it uses the alias instead of
|
2000-02-27 21:22:48 +00:00
|
|
|
the column name.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
When working on large result sets, you should consider using one
|
|
|
|
of the functions that fetch an entire row (specified below). As
|
|
|
|
these functions return the contents of multiple cells in one
|
2000-02-27 21:22:48 +00:00
|
|
|
function call, they're MUCH quicker than
|
|
|
|
<function>mssql_result</function>. Also, note that specifying a
|
|
|
|
numeric offset for the field argument is much quicker than
|
|
|
|
specifying a fieldname or tablename.fieldname argument.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Recommended high-performance alternatives:
|
2000-02-27 21:22:48 +00:00
|
|
|
<function>mssql_fetch_row</function>,
|
1999-06-06 18:51:02 +00:00
|
|
|
<function>mssql_fetch_array</function>, and
|
|
|
|
<function>mssql_fetch_object</function>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<refentry id="function.mssql-select-db">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_select_db</refname>
|
2000-02-27 21:22:48 +00:00
|
|
|
<refpurpose>Select MS SQL database</refpurpose>
|
1999-06-06 18:51:02 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
2000-06-24 07:38:45 +00:00
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_select_db</function></funcdef>
|
|
|
|
<paramdef>string <parameter>database_name</parameter></paramdef>
|
|
|
|
<paramdef>int
|
|
|
|
<parameter><optional>link_identifier</optional></parameter>
|
|
|
|
</paramdef>
|
|
|
|
</funcprototype>
|
1999-06-06 18:51:02 +00:00
|
|
|
</funcsynopsis>
|
2001-07-07 18:42:46 +00:00
|
|
|
<para> Returns: &true; on success, &false; on error
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
2000-02-27 21:22:48 +00:00
|
|
|
<para>
|
2001-06-23 20:10:52 +00:00
|
|
|
<function>mssql_select_db</function> sets the current active
|
2000-02-27 21:22:48 +00:00
|
|
|
database on the server that's associated with the specified link
|
|
|
|
identifier. If no link identifier is specified, the last opened
|
|
|
|
link is assumed. If no link is open, the function will try to
|
|
|
|
establish a link as if <function>mssql_connect</function> was
|
|
|
|
called, and use it.
|
1999-06-06 18:51:02 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Every subsequent call to <function>mssql_query</function> will be
|
|
|
|
made on the active database.
|
|
|
|
</para>
|
|
|
|
<para> See also:
|
|
|
|
<function>mssql_connect</function>,
|
|
|
|
<function>mssql_pconnect</function>, and
|
|
|
|
<function>mssql_query</function>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
2001-12-17 20:27:17 +00:00
|
|
|
<refentry id='function.mssql-bind'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_bind</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Adds a parameter to a stored procedure or a remote stored procedure
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_bind</function></funcdef>
|
|
|
|
<paramdef>int <parameter>stmt</parameter></paramdef>
|
|
|
|
<paramdef>string <parameter>param_name</parameter></paramdef>
|
|
|
|
<paramdef>mixed <parameter>var</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter>type</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter><optional>is_output</optional></parameter></paramdef>
|
|
|
|
<paramdef>int <parameter><optional>is_null</optional></parameter></paramdef>
|
|
|
|
<paramdef>int <parameter><optional>maxlen</optional></parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<refentry id='function.mssql-execute'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_execute</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Executes a stored procedure on a MS-SQL server database
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_execute</function></funcdef>
|
|
|
|
<paramdef>int <parameter>stmt</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<refentry id='function.mssql-fetch-assoc'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_fetch_assoc</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Returns an associative array of the current row in the result set specified by result_id
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>array <function>mssql_fetch_assoc</function></funcdef>
|
|
|
|
<paramdef>int <parameter>result_id</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter><optional>result_type</optional></parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<refentry id='function.mssql-fetch-batch'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_fetch_batch</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Returns the next batch of records
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_fetch_batch</function></funcdef>
|
|
|
|
<paramdef>string <parameter>result_index</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<refentry id='function.mssql-guid-string'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_guid_string</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Converts a 16 byte binary GUID to a string
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>string <function>mssql_guid_string</function></funcdef>
|
|
|
|
<paramdef>string <parameter>binary</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter><optional>short_format</optional></parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<refentry id='function.mssql-init'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_init</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Initializes a stored procedure or a remote stored procedure
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_init</function></funcdef>
|
|
|
|
<paramdef>string <parameter>sp_name</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter><optional>conn_id</optional></parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<refentry id='function.mssql-rows-affected'>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>mssql_rows_affected</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Returns the number of records affected by the query
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<funcsynopsis>
|
|
|
|
<funcprototype>
|
|
|
|
<funcdef>int <function>mssql_rows_affected</function></funcdef>
|
|
|
|
<paramdef>int <parameter>conn_id</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
<para>
|
|
|
|
&warn.undocumented.func;
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
|
1999-10-20 22:41:42 +00:00
|
|
|
</reference>
|
1999-06-06 18:51:02 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2001-12-12 20:47:43 +00:00
|
|
|
indent-tabs-mode:nil
|
1999-06-06 18:51:02 +00:00
|
|
|
sgml-parent-document:nil
|
2000-02-27 21:22:48 +00:00
|
|
|
sgml-default-dtd-file:"../../manual.ced"
|
1999-06-06 18:51:02 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
2001-09-21 22:47:49 +00:00
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
1999-06-06 18:51:02 +00:00
|
|
|
-->
|