File: mssql.xml

package info (click to toggle)
phpdoc 20020310-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 35,272 kB
  • ctags: 354
  • sloc: xml: 799,767; php: 1,395; cpp: 500; makefile: 200; sh: 140; awk: 51
file content (835 lines) | stat: -rw-r--r-- 28,455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.28 $ -->
 <reference id="ref.mssql">
  <title>Microsoft SQL Server functions</title>
  <titleabbrev>MS SQL Server</titleabbrev>
  <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
    from \winnt\system32 on the server to \winnt\system32 on the PHP box.
    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>

  <refentry id="function.mssql-close">
   <refnamediv>
    <refname>mssql_close</refname>
    <refpurpose>Close MS SQL Server connection</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_close</methodname>
      <methodparam choice="opt"><type>int</type><parameter>link_identifier</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returns: &true; on success, &false; on error.
    </para>
    <para> 
     <function>mssql_close</function> closes the link to a MS SQL
     Server database that's associated with the specified link
     identifier.  If the link identifier isn't specified, the last
     opened link is assumed.
    </para>
    <para> 
     Note that this isn't usually necessary, as non-persistent open
     links are automatically closed at the end of the script's
     execution.
    </para>
    <para> 
     <function>mssql_close</function> will not close persistent links
     generated by <function>mssql_pconnect</function>.
    </para>
    <para> 
     See also: <function>mssql_connect</function>,
     <function>mssql_pconnect</function>.  
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-connect">
   <refnamediv>
    <refname>mssql_connect</refname>
    <refpurpose>Open MS SQL server connection</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_connect</methodname>
      <methodparam choice="opt"><type>string</type><parameter>servername</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>username</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>password</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Returns: A positive MS SQL link identifier on success, or &false;
     on error.
    </para>
    <para> 
     <function>mssql_connect</function> establishes a connection to a
     MS SQL server.  The servername argument has to be a valid
     servername that is defined in the 'interfaces' file.
    </para>
    <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.
    </para>
    <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>.
    </para>
    <para>
     See also <function>mssql_pconnect</function>,
     <function>mssql_close</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-data-seek">
   <refnamediv>
    <refname>mssql_data_seek</refname>
    <refpurpose>Move internal row pointer</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_data_seek</methodname>
      <methodparam><type>int</type><parameter>result_identifier</parameter></methodparam>
      <methodparam><type>int</type><parameter>row_number</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Returns: &true; on success, &false; on failure.
    </para>
    <para> 
     <function>mssql_data_seek</function> moves the internal row
     pointer of the MS SQL result associated with the specified result
     identifier to point to the specified row number. The next call
     to <function>mssql_fetch_row</function> would return that row.
    </para>
    <para> 
     See also: <function>mssql_data_seek</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-fetch-array">
   <refnamediv>
    <refname>mssql_fetch_array</refname>
    <refpurpose>Fetch row as array</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_fetch_array</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Returns: An array that corresponds to the fetched row, or &false;
     if there are no more rows.
    </para>
    <para>
     <function>mssql_fetch_array</function> is an extended version of
     <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>
     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>
    <para>
     For further details, also see
     <function>mssql_fetch_row</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-fetch-field">
   <refnamediv>
    <refname>mssql_fetch_field</refname>
    <refpurpose>Get field information</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>object</type><methodname>mssql_fetch_field</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>field_offset</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returns an object containing field information.  
    </para>
    <para>
     <function>mssql_fetch_field</function> can be used in order to
     obtain information about fields in a certain query result. If
     the field offset isn't specified, the next field that wasn't yet
     retrieved by <function>mssql_fetch_field</function> is retrieved.
    </para>
    <para>
     The properties of the object are:
    </para>
    <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>
    <para>
     See also <function>mssql_field_seek</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-fetch-object">
   <refnamediv>
    <refname>mssql_fetch_object</refname>
    <refpurpose>Fetch row as object</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_fetch_object</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Returns: An object with properties that correspond to the fetched
     row, or &false; if there are no more rows.
    </para>
    <para> 
     <function>mssql_fetch_object</function> is similar to
     <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>
    <para>
     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).
    </para>
    <para> 
     See also: <function>mssql_fetch-array</function> and
     <function>mssql_fetch-row</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-fetch-row">
   <refnamediv>
    <refname>mssql_fetch_row</refname>
    <refpurpose>Get row as enumerated array</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>array</type><methodname>mssql_fetch_row</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Returns: An array that corresponds to the fetched row, or &false;
     if there are no more rows.
    </para>
    <para>
     <function>mssql_fetch_row</function> fetches one row of data from
     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.
    </para>
    <para>
     Subsequent call to <function>mssql_fetch_rows</function> would
     return the next row in the result set, or &false; if there are no
     more rows.
    </para>
    <para>
     See also: <function>mssql_fetch_array</function>,
     <function>mssql_fetch_object</function>,
     <function>mssql_data_seek</function>,
     <function>mssql_fetch_lengths</function>, and
     <function>mssql_result</function>.
    </para>
   </refsect1>
  </refentry>

  <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>
     <methodsynopsis>
      <type>int</type><methodname>mssql_field_length</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam>
     </methodsynopsis>
    <para>
     &warn.undocumented.func;
    </para>
   </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>
     <methodsynopsis>
      <type>int</type><methodname>mssql_field_name</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam>
     </methodsynopsis>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-field-seek">
   <refnamediv>
    <refname>mssql_field_seek</refname>
    <refpurpose>Set field offset</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_field_seek</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
      <methodparam><type>int</type><parameter>field_offset</parameter></methodparam>
     </methodsynopsis>
    <para>
     Seeks to the specified field offset.  If the next call to
     <function>mssql_fetch_field</function> won't include a field
     offset, this field would be returned.</para>
    <para></para>
    <para>
     See also: <function>mssql_fetch_field</function>.</para>
   </refsect1>
  </refentry>

  <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>
     <methodsynopsis>
      <type>string</type><methodname>mssql_field_type</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam>
     </methodsynopsis>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-free-result">
   <refnamediv>
    <refname>mssql_free_result</refname>
    <refpurpose>Free result memory</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_free_result</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
     </methodsynopsis>
    <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
     the script ends. You may call <function>mssql_free_result</function>
     with the result identifier as an argument and the associated
     result memory will be freed.
    </para>
   </refsect1>
  </refentry>

  <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>
     <methodsynopsis>
      <type>string</type><methodname>mssql_get_last_message</methodname>
      <void/>
     </methodsynopsis>
   </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>
     <methodsynopsis>
      <type>void</type><methodname>mssql_min_error_severity</methodname>
      <methodparam><type>int</type><parameter>severity</parameter></methodparam>
     </methodsynopsis>
   </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>
     <methodsynopsis>
      <type>void</type><methodname>mssql_min_message_severity</methodname>
      <methodparam><type>int</type><parameter>severity</parameter></methodparam>
     </methodsynopsis>
   </refsect1>
  </refentry>

  <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>
     <methodsynopsis>
      <type>bool</type><methodname>mssql_next_result</methodname>
      <methodparam><type>int</type><parameter>result_id</parameter></methodparam>
     </methodsynopsis>
    <para>
     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
     and prepare to fetch the rows from the new result set. The
     function will return &true; if an additional result set was
     available or &false; otherwise.
    </para>
    <example>
     <title><function>mssql_next_result</function> example</title>
     <programlisting role="php">
