added referral source, made country a list, added contrastart
[openemr.git] / library / adodb / drivers / adodb-ado_mssql.inc.php
blobfec181abc88e3d4a49bed14556a9cb832d8475c4
1 <?php
2 /*
3 V4.20 22 Feb 2004 (c) 2000-2004 John Lim (jlim@natsoft.com.my). All rights reserved.
4 Released under both BSD license and Lesser GPL library license.
5 Whenever there is any discrepancy between the two licenses,
6 the BSD license will take precedence.
7 Set tabs to 4 for best viewing.
9 Latest version is available at http://php.weblogs.com/
11 Microsoft SQL Server ADO data driver. Requires ADO and MSSQL client.
12 Works only on MS Windows.
14 It is normally better to use the mssql driver directly because it is much faster.
15 This file is only a technology demonstration and for test purposes.
18 if (!defined('_ADODB_ADO_LAYER')) {
19 include(ADODB_DIR."/drivers/adodb-ado.inc.php");
22 class ADODB_ado_mssql extends ADODB_ado {
23 var $databaseType = 'ado_mssql';
24 var $hasTop = 'top';
25 var $sysDate = 'GetDate()';
26 var $sysTimeStamp = 'GetDate()';
27 var $leftOuter = '*=';
28 var $rightOuter = '=*';
29 var $ansiOuter = true; // for mssql7 or later
30 var $substr = "substring";
31 var $length = 'len';
32 var $upperCase = 'upper';
34 //var $_inTransaction = 1; // always open recordsets, so no transaction problems.
36 function ADODB_ado_mssql()
38 $this->ADODB_ado();
41 function _insertid()
43 return $this->GetOne('select @@identity');
46 function _affectedrows()
48 return $this->GetOne('select @@rowcount');
53 class ADORecordSet_ado_mssql extends ADORecordSet_ado {
55 var $databaseType = 'ado_mssql';
57 function ADORecordSet_ado_mssql($id,$mode=false)
59 return $this->ADORecordSet_ado($id,$mode);