forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlsrv.php
1734 lines (1663 loc) · 90.1 KB
/
sqlsrv.php
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
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* SQLSRV Extension Stub File.
*
* Current through version 3.0.1 (rel March 22, 2012) of Microsoft Drivers for PHP for SQL Server.
*
* Documentation taken from {@link http://msdn.microsoft.com/en-us/library/ee229547(v=sql.10).aspx} on Mar 22, 2012.
* Additional information from using Reflection.
*/
/**
* Errors generated on the last sqlsrv function call are returned.
*
* <br />Used to specify if {@link sqlsrv_errors() sqlsrv_errors} returns errors, warnings, or both.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_ERR_ERRORS', 0);
/**
* Warnings generated on the last sqlsrv function call are returned.
*
* <br />Used to specify if {@link sqlsrv_errors() sqlsrv_errors} returns errors, warnings, or both.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_ERR_WARNINGS', 1);
/**
* Errors and warnings generated on the last sqlsrv function call are returned.
*
* <br />This is the default value.<br />
*
* Used to specify if {@link sqlsrv_errors() sqlsrv_errors} returns errors, warnings, or both.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_ERR_ALL', 2);
/**
* Turns on logging of all subsystems.
*
* <br />Used as the value for the LogSubsystems setting with
* {@link sqlsrv_configure() sqlsrv_configure}.<br />
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SYSTEM_ALL',-1);
/**
* Turns logging off.
*
* <br />Used as the value for the LogSubsystems setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SYSTEM_OFF', 0);
/**
* Turns on logging of initialization activity.
*
* <br />Used as the value for the LogSubsystems setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SYSTEM_INIT', 1);
/**
* Turns on logging of connection activity.
*
* <br />Used as the value for the LogSubsystems setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SYSTEM_CONN', 2);
/**
* Turns on logging of statement activity.
*
* <br />Used as the value for the LogSubsystems setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SYSTEM_STMT', 4);
/**
* Turns on logging of error functions activity (such as handle_error and handle_warning).
*
* <br />Used as the value for the
* LogSubsystems setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SYSTEM_UTIL', 8);
/**
* Specifies that errors, warnings, and notices will be logged.
*
* <br />Used as the value for the LogSeverity setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SEVERITY_ALL', -1);
/**
* Specifies that errors will be logged.
*
* <br />Used as the value for the LogSeverity setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SEVERITY_ERROR', 1);
/**
* Specifies that notices will be logged.
*
* <br />Used as the value for the LogSeverity setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SEVERITY_NOTICE', 4);
/**
* Specifies that warnings will be logged.
*
* <br />Used as the value for the LogSeverity setting with {@link sqlsrv_configure() sqlsrv_configure}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_LOG_SEVERITY_WARNING', 2);
/**
* Returns numerically indexed array.
*
* <br />{@link sqlsrv_fetch_array() sqlsrv_fetch_array} returns the next row of data as a numerically indexed array.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_FETCH_NUMERIC', 1);
/**
* Returns an associative array.
*
* <br />{@link sqlsrv_fetch_array() sqlsrv_fetch_array} returns the next row of data as an associative array.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_FETCH_ASSOC', 2);
/**
* Returns both a numeric and associative array.
*
* <br />{@link sqlsrv_fetch_array() sqlsrv_fetch_array} returns the next row of data as an array with both numeric and
* associative keys.<br />
*
* This is the default value.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_FETCH_BOTH', 3);
/**
* Null
*
* <br />Used with {@link sqlsrv_prepare() sqlsrv_prepare},
* {@link sqlsrv_query() sqlsrv_query}
* and {@link sqlsrv_get_field() sqlsrv_get_field} to request a field be return as a specific PHP type.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_PHPTYPE_NULL', 1);
/**
* Integer
*
* <br />Used with {@link sqlsrv_prepare() sqlsrv_prepare},
* {@link sqlsrv_query() sqlsrv_query}
* and {@link sqlsrv_get_field() sqlsrv_get_field} to request a field be return as a specific PHP type.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_PHPTYPE_INT', 2);
/**
* Float
*
* <br />Used with {@link sqlsrv_prepare() sqlsrv_prepare},
* {@link sqlsrv_query() sqlsrv_query}
* and {@link sqlsrv_get_field() sqlsrv_get_field} to request a field be return as a specific PHP type.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_PHPTYPE_FLOAT', 3);
/**
* Datetime
*
* <br />Used with {@link sqlsrv_prepare() sqlsrv_prepare},
* {@link sqlsrv_query() sqlsrv_query}
* and {@link sqlsrv_get_field() sqlsrv_get_field} to request a field be return as a specific PHP type.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_PHPTYPE_DATETIME', 4);
/**
* Binary Encoding
*
* <br />Data is returned as a raw byte stream from the server without performing encoding or translation.<br />
*
* Used with {@link sqlsrv_prepare() sqlsrv_prepare},
* {@link sqlsrv_query() sqlsrv_query}
* and {@link sqlsrv_get_field() sqlsrv_get_field} to request a field be return as a specific PHP type.<br />
*
* This is used with {@link SQLSRV_PHPTYPE_STREAM() SQLSRV_PHPTYPE_STREAM} and
* {@link SQLSRV_PHPTYPE_STRING() SQLSRV_PHPTYPE_STRING} to specify the encoding of those PHP types types.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_ENC_BINARY', 'binary');
/**
* Character Encoding
*
* <br />Data is returned in 8-bit characters as specified in the code page of the Windows locale that is set on the
* system. Any multi-byte characters or characters that do not map into this code page are substituted with a single
* byte question mark (?) character.<br />
*
* This is the default encoding.<br />
*
* Used with {@link sqlsrv_prepare() sqlsrv_prepare},
* {@link sqlsrv_query() sqlsrv_query}
* and {@link sqlsrv_get_field() sqlsrv_get_field} to request a field be return as a specific PHP type.<br />
*
* This is used with {@link SQLSRV_PHPTYPE_STREAM() SQLSRV_PHPTYPE_STREAM} and
* {@link SQLSRV_PHPTYPE_STRING() SQLSRV_PHPTYPE_STRING} to specify the encoding of those PHP types types.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_ENC_CHAR','char');
/**
* The column is not nullable.
*
* <br />You can compare the value of the Nullable key that is returned by
* {@link sqlsrv_field_metadata() sqlsrv_field_metadata} to determine the column's nullable status.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_NULLABLE_NO', 0);
/**
* The column is nullable.
*
* <br />You can compare the value of the Nullable key that is returned by
* {@link sqlsrv_field_metadata() sqlsrv_field_metadata} to determine the column's nullable status.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_NULLABLE_YES', 1);
/**
* It is not known if the column is nullable.
*
* <br />You can compare the value of the Nullable key that is returned by
* {@link sqlsrv_field_metadata() sqlsrv_field_metadata} to determine the column's nullable status.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_NULLABLE_UNKNOWN', 2);
/**
* bigint.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_BIGINT', -5);
/**
* bit.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_BIT', -7);
/**
* datetime.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_DATETIME', 25177693);
/**
* float.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_FLOAT', 6);
/**
* image.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_IMAGE', -4);
/**
* int.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_INT', 4);
/**
* money.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_MONEY', 33564163);
/**
* ntext.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_NTEXT', -10);
/**
* text.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_TEXT', -1);
/**
* real.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_REAL', 7);
/**
* smalldatetime.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_SMALLDATETIME', 8285);
/**
* smallint.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_SMALLINT', 5);
/**
* smallmoney.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_SMALLMONEY', 33559555);
/**
* timestamp.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_TIMESTAMP', 4606);
/**
* tinyint.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_TINYINT', -6);
/**
* udt.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_UDT', -151);
/**
* uniqueidentifier.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_UNIQUEIDENTIFIER', -11);
/**
* xml.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_XML', -152);
/**
* date.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_DATE', 5211);
/**
* time.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_TIME', 58728806);
/**
* datetimeoffset.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_DATETIMEOFFSET', 58738021);
/**
* datetime2.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the SQL Server data type of a parameter.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SQLTYPE_DATETIME2', 58734173);
/**
* Indicates an input parameter.
*
* <br />Used for specifying parameter direction when you call {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_PARAM_IN', 1);
/**
* Indicates a bidirectional parameter.
*
* <br />Used for specifying parameter direction when you call {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_PARAM_INOUT', 2);
/**
* Indicates an output parameter.
*
* <br />Used for specifying parameter direction when you call {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_PARAM_OUT', 4);
/**
* Read Uncommitted.
*
* <br />Specifies that statements can read rows that have been modified by other transactions but not yet committed.<br />
*
* Transactions running at the READ UNCOMMITTED level do not issue shared locks to prevent other transactions from
* modifying data read by the current transaction. READ UNCOMMITTED transactions are also not blocked by exclusive locks
* that would prevent the current transaction from reading rows that have been modified but not committed by other
* transactions. When this option is set, it is possible to read uncommitted modifications, which are called dirty reads.
* Values in the data can be changed and rows can appear or disappear in the data set before the end of the transaction.
* This option has the same effect as setting NOLOCK on all tables in all SELECT statements in a transaction. This is
* the least restrictive of the isolation levels.<br />
*
* Used with the TransactionIsolation key when calling {@link sqlsrv_connect() sqlsrv_connect}. For information on using
* these constants, see {@link http://msdn.microsoft.com/en-us/library/ms173763(v=sql.110).aspx SET TRANSACTION ISOLATION LEVEL (Transact-SQL)}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_TXN_READ_UNCOMMITTED', 1);
/**
* Read Committed.
*
* <br />Specifies that statements cannot read data that has been modified but not committed by other transactions.
* This prevents dirty reads. Data can be changed by other transactions between individual statements within the current
* transaction, resulting in nonrepeatable reads or phantom data. This option is the SQL Server default.<br />
*
* The behavior of READ COMMITTED depends on the setting of the READ_COMMITTED_SNAPSHOT database option.<br />
*
* Used with the TransactionIsolation key when calling {@link sqlsrv_connect() sqlsrv_connect}. For information on using
* these constants, see {@link http://msdn.microsoft.com/en-us/library/ms173763(v=sql.110).aspx SET TRANSACTION ISOLATION LEVEL (Transact-SQL)}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_TXN_READ_COMMITTED', 2);
/**
* Repeatable Read.
*
* <br />Specifies that statements cannot read data that has been modified but not yet committed by other transactions and
* that no other transactions can modify data that has been read by the current transaction until the current transaction
* completes.<br />
*
* Shared locks are placed on all data read by each statement in the transaction and are held until the transaction
* completes. This prevents other transactions from modifying any rows that have been read by the current transaction.
* Other transactions can insert new rows that match the search conditions of statements issued by the current transaction.
* If the current transaction then retries the statement it will retrieve the new rows, which results in phantom reads.
* Because shared locks are held to the end of a transaction instead of being released at the end of each statement,
* concurrency is lower than the default READ COMMITTED isolation level.<br />
*
* Use this option only when necessary.<br />
*
* Used with the TransactionIsolation key when calling {@link sqlsrv_connect() sqlsrv_connect}. For information on using
* these constants, see {@link http://msdn.microsoft.com/en-us/library/ms173763(v=sql.110).aspx SET TRANSACTION ISOLATION LEVEL (Transact-SQL)}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_TXN_REPEATABLE_READ', 4);
/**
* Serializable.
*
* <br />Specifies the following:
* <ul><li>Statements cannot read data that has been modified but not yet committed by other transactions.</li>
* <li>No other transactions can modify data that has been read by the current transaction until the current
* transaction completes.</li>
* <li>Other transactions cannot insert new rows with key values that would fall in the range of keys read by any
* statements in the current transaction until the current transaction completes.</li></ul>
*
* Range locks are placed in the range of key values that match the search conditions of each statement executed in a
* transaction. This blocks other transactions from updating or inserting any rows that would qualify for any of the
* statements executed by the current transaction. This means that if any of the statements in a transaction are
* executed a second time, they will read the same set of rows. The range locks are held until the transaction completes.
* This is the most restrictive of the isolation levels because it locks entire ranges of keys and holds the locks until
* the transaction completes. Because concurrency is lower, use this option only when necessary. This option has the same
* effect as setting HOLDLOCK on all tables in all SELECT statements in a transaction.<br />
*
* Used with the TransactionIsolation key when calling {@link sqlsrv_connect() sqlsrv_connect}. For information on using
* these constants, see {@link http://msdn.microsoft.com/en-us/library/ms173763(v=sql.110).aspx SET TRANSACTION ISOLATION LEVEL (Transact-SQL)}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_TXN_SERIALIZABLE', 8);
/**
* Snapshot.
*
* <br />Specifies that data read by any statement in a transaction will be the transactionally consistent version of
* the data that existed at the start of the transaction. The transaction can only recognize data modifications that
* were committed before the start of the transaction. Data modifications made by other transactions after the start of
* the current transaction are not visible to statements executing in the current transaction. The effect is as if the
* statements in a transaction get a snapshot of the committed data as it existed at the start of the transaction.<br />
*
* Except when a database is being recovered, SNAPSHOT transactions do not request locks when reading data. SNAPSHOT
* transactions reading data do not block other transactions from writing data. Transactions writing data do not block
* SNAPSHOT transactions from reading data.<br />
*
* During the roll-back phase of a database recovery, SNAPSHOT transactions will request a lock if an attempt is made to
* read data that is locked by another transaction that is being rolled back. The SNAPSHOT transaction is blocked until
* that transaction has been rolled back. The lock is released immediately after it has been granted.<br />
*
* The ALLOW_SNAPSHOT_ISOLATION database option must be set to ON before you can start a transaction that uses the
* SNAPSHOT isolation level. If a transaction using the SNAPSHOT isolation level accesses data in multiple databases,
* ALLOW_SNAPSHOT_ISOLATION must be set to ON in each database.<br />
*
* A transaction cannot be set to SNAPSHOT isolation level that started with another isolation level; doing so will
* cause the transaction to abort. If a transaction starts in the SNAPSHOT isolation level, you can change it to another
* isolation level and then back to SNAPSHOT. A transaction starts the first time it accesses data.<br />
*
* A transaction running under SNAPSHOT isolation level can view changes made by that transaction. For example, if the
* transaction performs an UPDATE on a table and then issues a SELECT statement against the same table, the modified
* data will be included in the result set.<br />
*
* Used with the TransactionIsolation key when calling {@link sqlsrv_connect() sqlsrv_connect}. For information on using
* these constants, see {@link http://msdn.microsoft.com/en-us/library/ms173763(v=sql.110).aspx SET TRANSACTION ISOLATION LEVEL (Transact-SQL)}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_TXN_SNAPSHOT', 32);
/**
* Specifies the next row.
*
* <br />This is the default value, if you do not specify the row parameter for a scrollable result set.<br />
*
* Used with {@link sqlsrv_fetch() sqlsrv_fetch},
* {@link sqlsrv_fetch_array() sqlsrv_fetch_array},
* or {@link sqlsrv_fetch_object() sqlsrv_fetch_object} to specify a row.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify which row to select in the result set. For
* information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SCROLL_NEXT', 1);
/**
* Specifies the row before the current row.
*
* <br />Used with {@link sqlsrv_fetch() sqlsrv_fetch},
* {@link sqlsrv_fetch_array() sqlsrv_fetch_array},
* or {@link sqlsrv_fetch_object() sqlsrv_fetch_object} to specify a row.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify which row to select in the result set. For
* information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SCROLL_PRIOR', 4);
/**
* Specifies the first row in the result set.
*
* <br />Used with {@link sqlsrv_fetch() sqlsrv_fetch},
* {@link sqlsrv_fetch_array() sqlsrv_fetch_array},
* or {@link sqlsrv_fetch_object() sqlsrv_fetch_object} to specify a row.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify which row to select in the result set. For
* information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SCROLL_FIRST', 2);
/**
* Specifies the last row in the result set.
*
* <br />Used with {@link sqlsrv_fetch() sqlsrv_fetch},
* {@link sqlsrv_fetch_array() sqlsrv_fetch_array},
* or {@link sqlsrv_fetch_object() sqlsrv_fetch_object} to specify a row.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify which row to select in the result set. For
* information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SCROLL_LAST', 3);
/**
* Specifies the row specified with the offset parameter.
*
* <br />Used with {@link sqlsrv_fetch() sqlsrv_fetch},
* {@link sqlsrv_fetch_array() sqlsrv_fetch_array},
* or {@link sqlsrv_fetch_object() sqlsrv_fetch_object} to specify a row.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify which row to select in the result set. For
* information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SCROLL_ABSOLUTE', 5);
/**
* Specifies the row specified with the offset parameter from the current row.
*
* <br />Used with {@link sqlsrv_fetch() sqlsrv_fetch},
* {@link sqlsrv_fetch_array() sqlsrv_fetch_array},
* or {@link sqlsrv_fetch_object() sqlsrv_fetch_object} to specify a row.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify which row to select in the result set. For
* information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_SCROLL_RELATIVE', 6);
/**
* Lets you move one row at a time starting at the first row of the result set until you reach the end of
* the result set.
*
* <br />This is the default cursor type.<br />
*
* {@link sqlsrv_num_rows() sqlsrv_num_rows} returns an error for result sets created with this cursor type.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the kind of cursor that you can use in a result
* set. For information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_CURSOR_FORWARD', 'forward');
/**
* Lets you access rows in any order but will not reflect changes in the database.
*
* <br />Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the kind of cursor that you can use in a result
* set. For information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_CURSOR_STATIC', 'static');
/**
* Lets you access rows in any order and will reflect changes in the database.
*
* <br />{@link sqlsrv_num_rows() sqlsrv_num_rows} returns an error for result sets created with this cursor type.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the kind of cursor that you can use in a result
* set. For information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_CURSOR_DYNAMIC', 'dynamic');
/**
* Lets you access rows in any order.
*
* <br />However, a keyset cursor does not update the row count if a row is deleted from the table (a deleted row is
* returned with no values).<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the kind of cursor that you can use in a result
* set. For information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_CURSOR_KEYSET', 'keyset');
/**
* Lets you access rows in any order.
*
* <br />Creates a client-side cursor query.<br />
*
* Used when calling {@link sqlsrv_query() sqlsrv_query} or
*{@link sqlsrv_prepare() sqlsrv_prepare} to specify the kind of cursor that you can use in a result
* set. For information on using these constants, see
* {@link http://msdn.microsoft.com/en-us/library/ee376927.aspx Specifying a Cursor Type and Selecting Rows}.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
*
* @link http://msdn.microsoft.com/en-us/library/cc296183.aspx
*/
define('SQLSRV_CURSOR_CLIENT_BUFFERED', 'buffered');
/**
* Creates and opens a connection.
*
* <br />Creates a connection resource and opens a connection. By default, the connection is attempted using Windows
* Authentication.<br />
*
* If values for the UID and PWD keys are not specified in the optional $connectionInfo parameter, the connection will
* be attempted using Windows Authentication. For more information about connecting to the server,
* see {@link http://msdn.microsoft.com/en-us/library/cc296205.aspx How to: Connect Using Windows Authentication}
* and {@link http://msdn.microsoft.com/en-us/library/cc296182.aspx How to: Connect Using SQL Server Authentication.}<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296161.aspx
* @param string $server_name A string specifying the name of the server to which a connection is being established.
* An instance name (for example, "myServer\instanceName") or port number (for example, "myServer, 1521") can be
* included as part of this string. For a complete description of the options available for this parameter, see the
* Server keyword in the ODBC Driver Connection String Keywords section
* of {@link http://go.microsoft.com/fwlink/?LinkId=105504 Using Connection String Keywords with SQL Native Client}.<br />
*
* Beginning in version 3.0 of the Microsoft Drivers for PHP for SQL Server, you can also specify a LocalDB instance
* with "(localdb)\instancename". For more information,
* see {@link http://msdn.microsoft.com/en-us/library/hh487161.aspx PHP Driver for SQL Server Support for LocalDB} .<br />
*
* Also beginning in version 3.0 of the Microsoft Drivers for PHP for SQL Server, you can specify a virtual network name,
* to connect to an AlwaysOn availability group. For more information about Microsoft Drivers for PHP for SQL Server
* support for AlwaysOn Availability Groups,
* see {@link http://msdn.microsoft.com/en-us/library/hh487159.aspx PHP Driver for SQL Server Support for High Availability, Disaster Recovery}.
* @param array $connection_info [optional] An associative array that contains connection attributes (for example, array("Database" => "AdventureWorks")).
* See {@link http://msdn.microsoft.com/en-us/library/ff628167.aspx Connection Options} for a list of the supported keys for the array.
* @return resource|false A PHP connection resource. If a connection cannot be successfully created and opened, false is returned.
*/
function sqlsrv_connect($server_name, $connection_info = array()){}
/**
* Closes a connection. Frees all resources associated with the connection.
*
* <br />Null is a valid parameter for this function. This allows the function to be called multiple times in a script. For
* example, if you close a connection in an error condition and close it again at the end of the script, the second call
* to sqlsrv_close will return true because the first call to sqlsrv_close (in the error condition) sets the connection
* resource to null.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296175.aspx
* @param resource|null $conn The connection to be closed.
* @return bool The Boolean value true unless the function is called with an invalid parameter. If the function is called with an invalid parameter, false is returned.
*/
function sqlsrv_close($conn){}
/**
* Commits a transaction.
*
* <br />Commits the current transaction on the specified connection and returns the connection to the auto-commit mode.
* The current transaction includes all statements on the specified connection that were executed after the call to
* sqlsrv_begin_transaction and before any calls to sqlsrv_rollback or sqlsrv_commit.<br />
*
* The Microsoft Drivers for PHP for SQL Server is in auto-commit mode by default. This means that all queries are
* automatically committed upon success unless they have been designated as part of an explicit transaction by using
* sqlsrv_begin_transaction.<br />
*
* If sqlsrv_commit is called on a connection that is not in an active transaction and that was initiated with
* sqlsrv_begin_transaction, the call returns false and a Not in Transaction error is added to the error collection.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296194.aspx
* @param resource $conn The connection on which the transaction is active.
* @return bool A Boolean value: true if the transaction was successfully committed. Otherwise, false.
*/
function sqlsrv_commit($conn){}
/**
* Begins a transaction.
*
* <br />Begins a transaction on a specified connection. The current transaction includes all statements on the specified
* connection that were executed after the call to sqlsrv_begin_transaction and before any calls to sqlsrv_rollback or
* sqlsrv_commit.<br />
*
* The Microsoft Drivers for PHP for SQL Server is in auto-commit mode by default. This means that all queries are
* automatically committed upon success unless they have been designated as part of an explicit transaction by using
* sqlsrv_begin_transaction.<br />
*
* If sqlsrv_begin_transaction is called after a transaction has already been initiated on the connection but not
* completed by calling either sqlsrv_commit or sqlsrv_rollback, the call returns false and an Already in Transaction
* error is added to the error collection.<br />
*
* Do not use embedded Transact-SQL to perform transactions. For example, do not execute a statement with
* "BEGIN TRANSACTION" as the Transact-SQL query to begin a transaction. The expected transactional behavior cannot be
* guaranteed when using embedded Transact-SQL to perform transactions.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296206.aspx How to Perform Transactions}
* and {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296151.aspx
* @param resource $conn The connection with which the transaction is associated.
* @return bool A Boolean value: true if the transaction was successfully begun. Otherwise, false.
*/
function sqlsrv_begin_transaction($conn){}
/**
* Rolls back a transaction.
*
* <br />Rolls back the current transaction on the specified connection and returns the connection to the auto-commit mode.
* The current transaction includes all statements on the specified connection that were executed after the call to
* sqlsrv_begin_transaction and before any calls to {@link sqlsrv_rollback() sqlsrv_rollback} or
* {@link sqlsrv_commit() sqlsrv_commit}.<br />
*
* The Microsoft Drivers for PHP for SQL Server is in auto-commit mode by default. This means that all queries are
* automatically committed upon success unless they have been designated as part of an explicit transaction by using
* {@link sqlsrv_begin_transaction() sqlsrv_begin_transaction}.<br />
*
* If sqlsrv_rollback is called on a connection that is not in an active transaction that was initiated with
* {@link sqlsrv_begin_transaction() sqlsrv_begin_transaction}, the call returns false and a Not in Transaction error
* is added to the error collection.<br />
*
* Additional Information at {@link http://msdn.microsoft.com/en-us/library/cc296206.aspx How to Perform Transactions}
* and {@link http://msdn.microsoft.com/en-us/library/cc296152.aspx SQLSRV Driver API Reference}<br />
* @link http://msdn.microsoft.com/en-us/library/cc296176.aspx
* @param resource $conn The connection on which the transaction is active.
* @return bool A Boolean value: true if the transaction was successfully rolled back. Otherwise, false.
*/
function sqlsrv_rollback($conn){}
/**
* Returns error and/or warning information about the last operation.
*
* <br />Returns extended error and/or warning information about the last sqlsrv operation performed. <br />
*
* The sqlsrv_errors function can return error and/or warning information by calling it with one of the parameter values
* specified in the Parameters section below. <br />
*
* By default, warnings generated on a call to any sqlsrv function are treated as errors; if a warning occurs on a call
* to a sqlsrv function, the function returns false. However, warnings that correspond to SQLSTATE values 01000, 01001,
* 01003, and 01S02 are never treated as errors. <br />
*
* The following line of code turns off the behavior mentioned above; a warning generated by a call to a sqlsrv function
* does not cause the function to return false: <br />
*
* <code>{@link sqlsrv_configure() sqlsrv_configure}("WarningsReturnAsErrors", 0);</code>
*
* The following line of code reinstates the default behavior; warnings (with exceptions, noted above) are treated as
* errors: <br />