<![CDATA[
<?php
    $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);
?>
]]>
     </programlisting>
    </example>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-num-fields">
   <refnamediv>
    <refname>mssql_num_fields</refname>
    <refpurpose>Get number of fields in result</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_num_fields</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
     </methodsynopsis>
    <para> 
     <function>mssql_num_fields</function> returns the number of
     fields in a result set.
    </para>
    <para> 
     See also: <function>mssql_db_query</function>,
     <function>mssql_query</function>,
     <function>mssql_fetch_field</function>, and
     <function>mssql_num_rows</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-num-rows">
   <refnamediv>
    <refname>mssql_num_rows</refname>
    <refpurpose>Get number of rows in result</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_num_rows</methodname>
      <methodparam><type>string</type><parameter>result</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>mssql_num_rows</function> returns the number of rows in
     a result set.
    </para>
    <para>
     See also: <function>mssql_db_query</function>,
     <function>mssql_query</function>, and
     <function>mssql_fetch_row</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-pconnect">
   <refnamediv>
    <refname>mssql_pconnect</refname>
    <refpurpose>Open persistent MS SQL connection</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_pconnect</methodname>
      <methodparam choice="opt"><type>string</type><parameter>servername</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>username</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>password</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Returns: A positive MS SQL persistent link identifier on success,
     or &false; on error.
    </para>
    <para>
     <function>mssql_pconnect</function> acts very much like
     <function>mssql_connect</function> with two major differences.
    </para>
    <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
     will be returned instead of opening a new connection.
    </para>
    <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
     close links established by <function>mssql_pconnect</function>).
    </para>
    <para> 
     This type of links is therefore called 'persistent'.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-query">
   <refnamediv>
    <refname>mssql_query</refname>
    <refpurpose>Send MS SQL query</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_query</methodname>
      <methodparam><type>string</type><parameter>query</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>link_identifier</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Returns: A positive MS SQL result identifier on success, or &false;
     on error.
    </para>
    <para> 
     <function>mssql_query</function> sends a query to the currently
     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.
    </para>
    <para>
     See also: <function>mssql_db_query</function>,
     <function>mssql_select_db</function>, and
     <function>mssql_connect</function>.
    </para>
   </refsect1>
  </refentry>

  <refentry id="function.mssql-result">
   <refnamediv>
    <refname>mssql_result</refname>
    <refpurpose>Get result data</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_result</methodname>
      <methodparam><type>int</type><parameter>result</parameter></methodparam>
      <methodparam><type>int</type><parameter>i</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>field</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>mssql_result</function> returns the contents of one
     cell from a MS SQL result set.  The field argument can be the
     field's offset, the field's name or the field's table dot
     field's name (tablename.fieldname).  If the column name has been
     aliased ('select foo as bar from...'), it uses the alias instead of
     the column name.
    </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
     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.
    </para>
    <para>
     Recommended high-performance alternatives:
     <function>mssql_fetch_row</function>,
     <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>
    <refpurpose>Select MS SQL database</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>mssql_select_db</methodname>
      <methodparam><type>string</type><parameter>database_name</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>link_identifier</parameter></methodparam>
     </methodsynopsis>
    <para> Returns: &true; on success, &false; on error
    </para>
    <para> 
     <function>mssql_select_db</function> sets the current active
     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.
    </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>

  <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>
     <methodsynopsis>
      <type>int</type><methodname>mssql_bind</methodname>
      <methodparam><type>int</type><parameter>stmt</parameter></methodparam>
      <methodparam><type>string</type><parameter>param_name</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>var</parameter></methodparam>
      <methodparam><type>int</type><parameter>type</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>is_output</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>is_null</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>maxlen</parameter></methodparam>
     </methodsynopsis>
    <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>
     <methodsynopsis>
      <type>int</type><methodname>mssql_execute</methodname>
      <methodparam><type>int</type><parameter>stmt</parameter></methodparam>
     </methodsynopsis>
    <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>
     <methodsynopsis>
      <type>array</type><methodname>mssql_fetch_assoc</methodname>
      <methodparam><type>int</type><parameter>result_id</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>result_type</parameter></methodparam>
     </methodsynopsis>
    <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>
     <methodsynopsis>
      <type>int</type><methodname>mssql_fetch_batch</methodname>
      <methodparam><type>string</type><parameter>result_index</parameter></methodparam>
     </methodsynopsis>
    <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>
     <methodsynopsis>
      <type>string</type><methodname>mssql_guid_string</methodname>
      <methodparam><type>string</type><parameter>binary</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>short_format</parameter></methodparam>
     </methodsynopsis>
    <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>
     <methodsynopsis>
      <type>int</type><methodname>mssql_init</methodname>
      <methodparam><type>string</type><parameter>sp_name</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>conn_id</parameter></methodparam>
     </methodsynopsis>
    <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>
     <methodsynopsis>
      <type>int</type><methodname>mssql_rows_affected</methodname>
      <methodparam><type>int</type><parameter>conn_id</parameter></methodparam>
     </methodsynopsis>
    <para>
     &warn.undocumented.func;
    </para>
   </refsect1>
  </refentry>


</reference>

<!-- 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:"../../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
-->