Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release > by-pkgid > f0bc842dcf666302badcfd2545f3387c > files > 84

libfreetds0-doc-0.82-12.mga1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>FreeTDS API: /usr/local/users/home/jklowden/projects/releases/freetds/0.82/include/sybdb.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">include</a></div>
<h1>sybdb.h</h1><a href="a00160.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* FreeTDS - Library of routines accessing Sybase and Microsoft databases</span>
00002 <span class="comment"> * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004  Brian Bruns</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00005 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
00007 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
00012 <span class="comment"> * Library General Public License for more details.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
00015 <span class="comment"> * License along with this library; if not, write to the</span>
00016 <span class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330,</span>
00017 <span class="comment"> * Boston, MA 02111-1307, USA.</span>
00018 <span class="comment"> */</span>
00019 
00027 <span class="preprocessor">#ifndef _sybdb_h_</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#define _sybdb_h_</span>
00029 <span class="preprocessor"></span>
00030 <span class="preprocessor">#include "tds_sysdep_public.h"</span>
00031 
00032 <span class="preprocessor">#undef TDS_STATIC_CAST</span>
00033 <span class="preprocessor"></span><span class="preprocessor">#ifdef __cplusplus</span>
00034 <span class="preprocessor"></span><span class="preprocessor">#define TDS_STATIC_CAST(type, a) static_cast&lt;type&gt;(a)</span>
00035 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span>
00036 {
00037 <span class="preprocessor">#if 0</span>
00038 <span class="preprocessor"></span>}
00039 <span class="preprocessor">#endif</span>
00040 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00041 <span class="preprocessor"></span><span class="preprocessor">#define TDS_STATIC_CAST(type, a) ((type)(a))</span>
00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00043 <span class="preprocessor"></span>
00044 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> rcsid_sybdb_h[] = <span class="stringliteral">"$Id: sybdb.h,v 1.85 2007/12/02 23:01:37 jklowden Exp $"</span>;
00045 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">void</span> *<span class="keyword">const</span> no_unused_sybdb_h_warn[] = { rcsid_sybdb_h, no_unused_sybdb_h_warn };
00046 
00047 <span class="preprocessor">#ifdef FALSE</span>
00048 <span class="preprocessor"></span><span class="preprocessor">#undef FALSE</span>
00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00050 <span class="preprocessor"></span><span class="preprocessor">#ifdef TRUE</span>
00051 <span class="preprocessor"></span><span class="preprocessor">#undef TRUE</span>
00052 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00053 <span class="preprocessor"></span><span class="preprocessor">#define FALSE 0</span>
00054 <span class="preprocessor"></span><span class="preprocessor">#define TRUE  1</span>
00055 <span class="preprocessor"></span>
00056 <span class="preprocessor">#define DBSAVE   1</span>
00057 <span class="preprocessor"></span><span class="preprocessor">#define DBNOSAVE 0</span>
00058 <span class="preprocessor"></span><span class="preprocessor">#define DBNOERR  -1</span>
00059 <span class="preprocessor"></span>
00060 <span class="preprocessor">#define INT_EXIT        0</span>
00061 <span class="preprocessor"></span><span class="preprocessor">#define INT_CONTINUE    1</span>
00062 <span class="preprocessor"></span><span class="preprocessor">#define INT_CANCEL      2</span>
00063 <span class="preprocessor"></span><span class="preprocessor">#define INT_TIMEOUT     3</span>
00064 <span class="preprocessor"></span>
00065 <span class="preprocessor">#define DBMAXNUMLEN 33</span>
00066 <span class="preprocessor"></span><span class="preprocessor">#define DBMAXNAME   30</span>
00067 <span class="preprocessor"></span>
<a name="l00071"></a><a class="code" href="a00160.html#a12">00071</a> <span class="preprocessor">#define DBVERSION_UNKNOWN 0</span>
00072 <span class="preprocessor"></span><span class="preprocessor">#define DBVERSION_46      1</span>
00073 <span class="preprocessor"></span><span class="preprocessor">#define DBVERSION_100     2</span>
00074 <span class="preprocessor"></span><span class="preprocessor">#define DBVERSION_42      3</span>
00075 <span class="preprocessor"></span><span class="preprocessor">#define DBVERSION_70      4</span>
00076 <span class="preprocessor"></span><span class="preprocessor">#define DBVERSION_80      5</span>
00077 <span class="preprocessor"></span>
00078 <span class="comment">/* these two are defined by Microsoft for dbsetlversion() */</span>
00079 <span class="preprocessor">#define DBVER42           DBVERSION_42</span>
00080 <span class="preprocessor"></span><span class="preprocessor">#define DBVER60           DBVERSION_70  </span><span class="comment">/* our best approximation */</span>
00081 
<a name="l00086"></a><a class="code" href="a00160.html#a20">00086</a> <span class="preprocessor">#define DBTDS_UNKNOWN           0</span>
00087 <span class="preprocessor"></span><span class="preprocessor">#define DBTDS_2_0               1       </span><span class="comment">/* pre 4.0 SQL Server */</span>
00088 <span class="preprocessor">#define DBTDS_3_4               2       </span><span class="comment">/* Microsoft SQL Server (3.0) */</span>
00089 <span class="preprocessor">#define DBTDS_4_0               3       </span><span class="comment">/* 4.0 SQL Server */</span>
00090 <span class="preprocessor">#define DBTDS_4_2               4       </span><span class="comment">/* 4.2 SQL Server */</span>
00091 <span class="preprocessor">#define DBTDS_4_6               5       </span><span class="comment">/* 2.0 OpenServer and 4.6 SQL Server. */</span>
00092 <span class="preprocessor">#define DBTDS_4_9_5             6       </span><span class="comment">/* 4.9.5 (NCR) SQL Server */</span>
00093 <span class="preprocessor">#define DBTDS_5_0               7       </span><span class="comment">/* 5.0 SQL Server */</span>
00094 <span class="preprocessor">#define DBTDS_7_0               8       </span><span class="comment">/* Microsoft SQL Server 7.0 */</span>
00095 <span class="preprocessor">#define DBTDS_8_0               9       </span><span class="comment">/* Microsoft SQL Server 2000 */</span>
00096 <span class="preprocessor">#define DBTDS_9_0               10      </span><span class="comment">/* Microsoft SQL Server 2005 */</span>
00097 
00098 <span class="preprocessor">#define DBTXPLEN 16</span>
00099 <span class="preprocessor"></span>
00100 <span class="preprocessor">#define BCPMAXERRS 1</span>
00101 <span class="preprocessor"></span><span class="preprocessor">#define BCPFIRST 2</span>
00102 <span class="preprocessor"></span><span class="preprocessor">#define BCPLAST 3</span>
00103 <span class="preprocessor"></span><span class="preprocessor">#define BCPBATCH 4</span>
00104 <span class="preprocessor"></span><span class="preprocessor">#define BCPKEEPIDENTITY 8</span>
00105 <span class="preprocessor"></span>
00106 <span class="preprocessor">#define BCPLABELED 5</span>
00107 <span class="preprocessor"></span><span class="preprocessor">#define BCPHINTS 6</span>
00108 <span class="preprocessor"></span>
00109 <span class="preprocessor">#define DBCMDNONE 0</span>
00110 <span class="preprocessor"></span><span class="preprocessor">#define DBCMDPEND 1</span>
00111 <span class="preprocessor"></span><span class="preprocessor">#define DBCMDSENT 2</span>
00112 <span class="preprocessor"></span>
00113 <span class="keyword">typedef</span> <span class="keywordtype">int</span> RETCODE;
00114 
00115 <span class="keyword">typedef</span> <span class="keywordtype">void</span> DBCURSOR;
00116 <span class="keyword">typedef</span> <span class="keywordtype">void</span> DBXLATE;
00117 <span class="keyword">typedef</span> <span class="keywordtype">void</span> DBSORTORDER;
00118 <span class="keyword">typedef</span> <span class="keywordtype">void</span> DBLOGINFO;
00119 <span class="keyword">typedef</span> <span class="keywordtype">void</span> *DBVOIDPTR;
00120 <span class="keyword">typedef</span> <span class="keywordtype">short</span> SHORT;
00121 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> USHORT;
00122 <span class="keyword">typedef</span> int (*INTFUNCPTR) (<span class="keywordtype">void</span> *, ...);
00123 <span class="keyword">typedef</span> int (*DBWAITFUNC) (void);
00124 <span class="keyword">typedef</span> DBWAITFUNC(*DB_DBBUSY_FUNC) (<span class="keywordtype">void</span> *dbproc);
00125 <span class="keyword">typedef</span> void (*DB_DBIDLE_FUNC) (DBWAITFUNC dfunc, <span class="keywordtype">void</span> *dbproc);
00126 <span class="keyword">typedef</span> int (*DB_DBCHKINTR_FUNC) (<span class="keywordtype">void</span> *dbproc);
00127 <span class="keyword">typedef</span> int (*DB_DBHNDLINTR_FUNC) (<span class="keywordtype">void</span> *dbproc);
00128 
00129 <span class="preprocessor">#ifndef __INCvxWorksh</span>
00130 <span class="preprocessor"></span><span class="comment">/* VxWorks already defines STATUS and BOOL. Compiler gets mad if you </span>
00131 <span class="comment">** redefine them. */</span>
00132 <span class="comment">/* __INCvxWorksh will get #defined by std. include files included from tds.h</span>
00133 <span class="comment">*/</span>
00134 <span class="preprocessor">#ifdef STATUS</span>
00135 <span class="preprocessor"></span><span class="comment">/* On DU4.0d we get a conflicting STATUS definition from arpa/nameser.h</span>
00136 <span class="comment">   when _REENTRANT is defined.</span>
00137 <span class="comment">*/</span>
00138 <span class="preprocessor">#undef STATUS</span>
00139 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00140 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">int</span> STATUS;
00141 <span class="preprocessor">#if !defined(_WINDEF_) &amp;&amp; !defined(_WINDEF_H) &amp;&amp; !defined(DOS32X)</span>
00142 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">int</span> BOOL;
00143 <span class="preprocessor">#endif</span>
00144 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00145 <span class="preprocessor"></span>
00146 <span class="preprocessor">#if !defined(_FREETDS_LIBRARY_SOURCE) || !defined(_tds_h_)</span>
00147 <span class="preprocessor"></span><span class="comment">/* copied from tds.h */</span>
00148 <span class="comment">/* TODO find a best way... */</span>
00149 <span class="keyword">enum</span>
00150 {
00151         SYBCHAR = 47,           <span class="comment">/* 0x2F */</span>
00152 <span class="preprocessor">#define SYBCHAR SYBCHAR</span>
00153 <span class="preprocessor"></span>        SYBVARCHAR = 39,        <span class="comment">/* 0x27 */</span>
00154 <span class="preprocessor">#define SYBVARCHAR      SYBVARCHAR</span>
00155 <span class="preprocessor"></span>        SYBINTN = 38,           <span class="comment">/* 0x26 */</span>
00156 <span class="preprocessor">#define SYBINTN SYBINTN</span>
00157 <span class="preprocessor"></span>        SYBINT1 = 48,           <span class="comment">/* 0x30 */</span>
00158 <span class="preprocessor">#define SYBINT1 SYBINT1</span>
00159 <span class="preprocessor"></span>        SYBINT2 = 52,           <span class="comment">/* 0x34 */</span>
00160 <span class="preprocessor">#define SYBINT2 SYBINT2</span>
00161 <span class="preprocessor"></span>        SYBINT4 = 56,           <span class="comment">/* 0x38 */</span>
00162 <span class="preprocessor">#define SYBINT4 SYBINT4</span>
00163 <span class="preprocessor"></span>        SYBINT8 = 127,          <span class="comment">/* 0x7F */</span>
00164 <span class="preprocessor">#define SYBINT8 SYBINT8</span>
00165 <span class="preprocessor"></span>        SYBFLT8 = 62,           <span class="comment">/* 0x3E */</span>
00166 <span class="preprocessor">#define SYBFLT8 SYBFLT8</span>
00167 <span class="preprocessor"></span>        SYBDATETIME = 61,       <span class="comment">/* 0x3D */</span>
00168 <span class="preprocessor">#define SYBDATETIME     SYBDATETIME</span>
00169 <span class="preprocessor"></span>        SYBBIT = 50,            <span class="comment">/* 0x32 */</span>
00170 <span class="preprocessor">#define SYBBIT  SYBBIT</span>
00171 <span class="preprocessor"></span>        SYBTEXT = 35,           <span class="comment">/* 0x23 */</span>
00172 <span class="preprocessor">#define SYBTEXT SYBTEXT</span>
00173 <span class="preprocessor"></span>        SYBIMAGE = 34,          <span class="comment">/* 0x22 */</span>
00174 <span class="preprocessor">#define SYBIMAGE        SYBIMAGE</span>
00175 <span class="preprocessor"></span>        SYBMONEY4 = 122,        <span class="comment">/* 0x7A */</span>
00176 <span class="preprocessor">#define SYBMONEY4       SYBMONEY4</span>
00177 <span class="preprocessor"></span>        SYBMONEY = 60,          <span class="comment">/* 0x3C */</span>
00178 <span class="preprocessor">#define SYBMONEY        SYBMONEY</span>
00179 <span class="preprocessor"></span>        SYBDATETIME4 = 58,      <span class="comment">/* 0x3A */</span>
00180 <span class="preprocessor">#define SYBDATETIME4    SYBDATETIME4</span>
00181 <span class="preprocessor"></span>        SYBREAL = 59,           <span class="comment">/* 0x3B */</span>
00182 <span class="preprocessor">#define SYBREAL SYBREAL</span>
00183 <span class="preprocessor"></span>        SYBBINARY = 45,         <span class="comment">/* 0x2D */</span>
00184 <span class="preprocessor">#define SYBBINARY       SYBBINARY</span>
00185 <span class="preprocessor"></span>        SYBVARBINARY = 37,      <span class="comment">/* 0x25 */</span>
00186 <span class="preprocessor">#define SYBVARBINARY    SYBVARBINARY</span>
00187 <span class="preprocessor"></span>        SYBNUMERIC = 108,       <span class="comment">/* 0x6C */</span>
00188 <span class="preprocessor">#define SYBNUMERIC      SYBNUMERIC</span>
00189 <span class="preprocessor"></span>        SYBDECIMAL = 106,       <span class="comment">/* 0x6A */</span>
00190 <span class="preprocessor">#define SYBDECIMAL      SYBDECIMAL</span>
00191 <span class="preprocessor"></span>        SYBFLTN = 109,          <span class="comment">/* 0x6D */</span>
00192 <span class="preprocessor">#define SYBFLTN SYBFLTN</span>
00193 <span class="preprocessor"></span>        SYBMONEYN = 110,        <span class="comment">/* 0x6E */</span>
00194 <span class="preprocessor">#define SYBMONEYN       SYBMONEYN</span>
00195 <span class="preprocessor"></span>        SYBDATETIMN = 111       <span class="comment">/* 0x6F */</span>
00196 <span class="preprocessor">#define SYBDATETIMN     SYBDATETIMN</span>
00197 <span class="preprocessor"></span>};
00198 
00199 <span class="preprocessor">#define SYBAOPCNT  0x4b</span>
00200 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPCNTU 0x4c</span>
00201 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPSUM  0x4d</span>
00202 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPSUMU 0x4e</span>
00203 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPAVG  0x4f</span>
00204 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPAVGU 0x50</span>
00205 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPMIN  0x51</span>
00206 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPMAX  0x52</span>
00207 <span class="preprocessor"></span>
00208 <span class="comment">/* mssql2k compute operator */</span>
00209 <span class="preprocessor">#define SYBAOPCNT_BIG           0x09</span>
00210 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPSTDEV             0x30</span>
00211 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPSTDEVP            0x31</span>
00212 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPVAR               0x32</span>
00213 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPVARP              0x33</span>
00214 <span class="preprocessor"></span><span class="preprocessor">#define SYBAOPCHECKSUM_AGG      0x72</span>
00215 <span class="preprocessor"></span>
00216 <span class="preprocessor">#endif</span>
00217 <span class="preprocessor"></span>
00218 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> DBBOOL;
00219 <span class="keyword">typedef</span> <span class="keywordtype">char</span> DBCHAR;
00220 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> DBBIT;
00221 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> DBTINYINT;
00222 <span class="keyword">typedef</span> tds_sysdep_int16_type DBSMALLINT;
00223 <span class="keyword">typedef</span> tds_sysdep_int32_type DBINT;
00224 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> DBBINARY;
00225 <span class="keyword">typedef</span> tds_sysdep_real32_type DBREAL;
00226 <span class="keyword">typedef</span> tds_sysdep_real64_type DBFLT8;
00227 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> tds_sysdep_int16_type DBUSMALLINT;
00228 
00229 <span class="keyword">typedef</span> <span class="keyword">struct </span>
00230 <span class="keyword"></span>{
00231         DBINT len;
00232     <span class="keywordtype">char</span>  str[256];
00233 } DBVARYCHAR;
00234    
00235 <span class="keyword">typedef</span> <span class="keyword">struct</span>
00236 <span class="keyword"></span>{
00237         <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> precision;
00238         <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> scale;
00239         <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> array[33];
00240 } DBNUMERIC;
00241 
00242 <span class="keyword">typedef</span> DBNUMERIC DBDECIMAL;
00243 
00244 <span class="keyword">typedef</span> <span class="keyword">struct</span>
00245 <span class="keyword"></span>{
00246         DBINT mnyhigh;
00247         <span class="keywordtype">unsigned</span> tds_sysdep_int32_type mnylow;
00248 } DBMONEY;
00249 
00250 <span class="keyword">typedef</span> <span class="keyword">struct</span>
00251 <span class="keyword"></span>{
00252         DBINT mny4;
00253 } DBMONEY4;
00254 
00255 <span class="keyword">typedef</span> <span class="keyword">struct</span>
00256 <span class="keyword"></span>{
00257         DBINT dtdays;
00258         DBINT dttime;
00259 } DBDATETIME;
00260 
00261 <span class="keyword">typedef</span> <span class="keyword">struct</span>
00262 <span class="keyword"></span>{
00263         DBUSMALLINT days;
00264         DBUSMALLINT minutes;
00265 } DBDATETIME4;
00266 
00267 <span class="preprocessor">#ifdef MSDBLIB</span>
00268 <span class="preprocessor"></span><span class="preprocessor">#define SQLCHAR SYBCHAR</span>
00269 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00270 <span class="preprocessor"></span>
00271 <span class="keyword">typedef</span> <span class="keyword">struct </span>tds_dblib_loginrec LOGINREC;
00272 
00273 <span class="preprocessor">#ifndef DOS32X</span>
00274 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> BYTE;
00275 <span class="preprocessor">#endif</span>
00276 <span class="preprocessor"></span>
00277 <span class="keyword">typedef</span> <span class="keyword">struct </span>dbtypeinfo
00278 {
00279         DBINT precision;
00280         DBINT scale;
00281 } DBTYPEINFO;
00282 
00283 <span class="keyword">struct </span>dbstring
00284 {
00285         BYTE *strtext;
00286         DBINT strtotlen;
00287         <span class="keyword">struct </span>dbstring *strnext;
00288 };
00289 <span class="keyword">typedef</span> <span class="keyword">struct </span>dbstring DBSTRING;
00290 
00291 <span class="comment">/* Used by dbcolinfo */</span>
00292 <span class="keyword">enum</span>
00293 { MAXCOLNAMELEN = 512 }; <span class="comment">/* duplicates TDS_SYSNAME_SIZE */</span>
00294 <span class="keyword">typedef</span> <span class="keyword">enum</span> { CI_REGULAR=1, CI_ALTERNATE=2, CI_CURSOR=3 } CI_TYPE;
00295 
00296 <span class="keyword">typedef</span> <span class="keyword">struct </span>
00297 <span class="keyword"></span>{ 
00298     DBINT SizeOfStruct; 
00299     DBCHAR  Name[MAXCOLNAMELEN+2]; 
00300     DBCHAR  ActualName[MAXCOLNAMELEN+2]; 
00301     DBCHAR  TableName[MAXCOLNAMELEN+2]; 
00302     SHORT Type; 
00303     DBINT UserType; 
00304     DBINT MaxLength; 
00305     BYTE  Precision; 
00306     BYTE  Scale; 
00307     BOOL  VarLength; 
00308     BYTE  Null; 
00309     BYTE  CaseSensitive; 
00310     BYTE  Updatable; 
00311     BOOL  Identity; 
00312 
00313 } DBCOL; 
00314 <span class="comment">/* end dbcolinfo stuff */</span>
00315 
00316 
00317 
00318 <span class="comment">/* a large list of options, DBTEXTSIZE is needed by sybtcl */</span>
00319 <span class="preprocessor">#define DBPARSEONLY      0</span>
00320 <span class="preprocessor"></span><span class="preprocessor">#define DBESTIMATE       1</span>
00321 <span class="preprocessor"></span><span class="preprocessor">#define DBSHOWPLAN       2</span>
00322 <span class="preprocessor"></span><span class="preprocessor">#define DBNOEXEC         3</span>
00323 <span class="preprocessor"></span><span class="preprocessor">#define DBARITHIGNORE    4</span>
00324 <span class="preprocessor"></span><span class="preprocessor">#define DBNOCOUNT        5</span>
00325 <span class="preprocessor"></span><span class="preprocessor">#define DBARITHABORT     6</span>
00326 <span class="preprocessor"></span><span class="preprocessor">#define DBTEXTLIMIT      7</span>
00327 <span class="preprocessor"></span><span class="preprocessor">#define DBBROWSE         8</span>
00328 <span class="preprocessor"></span><span class="preprocessor">#define DBOFFSET         9</span>
00329 <span class="preprocessor"></span><span class="preprocessor">#define DBSTAT          10</span>
00330 <span class="preprocessor"></span><span class="preprocessor">#define DBERRLVL        11</span>
00331 <span class="preprocessor"></span><span class="preprocessor">#define DBCONFIRM       12</span>
00332 <span class="preprocessor"></span><span class="preprocessor">#define DBSTORPROCID    13</span>
00333 <span class="preprocessor"></span><span class="preprocessor">#define DBBUFFER        14</span>
00334 <span class="preprocessor"></span><span class="preprocessor">#define DBNOAUTOFREE    15</span>
00335 <span class="preprocessor"></span><span class="preprocessor">#define DBROWCOUNT      16</span>
00336 <span class="preprocessor"></span><span class="preprocessor">#define DBTEXTSIZE      17</span>
00337 <span class="preprocessor"></span><span class="preprocessor">#define DBNATLANG       18</span>
00338 <span class="preprocessor"></span><span class="preprocessor">#define DBDATEFORMAT    19</span>
00339 <span class="preprocessor"></span><span class="preprocessor">#define DBPRPAD         20</span>
00340 <span class="preprocessor"></span><span class="preprocessor">#define DBPRCOLSEP      21</span>
00341 <span class="preprocessor"></span><span class="preprocessor">#define DBPRLINELEN     22</span>
00342 <span class="preprocessor"></span><span class="preprocessor">#define DBPRLINESEP     23</span>
00343 <span class="preprocessor"></span><span class="preprocessor">#define DBLFCONVERT     24</span>
00344 <span class="preprocessor"></span><span class="preprocessor">#define DBDATEFIRST     25</span>
00345 <span class="preprocessor"></span><span class="preprocessor">#define DBCHAINXACTS    26</span>
00346 <span class="preprocessor"></span><span class="preprocessor">#define DBFIPSFLAG      27</span>
00347 <span class="preprocessor"></span><span class="preprocessor">#define DBISOLATION     28</span>
00348 <span class="preprocessor"></span><span class="preprocessor">#define DBAUTH          29</span>
00349 <span class="preprocessor"></span><span class="preprocessor">#define DBIDENTITY      30</span>
00350 <span class="preprocessor"></span><span class="preprocessor">#define DBNOIDCOL       31</span>
00351 <span class="preprocessor"></span><span class="preprocessor">#define DBDATESHORT     32</span>
00352 <span class="preprocessor"></span><span class="preprocessor">#define DBCLIENTCURSORS 33</span>
00353 <span class="preprocessor"></span><span class="preprocessor">#define DBSETTIME       34</span>
00354 <span class="preprocessor"></span><span class="preprocessor">#define DBQUOTEDIDENT   35</span>
00355 <span class="preprocessor"></span>
00356 <span class="preprocessor">#define DBNUMOPTIONS  36</span>
00357 <span class="preprocessor"></span>
00358 <span class="preprocessor">#define DBPADOFF       0</span>
00359 <span class="preprocessor"></span><span class="preprocessor">#define DBPADON        1</span>
00360 <span class="preprocessor"></span>
00361 <span class="preprocessor">#define OFF            0</span>
00362 <span class="preprocessor"></span><span class="preprocessor">#define ON             1</span>
00363 <span class="preprocessor"></span>
00364 <span class="preprocessor">#define NOSUCHOPTION   2</span>
00365 <span class="preprocessor"></span>
00366 <span class="preprocessor">#define MAXOPTTEXT    32</span>
00367 <span class="preprocessor"></span>
00368 <span class="keyword">typedef</span> <span class="keyword">struct </span>tds_dblib_dbprocess DBPROCESS;
00369 
00370 <span class="keyword">typedef</span> <span class="keyword">struct </span>dbdaterec
00371 {
00372 <span class="preprocessor">#ifdef MSDBLIB</span>
00373 <span class="preprocessor"></span>        DBINT year;
00374         DBINT month;
00375         DBINT day;
00376         DBINT dayofyear;
00377         DBINT weekday;
00378         DBINT hour;
00379         DBINT minute;
00380         DBINT second;
00381         DBINT millisecond;
00382         DBINT tzone;
00383 <span class="preprocessor">#else</span>
00384 <span class="preprocessor"></span>        DBINT dateyear;
00385         DBINT datemonth;
00386         DBINT datedmonth;
00387         DBINT datedyear;
00388         DBINT datedweek;
00389         DBINT datehour;
00390         DBINT dateminute;
00391         DBINT datesecond;
00392         DBINT datemsecond;
00393         DBINT datetzone;
00394 <span class="preprocessor">#endif</span>
00395 <span class="preprocessor"></span>} DBDATEREC;
00396 
00397 <span class="keyword">typedef</span> int (*EHANDLEFUNC) (DBPROCESS * dbproc, <span class="keywordtype">int</span> severity, <span class="keywordtype">int</span> dberr, <span class="keywordtype">int</span> oserr, <span class="keywordtype">char</span> *dberrstr, <span class="keywordtype">char</span> *oserrstr);
00398 
00399 <span class="keyword">typedef</span> int (*MHANDLEFUNC) (DBPROCESS * dbproc, DBINT msgno, <span class="keywordtype">int</span> msgstate, <span class="keywordtype">int</span> severity, <span class="keywordtype">char</span> *msgtext, <span class="keywordtype">char</span> *srvname,
00400                             <span class="keywordtype">char</span> *proc, <span class="keywordtype">int</span> line);
00401 
00402 <span class="comment">/* dbpoll() result codes, sybtcl needs DBRESULT */</span>
00403 <span class="preprocessor">#define DBRESULT       1</span>
00404 <span class="preprocessor"></span><span class="preprocessor">#define DBNOTIFICATION 2</span>
00405 <span class="preprocessor"></span><span class="preprocessor">#define DBTIMEOUT      3</span>
00406 <span class="preprocessor"></span><span class="preprocessor">#define DBINTERRUPT    4</span>
00407 <span class="preprocessor"></span>
00408 <span class="comment">/* more sybtcl needs: */</span>
00409 <span class="preprocessor">#define DBTXTSLEN    8</span>
00410 <span class="preprocessor"></span>
00411 <span class="comment">/* bind types */</span>
00412 <span class="preprocessor">#define CHARBIND          0</span>
00413 <span class="preprocessor"></span><span class="preprocessor">#define STRINGBIND        1</span>
00414 <span class="preprocessor"></span><span class="preprocessor">#define NTBSTRINGBIND     2</span>
00415 <span class="preprocessor"></span><span class="preprocessor">#define VARYCHARBIND      3</span>
00416 <span class="preprocessor"></span><span class="preprocessor">#define VARYBINBIND       4</span>
00417 <span class="preprocessor"></span><span class="preprocessor">#define TINYBIND          6</span>
00418 <span class="preprocessor"></span><span class="preprocessor">#define SMALLBIND         7</span>
00419 <span class="preprocessor"></span><span class="preprocessor">#define INTBIND           8</span>
00420 <span class="preprocessor"></span><span class="preprocessor">#define FLT8BIND          9</span>
00421 <span class="preprocessor"></span><span class="preprocessor">#define REALBIND          10</span>
00422 <span class="preprocessor"></span><span class="preprocessor">#define DATETIMEBIND      11</span>
00423 <span class="preprocessor"></span><span class="preprocessor">#define SMALLDATETIMEBIND 12</span>
00424 <span class="preprocessor"></span><span class="preprocessor">#define MONEYBIND         13</span>
00425 <span class="preprocessor"></span><span class="preprocessor">#define SMALLMONEYBIND    14</span>
00426 <span class="preprocessor"></span><span class="preprocessor">#define BINARYBIND        15</span>
00427 <span class="preprocessor"></span><span class="preprocessor">#define BITBIND           16</span>
00428 <span class="preprocessor"></span><span class="preprocessor">#define NUMERICBIND       17</span>
00429 <span class="preprocessor"></span><span class="preprocessor">#define DECIMALBIND       18</span>
00430 <span class="preprocessor"></span><span class="preprocessor">#define MAXBINDTYPES      19    </span><span class="comment">/* keep last */</span>
00431 
00432 <span class="preprocessor">#define DBPRCOLSEP  21</span>
00433 <span class="preprocessor"></span><span class="preprocessor">#define DBPRLINELEN 22</span>
00434 <span class="preprocessor"></span><span class="preprocessor">#define DBRPCRETURN 1</span>
00435 <span class="preprocessor"></span><span class="preprocessor">#define DBRPCDEFAULT 2</span>
00436 <span class="preprocessor"></span>
00437 <span class="preprocessor">#define REG_ROW         -1</span>
00438 <span class="preprocessor"></span><span class="preprocessor">#define MORE_ROWS       -1</span>
00439 <span class="preprocessor"></span><span class="preprocessor">#define NO_MORE_ROWS    -2</span>
00440 <span class="preprocessor"></span><span class="preprocessor">#define BUF_FULL        -3</span>
00441 <span class="preprocessor"></span><span class="preprocessor">#define NO_MORE_RESULTS 2</span>
00442 <span class="preprocessor"></span><span class="preprocessor">#define SUCCEED         1</span>
00443 <span class="preprocessor"></span><span class="preprocessor">#define FAIL            0</span>
00444 <span class="preprocessor"></span>
00445 <span class="preprocessor">#define DB_IN  1</span>
00446 <span class="preprocessor"></span><span class="preprocessor">#define DB_OUT 2</span>
00447 <span class="preprocessor"></span><span class="preprocessor">#define DB_QUERYOUT 3</span>
00448 <span class="preprocessor"></span>
00449 <span class="preprocessor">#define DBSINGLE 0</span>
00450 <span class="preprocessor"></span><span class="preprocessor">#define DBDOUBLE 1</span>
00451 <span class="preprocessor"></span><span class="preprocessor">#define DBBOTH   2</span>
00452 <span class="preprocessor"></span>
00453 <span class="comment">/* remote procedure call (rpc) options */</span>
00454 <span class="preprocessor">#define DBRPCRECOMPILE  TDS_STATIC_CAST(DBSMALLINT, 0x0001)</span>
00455 <span class="preprocessor"></span><span class="preprocessor">#define DBRPCRESET      TDS_STATIC_CAST(DBSMALLINT, 0x0002)</span>
00456 <span class="preprocessor"></span><span class="preprocessor">#define DBRPCCURSOR     TDS_STATIC_CAST(DBSMALLINT, 0x0008)</span>
00457 <span class="preprocessor"></span>
00458 DBBOOL db12hour(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *language);
00459 BYTE *<a class="code" href="a00275.html#ga51">dbadata</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column);
00460 DBINT <a class="code" href="a00275.html#ga48">dbadlen</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column);
00461 RETCODE <a class="code" href="a00275.html#ga50">dbaltbind</a>(DBPROCESS * dbprocess, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column, <span class="keywordtype">int</span> vartype, DBINT varlen, BYTE * varaddr);
00462 RETCODE dbaltbind_ps(DBPROCESS * dbprocess, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column, <span class="keywordtype">int</span> vartype, DBINT varlen, BYTE * varaddr,
00463                      DBTYPEINFO * typeinfo);
00464 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga47">dbaltcolid</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column);
00465 RETCODE <a class="code" href="a00275.html#ga96">dbaltlen</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column);
00466 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga52">dbaltop</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column);
00467 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga49">dbalttype</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column);
00468 RETCODE <a class="code" href="a00275.html#ga95">dbaltutype</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column);
00469 RETCODE <a class="code" href="a00275.html#ga22">dbanullbind</a>(DBPROCESS * dbprocess, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> column, DBINT * indicator);
00470 RETCODE <a class="code" href="a00275.html#ga19">dbbind</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column, <span class="keywordtype">int</span> vartype, DBINT varlen, BYTE * varaddr);
00471 RETCODE dbbind_ps(DBPROCESS * dbprocess, <span class="keywordtype">int</span> column, <span class="keywordtype">int</span> vartype, DBINT varlen, BYTE * varaddr, DBTYPEINFO * typeinfo);
00472 <span class="keywordtype">int</span> dbbufsize(DBPROCESS * dbprocess);
00473 BYTE *<a class="code" href="a00275.html#ga58">dbbylist</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid, <span class="keywordtype">int</span> *size);
00474 RETCODE <a class="code" href="a00275.html#ga33">dbcancel</a>(DBPROCESS * dbproc);
00475 RETCODE <a class="code" href="a00275.html#ga68">dbcanquery</a>(DBPROCESS * dbproc);
00476 <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga91">dbchange</a>(DBPROCESS * dbprocess);
00477 DBBOOL dbcharsetconv(DBPROCESS * dbprocess);
00478 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga8">dbclose</a>(DBPROCESS * dbproc);
00479 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga23">dbclrbuf</a>(DBPROCESS * dbproc, DBINT n);
00480 RETCODE <a class="code" href="a00275.html#ga70">dbclropt</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> option, <span class="keywordtype">char</span> *param);
00481 RETCODE <a class="code" href="a00275.html#ga5">dbcmd</a>(DBPROCESS * dbproc, <span class="keyword">const</span> <span class="keywordtype">char</span> *cmdstring);
00482 RETCODE <a class="code" href="a00281.html#ga8">dbcmdrow</a>(DBPROCESS * dbproc);
00483 
<a name="l00484"></a><a class="code" href="a00275.html#ga100">00484</a> <span class="preprocessor">#define DBCMDROW(x) dbcmdrow((x))</span>
00485 <span class="preprocessor"></span>DBBOOL dbcolbrowse(DBPROCESS * dbprocess, <span class="keywordtype">int</span> colnum);
00486 RETCODE <a class="code" href="a00195.html#a82">dbcolinfo</a> (DBPROCESS *dbproc, CI_TYPE type, DBINT column, DBINT computeid, DBCOL *pdbcol);
00487 RETCODE <a class="code" href="a00275.html#ga78">dbtablecolinfo</a> (DBPROCESS *dbproc, DBINT column, DBCOL *pdbcol );
00488 DBINT <a class="code" href="a00275.html#ga29">dbcollen</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
00489 <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga12">dbcolname</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
00490 <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga28">dbcolsource</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> colnum);
00491 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga25">dbcoltype</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
00492 DBTYPEINFO *<a class="code" href="a00275.html#ga27">dbcoltypeinfo</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
00493 DBINT <a class="code" href="a00275.html#ga26">dbcolutype</a>(DBPROCESS * dbprocess, <span class="keywordtype">int</span> column);
00494 DBINT <a class="code" href="a00275.html#ga17">dbconvert</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> srctype, <span class="keyword">const</span> BYTE * src, DBINT srclen, <span class="keywordtype">int</span> desttype, BYTE * dest, DBINT destlen);
00495 DBINT <a class="code" href="a00275.html#ga18">dbconvert_ps</a>(DBPROCESS * dbprocess, <span class="keywordtype">int</span> srctype, BYTE * src, DBINT srclen, <span class="keywordtype">int</span> desttype, BYTE * dest, DBINT destlen,
00496                    DBTYPEINFO * typeinfo);
00497 DBINT <a class="code" href="a00281.html#ga6">dbcount</a>(DBPROCESS * dbproc);
00498 
<a name="l00499"></a><a class="code" href="a00275.html#ga101">00499</a> <span class="preprocessor">#define DBCOUNT(x) dbcount((x))</span>
00500 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="a00281.html#ga13">dbcurcmd</a>(DBPROCESS * dbproc);
00501 
<a name="l00502"></a><a class="code" href="a00275.html#ga102">00502</a> <span class="preprocessor">#define DBCURCMD(x) dbcurcmd((x))</span>
00503 <span class="preprocessor"></span>DBINT <a class="code" href="a00281.html#ga11">dbcurrow</a>(DBPROCESS * dbproc);
00504 
<a name="l00505"></a><a class="code" href="a00275.html#ga103">00505</a> <span class="preprocessor">#define DBCURROW(x) dbcurrow((x))</span>
00506 <span class="preprocessor"></span>RETCODE dbcursor(DBCURSOR * hc, DBINT optype, DBINT bufno, BYTE * table, BYTE * values);
00507 RETCODE dbcursorbind(DBCURSOR * hc, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> vartype, DBINT varlen, DBINT * poutlen, BYTE * pvaraddr, DBTYPEINFO * typeinfo);
00508 <span class="keywordtype">void</span> dbcursorclose(DBCURSOR * hc);
00509 RETCODE dbcursorcolinfo(DBCURSOR * hc, DBINT column, DBCHAR * colname, DBINT * coltype, DBINT * collen, DBINT * usertype);
00510 RETCODE dbcursorfetch(DBCURSOR * hc, DBINT fetchtype, DBINT rownum);
00511 RETCODE dbcursorinfo(DBCURSOR * hc, DBINT * ncols, DBINT * nrows);
00512 DBCURSOR *dbcursoropen(DBPROCESS * dbprocess, BYTE * stmt, SHORT scollopt, SHORT concuropt, USHORT nrows, DBINT * pstatus);
00513 BYTE *<a class="code" href="a00275.html#ga32">dbdata</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
00514 <span class="keywordtype">int</span> dbdate4cmp(DBPROCESS * dbprocess, DBDATETIME4 * d1, DBDATETIME4 * d2);
00515 RETCODE dbdate4zero(DBPROCESS * dbprocess, DBDATETIME4 * d1);
00516 RETCODE dbdatechar(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> datepart, <span class="keywordtype">int</span> value);
00517 RETCODE <a class="code" href="a00280.html#ga0">dbdatecmp</a>(DBPROCESS * dbproc, DBDATETIME * d1, DBDATETIME * d2);
00518 RETCODE <a class="code" href="a00275.html#ga61">dbdatecrack</a>(DBPROCESS * dbproc, DBDATEREC * di, DBDATETIME * dt);
00519 <span class="keywordtype">int</span> dbdatename(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> date, DBDATETIME * datetime);
00520 <span class="keywordtype">char</span> *dateorder(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *language);
00521 DBINT dbdatepart(DBPROCESS * dbprocess, <span class="keywordtype">int</span> datepart, DBDATETIME * datetime);
00522 RETCODE dbdatezero(DBPROCESS * dbprocess, DBDATETIME * d1);
00523 DBINT <a class="code" href="a00275.html#ga31">dbdatlen</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
00524 <span class="keywordtype">char</span> *dbdayname(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *language, <span class="keywordtype">int</span> daynum);
00525 DBBOOL <a class="code" href="a00281.html#ga9">dbdead</a>(DBPROCESS * dbproc);
00526 
<a name="l00527"></a><a class="code" href="a00275.html#ga104">00527</a> <span class="preprocessor">#define DBDEAD(x) dbdead((x))</span>
00528 <span class="preprocessor"></span>EHANDLEFUNC <a class="code" href="a00275.html#ga59">dberrhandle</a>(EHANDLEFUNC handler);
00529 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga9">dbexit</a>(<span class="keywordtype">void</span>);
00530 RETCODE <a class="code" href="a00275.html#ga4">dbfcmd</a>(DBPROCESS * dbproc, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);
00531 DBINT <a class="code" href="a00281.html#ga15">dbfirstrow</a>(DBPROCESS * dbproc);
00532 
<a name="l00533"></a><a class="code" href="a00275.html#ga105">00533</a> <span class="preprocessor">#define DBFIRSTROW(x) dbfirstrow((x))</span>
00534 <span class="preprocessor"></span>RETCODE dbfree_xlate(DBPROCESS * dbprocess, DBXLATE * xlt_tosrv, DBXLATE * clt_todisp);
00535 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga69">dbfreebuf</a>(DBPROCESS * dbproc);
00536 <span class="keywordtype">void</span> dbfreequal(<span class="keywordtype">char</span> *qualptr);
00537 RETCODE dbfreesort(DBPROCESS * dbprocess, DBSORTORDER * sortorder);
00538 <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga74">dbgetchar</a>(DBPROCESS * dbprocess, <span class="keywordtype">int</span> n);
00539 <span class="keywordtype">char</span> *dbgetcharset(DBPROCESS * dbprocess);
00540 RETCODE dbgetloginfo(DBPROCESS * dbprocess, DBLOGINFO ** loginfo);
00541 <span class="keywordtype">int</span> dbgetlusername(LOGINREC * login, BYTE * name_buffer, <span class="keywordtype">int</span> buffer_len);
00542 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga43">dbgetmaxprocs</a>(<span class="keywordtype">void</span>);
00543 <span class="keywordtype">char</span> *dbgetnatlanf(DBPROCESS * dbprocess);
00544 <span class="keywordtype">int</span> dbgetoff(DBPROCESS * dbprocess, DBUSMALLINT offtype, <span class="keywordtype">int</span> startfrom);
00545 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga41">dbgetpacket</a>(DBPROCESS * dbproc);
00546 RETCODE <a class="code" href="a00275.html#ga13">dbgetrow</a>(DBPROCESS * dbproc, DBINT row);
00547 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga45">dbgettime</a>(<span class="keywordtype">void</span>);
00548 <span class="preprocessor">#define DBGETTIME dbgettime</span>
00549 <span class="preprocessor"></span>BYTE *<a class="code" href="a00275.html#ga66">dbgetuserdata</a>(DBPROCESS * dbproc);
00550 DBBOOL <a class="code" href="a00276.html#ga0">dbhasretstat</a>(DBPROCESS * dbproc);
00551 RETCODE <a class="code" href="a00275.html#ga0">dbinit</a>(<span class="keywordtype">void</span>);
00552 <span class="keywordtype">int</span> <a class="code" href="a00281.html#ga17">dbiordesc</a>(DBPROCESS * dbproc);
00553 
<a name="l00554"></a><a class="code" href="a00275.html#ga106">00554</a> <span class="preprocessor">#define DBIORDESC(x) dbiordesc((x))</span>
00555 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="a00281.html#ga18">dbiowdesc</a>(DBPROCESS * dbproc);
00556 
<a name="l00557"></a><a class="code" href="a00275.html#ga107">00557</a> <span class="preprocessor">#define DBIOWDESC(x) dbiowdesc((x))</span>
00558 <span class="preprocessor"></span>DBBOOL dbisavail(DBPROCESS * dbprocess);
00559 
<a name="l00560"></a><a class="code" href="a00275.html#ga108">00560</a> <span class="preprocessor">#define DBISAVAIL(x) dbisavail((x))</span>
00561 <span class="preprocessor"></span>DBBOOL <a class="code" href="a00275.html#ga71">dbisopt</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> option, <span class="keywordtype">char</span> *param);
00562 DBINT <a class="code" href="a00281.html#ga16">dblastrow</a>(DBPROCESS * dbproc);
00563 
<a name="l00564"></a><a class="code" href="a00275.html#ga109">00564</a> <span class="preprocessor">#define DBLASTROW(x) dblastrow((x))</span>
00565 <span class="preprocessor"></span>RETCODE dbload_xlate(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *srv_charset, <span class="keywordtype">char</span> *clt_name, DBXLATE ** xlt_tosrv, DBXLATE ** xlt_todisp);
00566 DBSORTORDER *dbloadsort(DBPROCESS * dbprocess);
00567 LOGINREC *<a class="code" href="a00275.html#ga1">dblogin</a>(<span class="keywordtype">void</span>);
00568 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga2">dbloginfree</a>(LOGINREC * login);
00569 RETCODE <a class="code" href="a00279.html#ga17">dbmny4add</a>(DBPROCESS * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * sum);
00570 <span class="keywordtype">int</span> <a class="code" href="a00279.html#ga21">dbmny4cmp</a>(DBPROCESS * dbproc, DBMONEY4 * m1, DBMONEY4 * m2);
00571 RETCODE <a class="code" href="a00279.html#ga22">dbmny4copy</a>(DBPROCESS * dbprocess, DBMONEY4 * m1, DBMONEY4 * m2);
00572 RETCODE <a class="code" href="a00279.html#ga20">dbmny4divide</a>(DBPROCESS * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * quotient);
00573 RETCODE <a class="code" href="a00279.html#ga15">dbmny4minus</a>(DBPROCESS * dbproc, DBMONEY4 * src, DBMONEY4 * dest);
00574 RETCODE <a class="code" href="a00279.html#ga19">dbmny4mul</a>(DBPROCESS * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * prod);
00575 RETCODE <a class="code" href="a00279.html#ga18">dbmny4sub</a>(DBPROCESS * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * diff);
00576 RETCODE <a class="code" href="a00279.html#ga16">dbmny4zero</a>(DBPROCESS * dbproc, DBMONEY4 * dest);
00577 RETCODE <a class="code" href="a00279.html#ga0">dbmnyadd</a>(DBPROCESS * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * sum);
00578 <span class="keywordtype">int</span> <a class="code" href="a00279.html#ga4">dbmnycmp</a>(DBPROCESS * dbproc, DBMONEY * m1, DBMONEY * m2);
00579 RETCODE <a class="code" href="a00279.html#ga23">dbmnycopy</a>(DBPROCESS * dbproc, DBMONEY * src, DBMONEY * dest);
00580 RETCODE <a class="code" href="a00279.html#ga13">dbmnydec</a>(DBPROCESS * dbproc, DBMONEY * mnyptr);
00581 RETCODE <a class="code" href="a00279.html#ga3">dbmnydivide</a>(DBPROCESS * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * quotient);
00582 RETCODE <a class="code" href="a00279.html#ga11">dbmnydown</a>(DBPROCESS * dbproc, DBMONEY * mnyptr, <span class="keywordtype">int</span> divisor, <span class="keywordtype">int</span> *remainder);
00583 RETCODE <a class="code" href="a00279.html#ga12">dbmnyinc</a>(DBPROCESS * dbproc, DBMONEY * mnyptr);
00584 RETCODE <a class="code" href="a00279.html#ga10">dbmnyinit</a>(DBPROCESS * dbproc, DBMONEY * mnyptr, <span class="keywordtype">int</span> trim, DBBOOL * negative);
00585 RETCODE <a class="code" href="a00279.html#ga8">dbmnymaxneg</a>(DBPROCESS * dbproc, DBMONEY * dest);
00586 RETCODE <a class="code" href="a00279.html#ga9">dbmnyndigit</a>(DBPROCESS * dbproc, DBMONEY * mnyptr, DBCHAR * value, DBBOOL * zero);
00587 RETCODE <a class="code" href="a00279.html#ga7">dbmnymaxpos</a>(DBPROCESS * dbproc, DBMONEY * dest);
00588 RETCODE <a class="code" href="a00279.html#ga14">dbmnyminus</a>(DBPROCESS * dbproc, DBMONEY * src, DBMONEY * dest);
00589 RETCODE <a class="code" href="a00279.html#ga2">dbmnymul</a>(DBPROCESS * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * prod);
00590 RETCODE dbmnydigit(DBPROCESS * dbprocess, DBMONEY * m1, DBCHAR * value, DBBOOL * zero);
00591 RETCODE <a class="code" href="a00279.html#ga5">dbmnyscale</a>(DBPROCESS * dbproc, DBMONEY * dest, <span class="keywordtype">int</span> multiplier, <span class="keywordtype">int</span> addend);
00592 RETCODE <a class="code" href="a00279.html#ga1">dbmnysub</a>(DBPROCESS * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * diff);
00593 RETCODE <a class="code" href="a00279.html#ga6">dbmnyzero</a>(DBPROCESS * dbproc, DBMONEY * dest);
00594 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00280.html#ga1">dbmonthname</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *language, <span class="keywordtype">int</span> monthnum, DBBOOL shortform);
00595 RETCODE <a class="code" href="a00275.html#ga72">dbmorecmds</a>(DBPROCESS * dbproc);
00596 
<a name="l00597"></a><a class="code" href="a00275.html#ga110">00597</a> <span class="preprocessor">#define DBMORECMDS(x) dbmorecmds((x))</span>
00598 <span class="preprocessor"></span>RETCODE <a class="code" href="a00275.html#ga83">dbmoretext</a>(DBPROCESS * dbproc, DBINT size, BYTE * text);
00599 MHANDLEFUNC <a class="code" href="a00275.html#ga60">dbmsghandle</a>(MHANDLEFUNC handler);
00600 <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga92">dbname</a>(DBPROCESS * dbproc);
00601 RETCODE <a class="code" href="a00275.html#ga16">dbnextrow</a>(DBPROCESS * dbproc);
00602 RETCODE dbnpcreate(DBPROCESS * dbprocess);
00603 RETCODE dbnpdefine(DBPROCESS * dbprocess, DBCHAR * procedure_name, DBSMALLINT namelen);
00604 RETCODE <a class="code" href="a00275.html#ga21">dbnullbind</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column, DBINT * indicator);
00605 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga56">dbnumalts</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> computeid);
00606 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga11">dbnumcols</a>(DBPROCESS * dbproc);
00607 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga57">dbnumcompute</a>(DBPROCESS * dbprocess);
00608 <span class="keywordtype">int</span> DBNUMORDERS(DBPROCESS * dbprocess);
00609 <span class="keywordtype">int</span> <a class="code" href="a00276.html#ga2">dbnumrets</a>(DBPROCESS * dbproc);
00610 DBPROCESS *<a class="code" href="a00281.html#ga5">tdsdbopen</a>(LOGINREC * login, <span class="keyword">const</span> <span class="keywordtype">char</span> *server, <span class="keywordtype">int</span> msdblib);
00611 DBPROCESS *dbopen(LOGINREC * login, <span class="keyword">const</span> <span class="keywordtype">char</span> *server);
00612 
00613 <span class="preprocessor">#ifdef MSDBLIB</span>
00614 <span class="preprocessor"></span><span class="preprocessor">#define   dbopen(x,y) tdsdbopen((x),(y), 1)</span>
00615 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00616 <span class="preprocessor"></span><span class="preprocessor">#define   dbopen(x,y) tdsdbopen((x),(y), 0)</span>
00617 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00618 <span class="preprocessor"></span>
00619 <span class="comment">/* fix PHP problem */</span>
00620 <span class="preprocessor">#ifdef PHP_SYBASE_DBOPEN</span>
00621 <span class="preprocessor"></span><span class="preprocessor">#undef PHP_SYBASE_DBOPEN</span>
00622 <span class="preprocessor"></span><span class="preprocessor">#define PHP_SYBASE_DBOPEN dbopen</span>
00623 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00624 <span class="preprocessor"></span>
00625 <span class="keywordtype">int</span> dbordercol(DBPROCESS * dbprocess, <span class="keywordtype">int</span> order);
00626 RETCODE <a class="code" href="a00275.html#ga97">dbpoll</a>(DBPROCESS * dbproc, <span class="keywordtype">long</span> milliseconds, DBPROCESS ** ready_dbproc, <span class="keywordtype">int</span> *return_reason);
00627 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga39">dbprhead</a>(DBPROCESS * dbproc);
00628 RETCODE <a class="code" href="a00275.html#ga36">dbprrow</a>(DBPROCESS * dbproc);
00629 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga77">dbprtype</a>(<span class="keywordtype">int</span> token);
00630 <span class="keywordtype">char</span> *dbqual(DBPROCESS * dbprocess, <span class="keywordtype">int</span> tabnum, <span class="keywordtype">char</span> *tabname);
00631 DBBOOL DRBUF(DBPROCESS * dbprocess);
00632 DBINT dbreadpage(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *p_dbname, DBINT pageno, BYTE * buf);
00633 STATUS <a class="code" href="a00275.html#ga82">dbreadtext</a>(DBPROCESS * dbproc, <span class="keywordtype">void</span> *buf, DBINT bufsize);
00634 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga84">dbrecftos</a>(<span class="keywordtype">char</span> *filename);
00635 RETCODE dbrecvpassthru(DBPROCESS * dbprocess, DBVOIDPTR * bufp);
00636 RETCODE dbregdrop(DBPROCESS * dbprocess, DBCHAR * procnm, DBSMALLINT namelen);
00637 RETCODE <a class="code" href="a00275.html#ga90">dbregexec</a>(DBPROCESS * dbproc, DBUSMALLINT options);
00638 RETCODE dbreghandle(DBPROCESS * dbprocess, DBCHAR * procnm, DBSMALLINT namelen, INTFUNCPTR handler);
00639 RETCODE <a class="code" href="a00275.html#ga87">dbreginit</a>(DBPROCESS * dbproc, DBCHAR * procedure_name, DBSMALLINT namelen);
00640 RETCODE <a class="code" href="a00275.html#ga88">dbreglist</a>(DBPROCESS * dbproc);
00641 RETCODE dbregnowatch(DBPROCESS * dbprocess, DBCHAR * procnm, DBSMALLINT namelen);
00642 RETCODE <a class="code" href="a00275.html#ga89">dbregparam</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *param_name, <span class="keywordtype">int</span> type, DBINT datalen, BYTE * data);
00643 RETCODE dbregwatch(DBPROCESS * dbprocess, DBCHAR * procnm, DBSMALLINT namelen, DBUSMALLINT options);
00644 RETCODE dbregwatchlist(DBPROCESS * dbprocess);
00645 RETCODE <a class="code" href="a00275.html#ga10">dbresults</a>(DBPROCESS * dbproc);
00646 RETCODE dbresults_r(DBPROCESS * dbproc, <span class="keywordtype">int</span> recursive);
00647 BYTE *<a class="code" href="a00276.html#ga4">dbretdata</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> retnum);
00648 <span class="keywordtype">int</span> <a class="code" href="a00276.html#ga5">dbretlen</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> retnum);
00649 <span class="keywordtype">char</span> *<a class="code" href="a00276.html#ga3">dbretname</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> retnum);
00650 DBINT <a class="code" href="a00276.html#ga1">dbretstatus</a>(DBPROCESS * dbproc);
00651 <span class="keywordtype">int</span> <a class="code" href="a00276.html#ga6">dbrettype</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> retnum);
00652 RETCODE <a class="code" href="a00281.html#ga7">dbrows</a>(DBPROCESS * dbproc);
00653 
<a name="l00654"></a><a class="code" href="a00275.html#ga111">00654</a> <span class="preprocessor">#define DBROWS(x) dbrows((x))</span>
00655 <span class="preprocessor"></span>STATUS <a class="code" href="a00281.html#ga12">dbrowtype</a>(DBPROCESS * dbprocess);
00656 
<a name="l00657"></a><a class="code" href="a00275.html#ga112">00657</a> <span class="preprocessor">#define DBROWTYPE(x) dbrowtype((x))</span>
00658 <span class="preprocessor"></span>RETCODE <a class="code" href="a00276.html#ga7">dbrpcinit</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *rpcname, DBSMALLINT options);
00659 RETCODE <a class="code" href="a00276.html#ga8">dbrpcparam</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *paramname, BYTE status, <span class="keywordtype">int</span> type, DBINT maxlen, DBINT datalen, BYTE * value);
00660 RETCODE <a class="code" href="a00276.html#ga9">dbrpcsend</a>(DBPROCESS * dbproc);
00661 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga62">dbrpwclr</a>(LOGINREC * login);
00662 RETCODE <a class="code" href="a00275.html#ga63">dbrpwset</a>(LOGINREC * login, <span class="keywordtype">char</span> *srvname, <span class="keywordtype">char</span> *password, <span class="keywordtype">int</span> pwlen);
00663 RETCODE <a class="code" href="a00275.html#ga76">dbsafestr</a>(DBPROCESS * dbproc, <span class="keyword">const</span> <span class="keywordtype">char</span> *src, DBINT srclen, <span class="keywordtype">char</span> *dest, DBINT destlen, <span class="keywordtype">int</span> quotetype);
00664 RETCODE *dbsechandle(DBINT type, INTFUNCPTR handler);
00665 RETCODE dbsendpassthru(DBPROCESS * dbprocess, DBVOIDPTR bufp);
00666 <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga93">dbservcharset</a>(DBPROCESS * dbprocess);
00667 <span class="keywordtype">void</span> <a class="code" href="a00281.html#ga19">dbsetavail</a>(DBPROCESS * dbprocess);
00668 <span class="keywordtype">void</span> dbsetbusy(DBPROCESS * dbprocess, DB_DBBUSY_FUNC busyfunc);
00669 RETCODE <a class="code" href="a00275.html#ga86">dbsetdefcharset</a>(<span class="keywordtype">char</span> *charset);
00670 RETCODE <a class="code" href="a00275.html#ga40">dbsetdeflang</a>(<span class="keywordtype">char</span> *language);
00671 <span class="keywordtype">void</span> dbsetidle(DBPROCESS * dbprocess, DB_DBIDLE_FUNC idlefunc);
00672 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga20">dbsetifile</a>(<span class="keywordtype">char</span> *filename);
00673 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga54">dbsetinterrupt</a>(DBPROCESS * dbproc, DB_DBCHKINTR_FUNC chkintr, DB_DBHNDLINTR_FUNC hndlintr);
00674 RETCODE dbsetloginfo(LOGINREC * loginrec, DBLOGINFO * loginfo);
00675 RETCODE <a class="code" href="a00275.html#ga46">dbsetlogintime</a>(<span class="keywordtype">int</span> seconds);
00676 RETCODE <a class="code" href="a00275.html#ga42">dbsetmaxprocs</a>(<span class="keywordtype">int</span> maxprocs);
00677 RETCODE <a class="code" href="a00275.html#ga14">dbsetnull</a>(DBPROCESS * dbprocess, <span class="keywordtype">int</span> bindtype, <span class="keywordtype">int</span> bindlen, BYTE * bindval);
00678 RETCODE <a class="code" href="a00275.html#ga53">dbsetopt</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> option, <span class="keyword">const</span> <span class="keywordtype">char</span> *char_param, <span class="keywordtype">int</span> int_param);
00679 STATUS <a class="code" href="a00275.html#ga15">dbsetrow</a>(DBPROCESS * dbprocess, DBINT row);
00680 RETCODE <a class="code" href="a00275.html#ga44">dbsettime</a>(<span class="keywordtype">int</span> seconds);
00681 <span class="keywordtype">void</span> <a class="code" href="a00275.html#ga65">dbsetuserdata</a>(DBPROCESS * dbproc, BYTE * ptr);
00682 RETCODE <a class="code" href="a00275.html#ga67">dbsetversion</a>(DBINT version);
00683 
00684 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga64">dbspid</a>(DBPROCESS * dbproc);
00685 RETCODE <a class="code" href="a00275.html#ga35">dbspr1row</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *buffer, DBINT buf_len);
00686 DBINT <a class="code" href="a00275.html#ga34">dbspr1rowlen</a>(DBPROCESS * dbproc);
00687 RETCODE <a class="code" href="a00275.html#ga38">dbsprhead</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *buffer, DBINT buf_len);
00688 RETCODE <a class="code" href="a00275.html#ga37">dbsprline</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *buffer, DBINT buf_len, DBCHAR line_char);
00689 RETCODE <a class="code" href="a00275.html#ga6">dbsqlexec</a>(DBPROCESS * dbproc);
00690 RETCODE <a class="code" href="a00275.html#ga55">dbsqlok</a>(DBPROCESS * dbproc);
00691 RETCODE <a class="code" href="a00275.html#ga94">dbsqlsend</a>(DBPROCESS * dbproc);
00692 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga98">dbstrbuild</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *charbuf, <span class="keywordtype">int</span> bufsize, <span class="keywordtype">char</span> *text, <span class="keywordtype">char</span> *formats, ...);
00693 <span class="keywordtype">int</span> dbstrcmp(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *s1, <span class="keywordtype">int</span> l1, <span class="keywordtype">char</span> *s2, <span class="keywordtype">int</span> l2, DBSORTORDER * sort);
00694 RETCODE <a class="code" href="a00275.html#ga75">dbstrcpy</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> start, <span class="keywordtype">int</span> numbytes, <span class="keywordtype">char</span> *dest);
00695 <span class="keywordtype">int</span> <a class="code" href="a00275.html#ga73">dbstrlen</a>(DBPROCESS * dbproc);
00696 <span class="keywordtype">int</span> dbstrsort(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *s1, <span class="keywordtype">int</span> l1, <span class="keywordtype">char</span> *s2, <span class="keywordtype">int</span> l2, DBSORTORDER * sort);
00697 DBBOOL dbtabbrowse(DBPROCESS * dbprocess, <span class="keywordtype">int</span> tabnum);
00698 <span class="keywordtype">int</span> dbtabcount(DBPROCESS * dbprocess);
00699 <span class="keywordtype">char</span> *dbtabname(DBPROCESS * dbprocess, <span class="keywordtype">int</span> tabnum);
00700 <span class="keywordtype">char</span> *dbtabsoruce(DBPROCESS * dbprocess, <span class="keywordtype">int</span> colnum, <span class="keywordtype">int</span> *tabnum);
00701 DBINT <a class="code" href="a00275.html#ga30">dbvarylen</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
00702 
00703 <span class="preprocessor">#define SYBEICONVIU      2400   </span><span class="comment">/* Some character(s) could not be converted into client's character set. */</span>
00704 <span class="preprocessor">#define SYBEICONVAVAIL   2401   </span><span class="comment">/* Character set conversion is not available between client character set '%.*s' and server character set '%.*s'.*/</span>
00705 <span class="preprocessor">#define SYBEICONVO       2402   </span><span class="comment">/* Error converting characters into server's character set. Some character(s) could not be converted.*/</span>
00706 <span class="preprocessor">#define SYBEICONVI       2403   </span><span class="comment">/* Some character(s) could not be converted into client's character set.  Unconverted bytes were changed to question marks ('?').*/</span>
00707 <span class="preprocessor">#define SYBEICONV2BIG    2404   </span><span class="comment">/* Buffer overflow converting characters from client into server's character set.*/</span>
00708                                 <span class="comment">/* cf. doc/dblib_errors.txt for more iconv error values. */</span>
00709                                 <span class="comment">/* Reserve a few slots for other iconv-related issues. */</span>
00710 <span class="preprocessor">#define SYBETDSVER       2410   </span><span class="comment">/* Cannot bcp with TDSVER &lt; 5.0 */</span>
00711 <span class="preprocessor">#define SYBESYNC        20001   </span><span class="comment">/* Read attempted while out of synchronization with SQL Server. */</span>
00712 <span class="preprocessor">#define SYBEFCON        20002   </span><span class="comment">/* SQL Server connection failed. */</span>
00713 <span class="preprocessor">#define SYBETIME        20003   </span><span class="comment">/* SQL Server connection timed out. */</span>
00714 <span class="preprocessor">#define SYBEREAD        20004   </span><span class="comment">/* Read from SQL Server failed. */</span>
00715 <span class="preprocessor">#define SYBEBUFL        20005   </span><span class="comment">/* DB-LIBRARY internal error - send buffer length corrupted. */</span>
00716 <span class="preprocessor">#define SYBEWRIT        20006   </span><span class="comment">/* Write to SQL Server failed. */</span>
00717 <span class="preprocessor">#define SYBEVMS         20007   </span><span class="comment">/* Sendflush: VMS I/O error. */</span>
00718 <span class="preprocessor">#define SYBESOCK        20008   </span><span class="comment">/* Unable to open socket */</span>
00719 <span class="preprocessor">#define SYBECONN        20009   </span><span class="comment">/* Unable to connect socket -- SQL Server is unavailable or does not exist. */</span>
00720 <span class="preprocessor">#define SYBEMEM         20010   </span><span class="comment">/* Unable to allocate sufficient memory */</span>
00721 <span class="preprocessor">#define SYBEDBPS        20011   </span><span class="comment">/* Maximum number of DBPROCESSes already allocated. */</span>
00722 <span class="preprocessor">#define SYBEINTF        20012   </span><span class="comment">/* Server name not found in interface file */</span>
00723 <span class="preprocessor">#define SYBEUHST        20013   </span><span class="comment">/* Unknown host machine name */</span>
00724 <span class="preprocessor">#define SYBEPWD         20014   </span><span class="comment">/* Incorrect password. */</span>
00725 <span class="preprocessor">#define SYBEOPIN        20015   </span><span class="comment">/* Could not open interface file. */</span>
00726 <span class="preprocessor">#define SYBEINLN        20016   </span><span class="comment">/* Interface file: unexpected end-of-line. */</span>
00727 <span class="preprocessor">#define SYBESEOF        20017   </span><span class="comment">/* Unexpected EOF from SQL Server. */</span>
00728 <span class="preprocessor">#define SYBESMSG        20018   </span><span class="comment">/* General SQL Server error: Check messages from the SQL Server. */</span>
00729 <span class="preprocessor">#define SYBERPND        20019   </span><span class="comment">/* Attempt to initiate a new SQL Server operation with results pending. */</span>
00730 <span class="preprocessor">#define SYBEBTOK        20020   </span><span class="comment">/* Bad token from SQL Server: Data-stream processing out of sync. */</span>
00731 <span class="preprocessor">#define SYBEITIM        20021   </span><span class="comment">/* Illegal timeout value specified. */</span>
00732 <span class="preprocessor">#define SYBEOOB         20022   </span><span class="comment">/* Error in sending out-of-band data to SQL Server. */</span>
00733 <span class="preprocessor">#define SYBEBTYP        20023   </span><span class="comment">/* Unknown bind type passed to DB-LIBRARY function. */</span>
00734 <span class="preprocessor">#define SYBEBNCR        20024   </span><span class="comment">/* Attempt to bind user variable to a non-existent compute row. */</span>
00735 <span class="preprocessor">#define SYBEIICL        20025   </span><span class="comment">/* Illegal integer column length returned by SQL Server. Legal integer lengths are 1, 2, and 4 bytes. */</span>
00736 <span class="preprocessor">#define SYBECNOR        20026   </span><span class="comment">/* Column number out of range. */</span>
00737 <span class="preprocessor">#define SYBENPRM        20027   </span><span class="comment">/* NULL parameter not allowed for this dboption. */</span>
00738 <span class="preprocessor">#define SYBEUVDT        20028   </span><span class="comment">/* Unknown variable-length datatype encountered. */</span>
00739 <span class="preprocessor">#define SYBEUFDT        20029   </span><span class="comment">/* Unknown fixed-length datatype encountered. */</span>
00740 <span class="preprocessor">#define SYBEWAID        20030   </span><span class="comment">/* DB-LIBRARY internal error: ALTFMT following ALTNAME has wrong id. */</span>
00741 <span class="preprocessor">#define SYBECDNS        20031   </span><span class="comment">/* Datastream indicates that a compute column is derived from a non-existent select-list member. */</span>
00742 <span class="preprocessor">#define SYBEABNC        20032   </span><span class="comment">/* Attempt to bind to a non-existent column. */</span>
00743 <span class="preprocessor">#define SYBEABMT        20033   </span><span class="comment">/* User attempted a dbbind() with mismatched column and variable types. */</span>
00744 <span class="preprocessor">#define SYBEABNP        20034   </span><span class="comment">/* Attempt to bind using NULL pointers. */</span>
00745 <span class="preprocessor">#define SYBEAAMT        20035   </span><span class="comment">/* User attempted a dbaltbind() with mismatched column and variable types. */</span>
00746 <span class="preprocessor">#define SYBENXID        20036   </span><span class="comment">/* The Server did not grant us a distributed-transaction ID. */</span>
00747 <span class="preprocessor">#define SYBERXID        20037   </span><span class="comment">/* The Server did not recognize our distributed-transaction ID. */</span>
00748 <span class="preprocessor">#define SYBEICN         20038   </span><span class="comment">/* Invalid computeid or compute column number. */</span>
00749 <span class="preprocessor">#define SYBENMOB        20039   </span><span class="comment">/* No such member of 'order by' clause. */</span>
00750 <span class="preprocessor">#define SYBEAPUT        20040   </span><span class="comment">/* Attempt to print unknown token. */</span>
00751 <span class="preprocessor">#define SYBEASNL        20041   </span><span class="comment">/* Attempt to set fields in a null loginrec. */</span>
00752 <span class="preprocessor">#define SYBENTLL        20042   </span><span class="comment">/* Name too long for loginrec field. */</span>
00753 <span class="preprocessor">#define SYBEASUL        20043   </span><span class="comment">/* Attempt to set unknown loginrec field. */</span>
00754 <span class="preprocessor">#define SYBERDNR        20044   </span><span class="comment">/* Attempt to retrieve data from a non-existent row. */</span>
00755 <span class="preprocessor">#define SYBENSIP        20045   </span><span class="comment">/* Negative starting index passed to dbstrcpy(). */</span>
00756 <span class="preprocessor">#define SYBEABNV        20046   </span><span class="comment">/* Attempt to bind to a NULL program variable. */</span>
00757 <span class="preprocessor">#define SYBEDDNE        20047   </span><span class="comment">/* DBPROCESS is dead or not enabled. */</span>
00758 <span class="preprocessor">#define SYBECUFL        20048   </span><span class="comment">/* Data-conversion resulted in underflow. */</span>
00759 <span class="preprocessor">#define SYBECOFL        20049   </span><span class="comment">/* Data-conversion resulted in overflow. */</span>
00760 <span class="preprocessor">#define SYBECSYN        20050   </span><span class="comment">/* Attempt to convert data stopped by syntax error in source field. */</span>
00761 <span class="preprocessor">#define SYBECLPR        20051   </span><span class="comment">/* Data-conversion resulted in loss of precision. */</span>
00762 <span class="preprocessor">#define SYBECNOV        20052   </span><span class="comment">/* Attempt to set variable to NULL resulted in overflow. */</span>
00763 <span class="preprocessor">#define SYBERDCN        20053   </span><span class="comment">/* Requested data-conversion does not exist. */</span>
00764 <span class="preprocessor">#define SYBESFOV        20054   </span><span class="comment">/* dbsafestr() overflowed its destination buffer. */</span>
00765 <span class="preprocessor">#define SYBEUNT         20055   </span><span class="comment">/* Unknown network type found in interface file. */</span>
00766 <span class="preprocessor">#define SYBECLOS        20056   </span><span class="comment">/* Error in closing network connection. */</span>
00767 <span class="preprocessor">#define SYBEUAVE        20057   </span><span class="comment">/* Unable to allocate VMS event flag. */</span>
00768 <span class="preprocessor">#define SYBEUSCT        20058   </span><span class="comment">/* Unable to set communications timer. */</span>
00769 <span class="preprocessor">#define SYBEEQVA        20059   </span><span class="comment">/* Error in queueing VMS AST routine. */</span>
00770 <span class="preprocessor">#define SYBEUDTY        20060   </span><span class="comment">/* Unknown datatype encountered. */</span>
00771 <span class="preprocessor">#define SYBETSIT        20061   </span><span class="comment">/* Attempt to call dbtsput() with an invalid timestamp. */</span>
00772 <span class="preprocessor">#define SYBEAUTN        20062   </span><span class="comment">/* Attempt to update the timestamp of a table which has no timestamp column. */</span>
00773 <span class="preprocessor">#define SYBEBDIO        20063   </span><span class="comment">/* Bad bulk-copy direction.  Must be either IN or OUT. */</span>
00774 <span class="preprocessor">#define SYBEBCNT        20064   </span><span class="comment">/* Attempt to use Bulk Copy with a non-existent Server table. */</span>
00775 <span class="preprocessor">#define SYBEIFNB        20065   </span><span class="comment">/* Illegal field number passed to bcp_control(). */</span>
00776 <span class="preprocessor">#define SYBETTS         20066   </span><span class="comment">/* The table which bulk-copy is attempting to copy to a host-file is shorter than the number of rows which bulk-copy was instructed to skip. */</span>
00777 <span class="preprocessor">#define SYBEKBCO        20067   </span><span class="comment">/* 1000 rows successfully bulk-copied to host-file. */</span>
00778 <span class="preprocessor">#define SYBEBBCI        20068   </span><span class="comment">/* Batch successfully bulk-copied to SQL Server. */</span>
00779 <span class="preprocessor">#define SYBEKBCI        20069   </span><span class="comment">/* Bcp: 1000 rows sent to SQL Server. */</span>
00780 <span class="preprocessor">#define SYBEBCRE        20070   </span><span class="comment">/* I/O error while reading bcp data-file. */</span>
00781 <span class="preprocessor">#define SYBETPTN        20071   </span><span class="comment">/* Syntax error: only two periods are permitted in table names. */</span>
00782 <span class="preprocessor">#define SYBEBCWE        20072   </span><span class="comment">/* I/O error while writing bcp data-file. */</span>
00783 <span class="preprocessor">#define SYBEBCNN        20073   </span><span class="comment">/* Attempt to bulk-copy a NULL value into Server column %d,  which does not accept NULL values. */</span>
00784 <span class="preprocessor">#define SYBEBCOR        20074   </span><span class="comment">/* Attempt to bulk-copy an oversized row to the SQL Server. */</span>
00785 <span class="preprocessor">#define SYBEBCIS        20075   </span><span class="comment">/* Attempt to bulk-copy an illegally-sized column value to the SQL Server. */</span>
00786 <span class="preprocessor">#define SYBEBCPI        20076   </span><span class="comment">/* bcp_init() must be called before any other bcp routines. */</span>
00787 <span class="preprocessor">#define SYBEBCPN        20077   </span><span class="comment">/* bcp_bind(), bcp_collen(), bcp_colptr(), bcp_moretext() and bcp_sendrow() may be used only after bcp_init() has been called with the copy direction set to DB_IN. */</span>
00788 <span class="preprocessor">#define SYBEBCPB        20078   </span><span class="comment">/* bcp_bind(), bcp_moretext() and bcp_sendrow() may NOT be used after bcp_init() has been passed a non-NULL input file name. */</span>
00789 <span class="preprocessor">#define SYBEVDPT        20079   </span><span class="comment">/* For bulk copy, all variable-length data must have either a length-prefix or a terminator specified. */</span>
00790 <span class="preprocessor">#define SYBEBIVI        20080   </span><span class="comment">/* bcp_columns(), bcp_colfmt() and bcp_colfmt_ps() may be used only after bcp_init() has been passed a valid input file. */</span>
00791 <span class="preprocessor">#define SYBEBCBC        20081   </span><span class="comment">/* bcp_columns() must be called before bcp_colfmt() and bcp_colfmt_ps(). */</span>
00792 <span class="preprocessor">#define SYBEBCFO        20082   </span><span class="comment">/* Bcp host-files must contain at least one column. */</span>
00793 <span class="preprocessor">#define SYBEBCVH        20083   </span><span class="comment">/* bcp_exec() may be called only after bcp_init() has been passed a valid host file. */</span>
00794 <span class="preprocessor">#define SYBEBCUO        20084   </span><span class="comment">/* Bcp: Unable to open host data-file. */</span>
00795 <span class="preprocessor">#define SYBEBCUC        20085   </span><span class="comment">/* Bcp: Unable to close host data-file. */</span>
00796 <span class="preprocessor">#define SYBEBUOE        20086   </span><span class="comment">/* Bcp: Unable to open error-file. */</span>
00797 <span class="preprocessor">#define SYBEBUCE        20087   </span><span class="comment">/* Bcp: Unable to close error-file. */</span>
00798 <span class="preprocessor">#define SYBEBWEF        20088   </span><span class="comment">/* I/O error while writing bcp error-file. */</span>
00799 <span class="preprocessor">#define SYBEASTF        20089   </span><span class="comment">/* VMS: Unable to setmode for control_c ast. */</span>
00800 <span class="preprocessor">#define SYBEUACS        20090   </span><span class="comment">/* VMS: Unable to assign channel to sys$command. */</span>
00801 <span class="preprocessor">#define SYBEASEC        20091   </span><span class="comment">/* Attempt to send an empty command buffer to the SQL Server. */</span>
00802 <span class="preprocessor">#define SYBETMTD        20092   </span><span class="comment">/* Attempt to send too much TEXT data via the dbmoretext() call. */</span>
00803 <span class="preprocessor">#define SYBENTTN        20093   </span><span class="comment">/* Attempt to use dbtxtsput() to put a new text-timestamp into a non-existent data row. */</span>
00804 <span class="preprocessor">#define SYBEDNTI        20094   </span><span class="comment">/* Attempt to use dbtxtsput() to put a new text-timestamp into a column whose datatype is neither SYBTEXT nor SYBIMAGE. */</span>
00805 <span class="preprocessor">#define SYBEBTMT        20095   </span><span class="comment">/* Attempt to send too much TEXT data via the bcp_moretext() call. */</span>
00806 <span class="preprocessor">#define SYBEORPF        20096   </span><span class="comment">/* Attempt to set remote password would overflow the login-record's remote-password field. */</span>
00807 <span class="preprocessor">#define SYBEUVBF        20097   </span><span class="comment">/* Attempt to read an unknown version of BCP format-file. */</span>
00808 <span class="preprocessor">#define SYBEBUOF        20098   </span><span class="comment">/* Bcp: Unable to open format-file. */</span>
00809 <span class="preprocessor">#define SYBEBUCF        20099   </span><span class="comment">/* Bcp: Unable to close format-file. */</span>
00810 <span class="preprocessor">#define SYBEBRFF        20100   </span><span class="comment">/* I/O error while reading bcp format-file. */</span>
00811 <span class="preprocessor">#define SYBEBWFF        20101   </span><span class="comment">/* I/O error while writing bcp format-file. */</span>
00812 <span class="preprocessor">#define SYBEBUDF        20102   </span><span class="comment">/* Bcp: Unrecognized datatype found in format-file. */</span>
00813 <span class="preprocessor">#define SYBEBIHC        20103   </span><span class="comment">/* Incorrect host-column number found in bcp format-file. */</span>
00814 <span class="preprocessor">#define SYBEBEOF        20104   </span><span class="comment">/* Unexpected EOF encountered in BCP data-file. */</span>
00815 <span class="preprocessor">#define SYBEBCNL        20105   </span><span class="comment">/* Negative length-prefix found in BCP data-file. */</span>
00816 <span class="preprocessor">#define SYBEBCSI        20106   </span><span class="comment">/* Host-file columns may be skipped only when copying INto the Server. */</span>
00817 <span class="preprocessor">#define SYBEBCIT        20107   </span><span class="comment">/* It's illegal to use BCP terminators with program variables other than SYBCHAR, SYBBINARY, SYBTEXT, or SYBIMAGE. */</span>
00818 <span class="preprocessor">#define SYBEBCSA        20108   </span><span class="comment">/* The BCP hostfile '%s' contains only %ld rows. Skipping all of these rows is not allowed. */</span>
00819 <span class="preprocessor">#define SYBENULL        20109   </span><span class="comment">/* NULL DBPROCESS pointer passed to DB-Library. */</span>
00820 <span class="preprocessor">#define SYBEUNAM        20110   </span><span class="comment">/* Unable to get current username from operating system. */</span>
00821 <span class="preprocessor">#define SYBEBCRO        20111   </span><span class="comment">/* The BCP hostfile '%s' contains only %ld rows. It was impossible to read the requested %ld rows. */</span>
00822 <span class="preprocessor">#define SYBEMPLL        20112   </span><span class="comment">/* Attempt to set maximum number of DBPROCESSes lower than 1. */</span>
00823 <span class="preprocessor">#define SYBERPIL        20113   </span><span class="comment">/* It is illegal to pass -1 to dbrpcparam() for the datalen of parameters which are of type SYBCHAR, SYBVARCHAR, SYBBINARY, or SYBVARBINARY. */</span>
00824 <span class="preprocessor">#define SYBERPUL        20114   </span><span class="comment">/* When passing a SYBINTN, SYBDATETIMN, SYBMONEYN, or SYBFLTN parameter via dbrpcparam(), it's necessary to specify the parameter's maximum or actual length, so that DB-Library can recognize it as a SYBINT1, SYBINT2, SYBINT4, SYBMONEY, or SYBMONEY4, etc. */</span>
00825 <span class="preprocessor">#define SYBEUNOP        20115   </span><span class="comment">/* Unknown option passed to dbsetopt(). */</span>
00826 <span class="preprocessor">#define SYBECRNC        20116   </span><span class="comment">/* The current row is not a result of compute clause %d, so it is illegal to attempt to extract that data from this row. */</span>
00827 <span class="preprocessor">#define SYBERTCC        20117   </span><span class="comment">/* dbreadtext() may not be used to receive the results of a query which contains a COMPUTE clause. */</span>
00828 <span class="preprocessor">#define SYBERTSC        20118   </span><span class="comment">/* dbreadtext() may only be used to receive the results of a query which contains a single result column. */</span>
00829 <span class="preprocessor">#define SYBEUCRR        20119   </span><span class="comment">/* Internal software error: Unknown connection result reported by                                                 * dbpasswd(). */</span>
00830 <span class="preprocessor">#define SYBERPNA        20120   </span><span class="comment">/* The RPC facility is available only when using a SQL Server whose version number is 4.0 or greater. */</span>
00831 <span class="preprocessor">#define SYBEOPNA        20121   </span><span class="comment">/* The text/image facility is available only when using a SQL Server whose version number is 4.0 or greater. */</span>
00832 <span class="preprocessor">#define SYBEFGTL        20122   </span><span class="comment">/* Bcp: Row number of the first row to be copied cannot be greater than the row number for the last row to be copied.  */</span>
00833 <span class="preprocessor">#define SYBECWLL        20123   </span><span class="comment">/* Attempt to set column width less than 1.  */</span>
00834 <span class="preprocessor">#define SYBEUFDS        20124   </span><span class="comment">/* Unrecognized format encountered in dbstrbuild(). */</span>
00835 <span class="preprocessor">#define SYBEUCPT        20125   </span><span class="comment">/* Unrecognized custom-format parameter-type encountered in dbstrbuild(). */</span>
00836 <span class="preprocessor">#define SYBETMCF        20126   </span><span class="comment">/* Attempt to install too many custom formats via dbfmtinstall(). */</span>
00837 <span class="preprocessor">#define SYBEAICF        20127   </span><span class="comment">/* Error in attempting to install custom format. */</span>
00838 <span class="preprocessor">#define SYBEADST        20128   </span><span class="comment">/* Error in attempting to determine the size of a pair of translation tables. */</span>
00839 <span class="preprocessor">#define SYBEALTT        20129   </span><span class="comment">/* Error in attempting to load a pair of translation tables. */</span>
00840 <span class="preprocessor">#define SYBEAPCT        20130   </span><span class="comment">/* Error in attempting to perform a character-set translation. */</span>
00841 <span class="preprocessor">#define SYBEXOCI        20131   </span><span class="comment">/* A character-set translation overflowed its destination buffer while using bcp to copy data from a host-file to the SQL Server. */</span>
00842 <span class="preprocessor">#define SYBEFSHD        20132   </span><span class="comment">/* Error in attempting to find the Sybase home directory. */</span>
00843 <span class="preprocessor">#define SYBEAOLF        20133   </span><span class="comment">/* Error in attempting to open a localization file. */</span>
00844 <span class="preprocessor">#define SYBEARDI        20134   </span><span class="comment">/* Error in attempting to read datetime information from a localization file. */</span>
00845 <span class="preprocessor">#define SYBEURCI        20135   </span><span class="comment">/* Unable to read copyright information from the dblib localization file. */</span>
00846 <span class="preprocessor">#define SYBEARDL        20136   </span><span class="comment">/* Error in attempting to read the dblib.loc localization file. */</span>
00847 <span class="preprocessor">#define SYBEURMI        20137   </span><span class="comment">/* Unable to read money-format information from the dblib localization file. */</span>
00848 <span class="preprocessor">#define SYBEUREM        20138   </span><span class="comment">/* Unable to read error mnemonic from the dblib localization file. */</span>
00849 <span class="preprocessor">#define SYBEURES        20139   </span><span class="comment">/* Unable to read error string from the dblib localization file. */</span>
00850 <span class="preprocessor">#define SYBEUREI        20140   </span><span class="comment">/* Unable to read error information from the dblib localization file. */</span>
00851 <span class="preprocessor">#define SYBEOREN        20141   </span><span class="comment">/* Warning: an out-of-range error-number was encountered in dblib.loc. The maximum permissible error-number is defined as DBERRCOUNT in sybdb.h. */</span>
00852 <span class="preprocessor">#define SYBEISOI        20142   </span><span class="comment">/* Invalid sort-order information found. */</span>
00853 <span class="preprocessor">#define SYBEIDCL        20143   </span><span class="comment">/* Illegal datetime column length returned by DataServer. Legal datetime lengths are 4 and 8 bytes. */</span>
00854 <span class="preprocessor">#define SYBEIMCL        20144   </span><span class="comment">/* Illegal money column length returned by DataServer. Legal money lengths are 4 and 8 bytes. */</span>
00855 <span class="preprocessor">#define SYBEIFCL        20145   </span><span class="comment">/* Illegal floating-point column length returned by DataServer. Legal floating-point lengths are 4 and 8 bytes. */</span>
00856 <span class="preprocessor">#define SYBEUTDS        20146   </span><span class="comment">/* Unrecognized TDS version received from SQL Server. */</span>
00857 <span class="preprocessor">#define SYBEBUFF        20147   </span><span class="comment">/* Bcp: Unable to create format-file. */</span>
00858 <span class="preprocessor">#define SYBEACNV        20148   </span><span class="comment">/* Attemp to do conversion with NULL destination variable. */</span>
00859 <span class="preprocessor">#define SYBEDPOR        20149   </span><span class="comment">/* Out-of-range datepart constant. */</span>
00860 <span class="preprocessor">#define SYBENDC         20150   </span><span class="comment">/* Cannot have negative component in date in numeric form. */</span>
00861 <span class="preprocessor">#define SYBEMVOR        20151   </span><span class="comment">/* Month values must be between 1 and 12. */</span>
00862 <span class="preprocessor">#define SYBEDVOR        20152   </span><span class="comment">/* Day values must be between 1 and 7. */</span>
00863 <span class="preprocessor">#define SYBENBVP        20153   </span><span class="comment">/* Cannot pass dbsetnull() a NULL bindval pointer. */</span>
00864 <span class="preprocessor">#define SYBESPID        20154   </span><span class="comment">/* Called dbspid() with a NULL dbproc. */</span>
00865 <span class="preprocessor">#define SYBENDTP        20155   </span><span class="comment">/* Called dbdatecrack() with a NULL datetime  parameter. */</span>
00866 <span class="preprocessor">#define SYBEXTN         20156   </span><span class="comment">/* The xlt_todisp and xlt_tosrv parameters to dbfree_xlate() were NULL. */</span>
00867 <span class="preprocessor">#define SYBEXTDN        20157   </span><span class="comment">/* Warning:  the xlt_todisp parameter to dbfree_xlate() was NULL.  The space associated with the xlt_tosrv parameter has been freed. */</span>
00868 <span class="preprocessor">#define SYBEXTSN        20158   </span><span class="comment">/* Warning:  the xlt_tosrv parameter to dbfree_xlate() was NULL.  The space associated with the xlt_todisp parameter has been freed. */</span>
00869 <span class="preprocessor">#define SYBENUM         20159   </span><span class="comment">/* Incorrect number of arguments given  to DB-Library.  */</span>
00870 <span class="preprocessor">#define SYBETYPE        20160   </span><span class="comment">/* Invalid argument type given to DB-Library. */</span>
00871 <span class="preprocessor">#define SYBEGENOS       20161   </span><span class="comment">/* General Operating System Error. */</span>
00872 <span class="preprocessor">#define SYBEPAGE        20162   </span><span class="comment">/* wrong resource type or length given for  dbpage() operation.  */</span>
00873 <span class="preprocessor">#define SYBEOPTNO       20163   </span><span class="comment">/* Option is not allowed or is unreconized */</span>
00874 <span class="preprocessor">#define SYBEETD         20164   </span><span class="comment">/* Failure to send the expected amount of  TEXT or IMAGE data via dbmoretext(). */</span>
00875 <span class="preprocessor">#define SYBERTYPE       20165   </span><span class="comment">/* Invalid resource type given to DB-Library. */</span>
00876 <span class="preprocessor">#define SYBERFILE       20166   </span><span class="comment">/* "Can not open resource file." */</span>
00877 <span class="preprocessor">#define SYBEFMODE       20167   </span><span class="comment">/* Read/Write/Append mode denied on file. */</span>
00878 <span class="preprocessor">#define SYBESLCT        20168   </span><span class="comment">/* Could not select or copy field specified */</span>
00879 <span class="preprocessor">#define SYBEZTXT        20169   </span><span class="comment">/* Attempt to send zero length TEXT or  IMAGE to dataserver via dbwritetext(). */</span>
00880 <span class="preprocessor">#define SYBENTST        20170   </span><span class="comment">/* The file being opened must be a stream_lf. */</span>
00881 <span class="preprocessor">#define SYBEOSSL        20171   </span><span class="comment">/* Operating system login level not in range of Secure SQL Server */</span>
00882 <span class="preprocessor">#define SYBEESSL        20172   </span><span class="comment">/* Login security level entered does not agree with operating system level */</span>
00883 <span class="preprocessor">#define SYBENLNL        20173   </span><span class="comment">/* Program not linked with specified network library. */</span>
00884 <span class="preprocessor">#define SYBENHAN        20174   </span><span class="comment">/* called dbrecvpassthru() with a NULL handler parameter. */</span>
00885 <span class="preprocessor">#define SYBENBUF        20175   </span><span class="comment">/* called dbsendpassthru() with a NULL buf pointer. */</span>
00886 <span class="preprocessor">#define SYBENULP        20176   </span><span class="comment">/* Called %s with a NULL %s parameter. */</span>
00887 <span class="preprocessor">#define SYBENOTI        20177   </span><span class="comment">/* No event handler installed. */</span>
00888 <span class="preprocessor">#define SYBEEVOP        20178   </span><span class="comment">/* Called dbregwatch() with a bad options parameter. */</span>
00889 <span class="preprocessor">#define SYBENEHA        20179   </span><span class="comment">/* Called dbreghandle() with a NULL handler parameter. */</span>
00890 <span class="preprocessor">#define SYBETRAN        20180   </span><span class="comment">/* DBPROCESS is being used for another transaction. */</span>
00891 <span class="preprocessor">#define SYBEEVST        20181   </span><span class="comment">/* Must initiate a transaction before calling dbregparam(). */</span>
00892 <span class="preprocessor">#define SYBEEINI        20182   </span><span class="comment">/* Must call dbreginit() before dbregraise(). */</span>
00893 <span class="preprocessor">#define SYBEECRT        20183   </span><span class="comment">/* Must call dbregdefine() before dbregcreate(). */</span>
00894 <span class="preprocessor">#define SYBEECAN        20184   </span><span class="comment">/* Attempted to cancel unrequested event notification. */</span>
00895 <span class="preprocessor">#define SYBEEUNR        20185   </span><span class="comment">/* Unsolicited event notification received. */</span>
00896 <span class="preprocessor">#define SYBERPCS        20186   </span><span class="comment">/* Must call dbrpcinit() before dbrpcparam(). */</span>
00897 <span class="preprocessor">#define SYBETPAR        20187   </span><span class="comment">/* No SYBTEXT or SYBIMAGE parameters were defined. */</span>
00898 <span class="preprocessor">#define SYBETEXS        20188   </span><span class="comment">/* Called dbmoretext() with a bad size parameter. */</span>
00899 <span class="preprocessor">#define SYBETRAC        20189   </span><span class="comment">/* Attempted to turn off a trace flag that was not on. */</span>
00900 <span class="preprocessor">#define SYBETRAS        20190   </span><span class="comment">/* DB-Library internal error - trace structure not found. */</span>
00901 <span class="preprocessor">#define SYBEPRTF        20191   </span><span class="comment">/* dbtracestring() may only be called from a printfunc(). */</span>
00902 <span class="preprocessor">#define SYBETRSN        20192   </span><span class="comment">/* Bad numbytes parameter passed to dbtracestring(). */</span>
00903 <span class="preprocessor">#define SYBEBPKS        20193   </span><span class="comment">/* In DBSETLPACKET(), the packet size parameter must be between 0 and 999999. */</span>
00904 <span class="preprocessor">#define SYBEIPV         20194   </span><span class="comment">/* %1! is an illegal value for the %2! parameter of %3!. */</span>
00905 <span class="preprocessor">#define SYBEMOV         20195   </span><span class="comment">/* Money arithmetic resulted in overflow in function %1!. */</span>
00906 <span class="preprocessor">#define SYBEDIVZ        20196   </span><span class="comment">/* Attempt to divide by $0.00 in function %1!. */</span>
00907 <span class="preprocessor">#define SYBEASTL        20197   </span><span class="comment">/* Synchronous I/O attempted at AST level. */</span>
00908 <span class="preprocessor">#define SYBESEFA        20198   </span><span class="comment">/* DBSETNOTIFS cannot be called if connections are present. */</span>
00909 <span class="preprocessor">#define SYBEPOLL        20199   </span><span class="comment">/* Only one dbpoll() can be active at a time. */</span>
00910 <span class="preprocessor">#define SYBENOEV        20200   </span><span class="comment">/* dbpoll() cannot be called if registered procedure notifications have been disabled. */</span>
00911 <span class="preprocessor">#define SYBEBADPK       20201   </span><span class="comment">/* Packet size of %1! not supported. -- size of %2! used instead. */</span>
00912 <span class="preprocessor">#define SYBESECURE      20202   </span><span class="comment">/* Secure Server function not supported in this version. */</span>
00913 <span class="preprocessor">#define SYBECAP         20203   </span><span class="comment">/* DB-Library capabilities not accepted by the Server. */</span>
00914 <span class="preprocessor">#define SYBEFUNC        20204   </span><span class="comment">/* Functionality not supported at the specified version level. */</span>
00915 <span class="preprocessor">#define SYBERESP        20205   </span><span class="comment">/* Response function address passed to dbresponse() must be non-NULL. */</span>
00916 <span class="preprocessor">#define SYBEIVERS       20206   </span><span class="comment">/* Illegal version level specified. */</span>
00917 <span class="preprocessor">#define SYBEONCE        20207   </span><span class="comment">/* Function can be called only once. */</span>
00918 <span class="preprocessor">#define SYBERPNULL      20208   </span><span class="comment">/* value parameter for dbprcparam() can be NULL, only if the datalen parameter is 0 */</span>
00919 <span class="preprocessor">#define SYBERPTXTIM     20209   </span><span class="comment">/* RPC parameters cannot be of type Text/Image. */</span>
00920 <span class="preprocessor">#define SYBENEG         20210   </span><span class="comment">/* Negotiated login attempt failed. */</span>
00921 <span class="preprocessor">#define SYBELBLEN       20211   </span><span class="comment">/* Security labels should be less than 256 characters long. */</span>
00922 <span class="preprocessor">#define SYBEUMSG        20212   </span><span class="comment">/* Unknown message-id in MSG datastream. */</span>
00923 <span class="preprocessor">#define SYBECAPTYP      20213   </span><span class="comment">/* Unexpected capability type in CAPABILITY datastream. */</span>
00924 <span class="preprocessor">#define SYBEBNUM        20214   </span><span class="comment">/* Bad numbytes parameter passed to dbstrcpy() */</span>
00925 <span class="preprocessor">#define SYBEBBL         20215   </span><span class="comment">/* Bad bindlen parameter passed to dbsetnull() */</span>
00926 <span class="preprocessor">#define SYBEBPREC       20216   </span><span class="comment">/* Illegal precision specified */</span>
00927 <span class="preprocessor">#define SYBEBSCALE      20217   </span><span class="comment">/* Illegal scale specified */</span>
00928 <span class="preprocessor">#define SYBECDOMAIN     20218   </span><span class="comment">/* Source field value is not within the domain of legal values. */</span>
00929 <span class="preprocessor">#define SYBECINTERNAL   20219   </span><span class="comment">/* Internal Conversion error. */</span>
00930 <span class="preprocessor">#define SYBEBTYPSRV     20220   </span><span class="comment">/* Datatype is not supported by the server. */</span>
00931 <span class="preprocessor">#define SYBEBCSET       20221   </span><span class="comment">/* Unknown character-set encountered." */</span>
00932 <span class="preprocessor">#define SYBEFENC        20222   </span><span class="comment">/* Password Encryption failed." */</span>
00933 <span class="preprocessor">#define SYBEFRES        20223   </span><span class="comment">/* Challenge-Response function failed.", */</span>
00934 <span class="preprocessor">#define SYBEISRVPREC    20224   </span><span class="comment">/* Illegal precision value returned by the server. */</span>
00935 <span class="preprocessor">#define SYBEISRVSCL     20225   </span><span class="comment">/* Illegal scale value returned by the server. */</span>
00936 <span class="preprocessor">#define SYBEINUMCL      20226   </span><span class="comment">/* Invalid numeric column length returned by the server. */</span>
00937 <span class="preprocessor">#define SYBEIDECCL      20227   </span><span class="comment">/* Invalid decimal column length returned by the server. */</span>
00938 <span class="preprocessor">#define SYBEBCMTXT      20228   </span><span class="comment">/* bcp_moretext() may be used only when there is at least one text or image column in the server table. */</span>
00939 <span class="preprocessor">#define SYBEBCPREC      20229   </span><span class="comment">/* Column %1!: Illegal precision value encountered. */</span>
00940 <span class="preprocessor">#define SYBEBCBNPR      20230   </span><span class="comment">/* bcp_bind(): if varaddr is NULL, prefixlen must be 0 and no terminator should be specified. */</span>
00941 <span class="preprocessor">#define SYBEBCBNTYP     20231   </span><span class="comment">/* bcp_bind(): if varaddr is NULL and varlen greater than 0, the table column type must be SYBTEXT or SYBIMAGE and the program variable type must be SYBTEXT, SYBCHAR, SYBIMAGE or SYBBINARY. */</span>
00942 <span class="preprocessor">#define SYBEBCSNTYP     20232   </span><span class="comment">/* column number %1!: if varaddr is NULL and varlen greater than 0, the table column type must be SYBTEXT or SYBIMAGE and the program variable type must be SYBTEXT, SYBCHAR, SYBIMAGE or SYBBINARY. */</span>
00943 <span class="preprocessor">#define SYBEBCPCTYP     20233   </span><span class="comment">/* bcp_colfmt(): If table_colnum is 0, host_type cannot be 0. */</span>
00944 <span class="preprocessor">#define SYBEBCVLEN      20234   </span><span class="comment">/* varlen should be greater than or equal to -1. */</span>
00945 <span class="preprocessor">#define SYBEBCHLEN      20235   </span><span class="comment">/* host_collen should be greater than or equal to -1. */</span>
00946 <span class="preprocessor">#define SYBEBCBPREF     20236   </span><span class="comment">/* Illegal prefix length. Legal values are 0, 1, 2 or 4. */</span>
00947 <span class="preprocessor">#define SYBEBCPREF      20237   </span><span class="comment">/* Illegal prefix length. Legal values are -1, 0, 1, 2 or 4. */</span>
00948 <span class="preprocessor">#define SYBEBCITBNM     20238   </span><span class="comment">/* bcp_init(): tblname parameter cannot be NULL. */</span>
00949 <span class="preprocessor">#define SYBEBCITBLEN    20239   </span><span class="comment">/* bcp_init(): tblname parameter is too long. */</span>
00950 <span class="preprocessor">#define SYBEBCSNDROW    20240   </span><span class="comment">/* bcp_sendrow() may NOT be called unless all text data for the previous row has been sent using bcp_moretext(). */</span>
00951 <span class="preprocessor">#define SYBEBPROCOL     20241   </span><span class="comment">/* bcp protocol error: returned column count differs from the actual number of columns received. */</span>
00952 <span class="preprocessor">#define SYBEBPRODEF     20242   </span><span class="comment">/* bcp protocol error: expected default information and got none. */</span>
00953 <span class="preprocessor">#define SYBEBPRONUMDEF  20243   </span><span class="comment">/* bcp protocol error: expected number of defaults differs from the actual number of defaults received. */</span>
00954 <span class="preprocessor">#define SYBEBPRODEFID   20244   </span><span class="comment">/* bcp protocol error: default column id and actual column id are not same */</span>
00955 <span class="preprocessor">#define SYBEBPRONODEF   20245   </span><span class="comment">/* bcp protocol error:  default value received for column that does not have default. */</span>
00956 <span class="preprocessor">#define SYBEBPRODEFTYP  20246   </span><span class="comment">/* bcp protocol error:  default value datatype differs from column datatype. */</span>
00957 <span class="preprocessor">#define SYBEBPROEXTDEF  20247   </span><span class="comment">/* bcp protocol error: more than one row of default information received. */</span>
00958 <span class="preprocessor">#define SYBEBPROEXTRES  20248   </span><span class="comment">/* bcp protocol error: unexpected set of results received. */</span>
00959 <span class="preprocessor">#define SYBEBPROBADDEF  20249   </span><span class="comment">/* bcp protocol error: illegal default column id received. */</span>
00960 <span class="preprocessor">#define SYBEBPROBADTYP  20250   </span><span class="comment">/* bcp protocol error: unknown column datatype. */</span>
00961 <span class="preprocessor">#define SYBEBPROBADLEN  20251   </span><span class="comment">/* bcp protocol error: illegal datatype length received. */</span>
00962 <span class="preprocessor">#define SYBEBPROBADPREC 20252   </span><span class="comment">/* bcp protocol error: illegal precision value received. */</span>
00963 <span class="preprocessor">#define SYBEBPROBADSCL  20253   </span><span class="comment">/* bcp protocol error: illegal scale value received. */</span>
00964 <span class="preprocessor">#define SYBEBADTYPE     20254   </span><span class="comment">/* Illegal value for type parameter  given to %1!. */</span>
00965 <span class="preprocessor">#define SYBECRSNORES    20255   </span><span class="comment">/* Cursor statement generated no results. */</span>
00966 <span class="preprocessor">#define SYBECRSNOIND    20256   </span><span class="comment">/* One of the tables involved in the cursor  statement does not have a unique index. */</span>
00967 <span class="preprocessor">#define SYBECRSVIEW     20257   </span><span class="comment">/* A view cannot be joined with another table  or a view in a cursor statement. */</span>
00968 <span class="preprocessor">#define SYBECRSVIIND    20258   </span><span class="comment">/* The view used in the cursor statement does  not include all the unique index columns of  the underlying tables. */</span>
00969 <span class="preprocessor">#define SYBECRSORD      20259   </span><span class="comment">/* Only fully keyset driven cursors can have 'order by', ' group by', or 'having' phrases. */</span>
00970 <span class="preprocessor">#define SYBECRSBUFR     20260   </span><span class="comment">/* Row buffering should not be turned on when  using cursor APIs. */</span>
00971 <span class="preprocessor">#define SYBECRSNOFREE   20261   </span><span class="comment">/* The DBNOAUTOFREE option should not be  turned on when using cursor APIs. */</span>
00972 <span class="preprocessor">#define SYBECRSDIS      20262   </span><span class="comment">/* Cursor statement contains one of the  disallowed phrases 'compute', 'union', 'for browse', or 'select into'. */</span>
00973 <span class="preprocessor">#define SYBECRSAGR      20263   </span><span class="comment">/* Aggregate functions are not allowed in a  cursor statement. */</span>
00974 <span class="preprocessor">#define SYBECRSFRAND    20264   </span><span class="comment">/* Fetch types RANDOM and RELATIVE can only be  used within the keyset of keyset driven  cursors. */</span>
00975 <span class="preprocessor">#define SYBECRSFLAST    20265   </span><span class="comment">/* Fetch type LAST requires fully keyset  driven cursors. */</span>
00976 <span class="preprocessor">#define SYBECRSBROL     20266   </span><span class="comment">/* Backward scrolling cannot be used in a  forward scrolling cursor. */</span>
00977 <span class="preprocessor">#define SYBECRSFROWN    20267   </span><span class="comment">/* Row number to be fetched is outside valid  range. */</span>
00978 <span class="preprocessor">#define SYBECRSBSKEY    20268   </span><span class="comment">/* Keyset cannot be scrolled backward in mixed  cursors with a previous fetch type. */</span>
00979 <span class="preprocessor">#define SYBECRSRO       20269   </span><span class="comment">/* Data locking or modifications cannot be  made in a READONLY cursor. */</span>
00980 <span class="preprocessor">#define SYBECRSNOCOUNT  20270   </span><span class="comment">/* The DBNOCOUNT option should not be  turned on when doing updates or deletes with  dbcursor(). */</span>
00981 <span class="preprocessor">#define SYBECRSTAB      20271   </span><span class="comment">/* Table name must be determined in operations  involving data locking or modifications. */</span>
00982 <span class="preprocessor">#define SYBECRSUPDNB    20272   </span><span class="comment">/* Update or insert operations cannot use bind  variables when binding type is NOBIND. */</span>
00983 <span class="preprocessor">#define SYBECRSNOWHERE  20273   </span><span class="comment">/* A WHERE clause is not allowed in a cursor  update or insert. */</span>
00984 <span class="preprocessor">#define SYBECRSSET      20274   </span><span class="comment">/* A SET clause is required for a cursor  update or insert.  */</span>
00985 <span class="preprocessor">#define SYBECRSUPDTAB   20275   </span><span class="comment">/* Update or insert operations using bind  variables require single table cursors. */</span>
00986 <span class="preprocessor">#define SYBECRSNOUPD    20276   </span><span class="comment">/* Update or delete operation did not affect  any rows. */</span>
00987 <span class="preprocessor">#define SYBECRSINV      20277   </span><span class="comment">/* Invalid cursor statement. */</span>
00988 <span class="preprocessor">#define SYBECRSNOKEYS   20278   </span><span class="comment">/* The entire keyset must be defined for KEYSET cursors. */</span>
00989 <span class="preprocessor">#define SYBECRSNOBIND   20279   </span><span class="comment">/* Cursor bind must be called prior to updating cursor */</span>
00990 <span class="preprocessor">#define SYBECRSFTYPE    20280   </span><span class="comment">/* Unknown fetch type. */</span>
00991 <span class="preprocessor">#define SYBECRSINVALID  20281   </span><span class="comment">/* The cursor handle is invalid. */</span>
00992 <span class="preprocessor">#define SYBECRSMROWS    20282   </span><span class="comment">/* Multiple rows are returned, only one is expected. */</span>
00993 <span class="preprocessor">#define SYBECRSNROWS    20283   </span><span class="comment">/* No rows returned, at least one is expected. */</span>
00994 <span class="preprocessor">#define SYBECRSNOLEN    20284   </span><span class="comment">/* No unique index found. */</span>
00995 <span class="preprocessor">#define SYBECRSNOPTCC   20285   </span><span class="comment">/* No OPTCC was found. */</span>
00996 <span class="preprocessor">#define SYBECRSNORDER   20286   </span><span class="comment">/* The order of clauses must be from, where, and order by. */</span>
00997 <span class="preprocessor">#define SYBECRSNOTABLE  20287   </span><span class="comment">/* Table name is NULL. */</span>
00998 <span class="preprocessor">#define SYBECRSNUNIQUE  20288   </span><span class="comment">/* No unique keys associated with this view. */</span>
00999 <span class="preprocessor">#define SYBECRSVAR      20289   </span><span class="comment">/* There is no valid address associated with this bind. */</span>
01000 <span class="preprocessor">#define SYBENOVALUE     20290   </span><span class="comment">/* Security labels require both a name and a value */</span>
01001 <span class="preprocessor">#define SYBEVOIDRET     20291   </span><span class="comment">/* Parameter of type SYBVOID cannot  be a return parameter. */</span>
01002 <span class="preprocessor">#define SYBECLOSEIN     20292   </span><span class="comment">/* Unable to close interface file. */</span>
01003 <span class="preprocessor">#define SYBEBOOL        20293   </span><span class="comment">/* Boolean parameters must be TRUE or FALSE. */</span>
01004 <span class="preprocessor">#define SYBEBCPOPT      20294   </span><span class="comment">/* The  option cannot be called while a bulk copy operation is progress. */</span>
01005 <span class="preprocessor">#define SYBEERRLABEL    20295   </span><span class="comment">/* An illegal value was returned from the security label handler. */</span>
01006 <span class="preprocessor">#define SYBEATTNACK     20296   </span><span class="comment">/* Timed out waiting for server to acknowledge attention." */</span>
01007 <span class="preprocessor">#define SYBEBBFL        20297   </span><span class="comment">/* -001- Batch failed in bulk-copy to SQL Server */</span>
01008 <span class="preprocessor">#define SYBEDCL         20298   </span><span class="comment">/* -004- DCL Error */</span>
01009 <span class="preprocessor">#define SYBECS          20299   </span><span class="comment">/* -004- cs context Error */</span>
01010 <span class="preprocessor">#define SYBEBULKINSERT  20599   </span><span class="comment">/* cannot build bulk insert statement */</span>
01011 
01012 <span class="keywordtype">int</span> <a class="code" href="a00281.html#ga14">dbtds</a>(DBPROCESS * dbprocess);
01013 
<a name="l01014"></a><a class="code" href="a00275.html#ga113">01014</a> <span class="preprocessor">#define DBTDS(a)                dbtds(a)</span>
01015 <span class="preprocessor"></span>DBINT dbtextsize(DBPROCESS * dbprocess);
01016 <span class="keywordtype">int</span> dbtsnewlen(DBPROCESS * dbprocess);
01017 DBBINARY *dbtsnewval(DBPROCESS * dbprocess);
01018 RETCODE dbtsput(DBPROCESS * dbprocess, DBBINARY * newts, <span class="keywordtype">int</span> newtslen, <span class="keywordtype">int</span> tabnum, <span class="keywordtype">char</span> *tabname);
01019 DBBINARY *<a class="code" href="a00275.html#ga80">dbtxptr</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
01020 DBBINARY *<a class="code" href="a00275.html#ga79">dbtxtimestamp</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> column);
01021 DBBINARY *dbtxtsnewval(DBPROCESS * dbprocess);
01022 RETCODE dbtxtsput(DBPROCESS * dbprocess, DBBINARY newtxts, <span class="keywordtype">int</span> colnum);
01023 RETCODE <a class="code" href="a00275.html#ga7">dbuse</a>(DBPROCESS * dbproc, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
01024 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a00275.html#ga85">dbversion</a>(<span class="keywordtype">void</span>);
01025 DBBOOL <a class="code" href="a00275.html#ga24">dbwillconvert</a>(<span class="keywordtype">int</span> srctype, <span class="keywordtype">int</span> desttype);
01026 RETCODE dbwritepage(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *p_dbname, DBINT pageno, DBINT size, BYTE * buf);
01027 RETCODE <a class="code" href="a00275.html#ga81">dbwritetext</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *objname, DBBINARY * textptr, DBTINYINT textptrlen, DBBINARY * timestamp,
01028                     DBBOOL log, DBINT size, BYTE * text);
01029 <span class="keywordtype">int</span> dbxlate(DBPROCESS * dbprocess, <span class="keywordtype">char</span> *src, <span class="keywordtype">int</span> srclen, <span class="keywordtype">char</span> *dest, <span class="keywordtype">int</span> destlen, DBXLATE * xlt, <span class="keywordtype">int</span> *srcbytes_used,
01030             DBBOOL srcend, <span class="keywordtype">int</span> status);
01031 
01032 <span class="comment">/* LOGINREC manipulation */</span>
01033 RETCODE <a class="code" href="a00281.html#ga1">dbsetlname</a>(LOGINREC * login, <span class="keyword">const</span> <span class="keywordtype">char</span> *value, <span class="keywordtype">int</span> which);
01034 RETCODE <a class="code" href="a00281.html#ga4">dbsetlbool</a>(LOGINREC * login, <span class="keywordtype">int</span> value, <span class="keywordtype">int</span> which);
01035 RETCODE <a class="code" href="a00281.html#ga3">dbsetlshort</a>(LOGINREC * login, <span class="keywordtype">int</span> value, <span class="keywordtype">int</span> which);
01036 RETCODE <a class="code" href="a00281.html#ga2">dbsetllong</a>(LOGINREC * login, <span class="keywordtype">long</span> value, <span class="keywordtype">int</span> which);
01037 RETCODE <a class="code" href="a00275.html#ga3">dbsetlversion</a> (LOGINREC * login, BYTE version);
01038 
01039 <span class="preprocessor">#define DBSETHOST               1</span>
<a name="l01040"></a><a class="code" href="a00274.html#ga0">01040</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLHOST(x,y)         dbsetlname((x), (y), DBSETHOST)</span>
01041 <span class="preprocessor"></span><span class="preprocessor">#define dbsetlhost(x,y)         dbsetlname((x), (y), DBSETHOST)</span>
01042 <span class="preprocessor"></span><span class="preprocessor">#define DBSETUSER               2</span>
<a name="l01043"></a><a class="code" href="a00274.html#ga1">01043</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLUSER(x,y)         dbsetlname((x), (y), DBSETUSER)</span>
01044 <span class="preprocessor"></span><span class="preprocessor">#define dbsetluser(x,y)         dbsetlname((x), (y), DBSETUSER)</span>
01045 <span class="preprocessor"></span><span class="preprocessor">#define DBSETPWD                3</span>
<a name="l01046"></a><a class="code" href="a00274.html#ga2">01046</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLPWD(x,y)          dbsetlname((x), (y), DBSETPWD)</span>
01047 <span class="preprocessor"></span><span class="preprocessor">#define dbsetlpwd(x,y)          dbsetlname((x), (y), DBSETPWD)</span>
01048 <span class="preprocessor"></span><span class="preprocessor">#define DBSETHID                4       </span><span class="comment">/* not implemented */</span>
01049 <span class="preprocessor">#define DBSETLHID(x,y)          dbsetlname((x), (y), DBSETHID)</span>
01050 <span class="preprocessor"></span><span class="preprocessor">#define DBSETAPP                5</span>
<a name="l01051"></a><a class="code" href="a00274.html#ga3">01051</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLAPP(x,y)          dbsetlname((x), (y), DBSETAPP)</span>
01052 <span class="preprocessor"></span><span class="preprocessor">#define dbsetlapp(x,y)          dbsetlname((x), (y), DBSETAPP)</span>
01053 <span class="preprocessor"></span><span class="preprocessor">#define DBSETBCP                6</span>
<a name="l01054"></a><a class="code" href="a00274.html#ga4">01054</a> <span class="preprocessor"></span><span class="preprocessor">#define BCP_SETL(x,y)           dbsetlbool((x), (y), DBSETBCP)</span>
01055 <span class="preprocessor"></span><span class="preprocessor">#define DBSETNATLANG            7</span>
<a name="l01056"></a><a class="code" href="a00275.html#ga115">01056</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLNATLANG(x,y)      dbsetlname((x), (y), DBSETNATLANG)</span>
<a name="l01057"></a><a class="code" href="a00275.html#ga116">01057</a> <span class="preprocessor"></span><span class="preprocessor">#define dbsetlnatlang(x,y)      dbsetlname((x), (y), DBSETNATLANG)</span>
01058 <span class="preprocessor"></span><span class="preprocessor">#define DBSETNOSHORT            8       </span><span class="comment">/* not implemented */</span>
01059 <span class="preprocessor">#define DBSETLNOSHORT(x,y)      dbsetlbool((x), (y), DBSETNOSHORT)</span>
01060 <span class="preprocessor"></span><span class="preprocessor">#define DBSETHIER               9       </span><span class="comment">/* not implemented */</span>
01061 <span class="preprocessor">#define DBSETLHIER(x,y)         dbsetlshort((x), (y), DBSETHIER)</span>
01062 <span class="preprocessor"></span><span class="preprocessor">#define DBSETCHARSET            10</span>
<a name="l01063"></a><a class="code" href="a00275.html#ga114">01063</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLCHARSET(x,y)      dbsetlname((x), (y), DBSETCHARSET)</span>
01064 <span class="preprocessor"></span><span class="preprocessor">#define DBSETPACKET             11</span>
<a name="l01065"></a><a class="code" href="a00275.html#ga117">01065</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLPACKET(x,y)       dbsetllong((x), (y), DBSETPACKET)</span>
<a name="l01066"></a><a class="code" href="a00275.html#ga118">01066</a> <span class="preprocessor"></span><span class="preprocessor">#define dbsetlpacket(x,y)       dbsetllong((x), (y), DBSETPACKET)</span>
01067 <span class="preprocessor"></span><span class="preprocessor">#define DBSETENCRYPT            12</span>
<a name="l01068"></a><a class="code" href="a00275.html#ga119">01068</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLENCRYPT(x,y)      dbsetlbool((x), (y), DBSETENCRYPT)</span>
01069 <span class="preprocessor"></span><span class="preprocessor">#define DBSETLABELED            13</span>
<a name="l01070"></a><a class="code" href="a00281.html#ga22">01070</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLLABELED(x,y)      dbsetlbool((x), (y), DBSETLABELED)</span>
01071 <span class="preprocessor"></span><span class="preprocessor">#define BCP_SETLABELED(x,y)     dbsetlbool((x), (y), DBSETLABELED)</span>
<a name="l01072"></a><a class="code" href="a00281.html#ga23">01072</a> <span class="preprocessor"></span><span class="preprocessor">#define DBSETLVERSION(login, version) dbsetlversion((login), (version))</span>
01073 <span class="preprocessor"></span>
01074 RETCODE <a class="code" href="a00277.html#ga0">bcp_init</a>(DBPROCESS * dbproc, <span class="keyword">const</span> <span class="keywordtype">char</span> *tblname, <span class="keyword">const</span> <span class="keywordtype">char</span> *hfile, <span class="keyword">const</span> <span class="keywordtype">char</span> *errfile, <span class="keywordtype">int</span> direction);
01075 RETCODE <a class="code" href="a00277.html#ga15">bcp_done</a>(DBPROCESS * dbproc);
01076 
01077 RETCODE <a class="code" href="a00277.html#ga14">bcp_batch</a>(DBPROCESS * dbproc);
01078 RETCODE <a class="code" href="a00277.html#ga16">bcp_bind</a>(DBPROCESS * dbproc, BYTE * varaddr, <span class="keywordtype">int</span> prefixlen, DBINT varlen, BYTE * terminator, <span class="keywordtype">int</span> termlen, <span class="keywordtype">int</span> type,
01079                  <span class="keywordtype">int</span> table_column);
01080 RETCODE <a class="code" href="a00277.html#ga1">bcp_collen</a>(DBPROCESS * dbproc, DBINT varlen, <span class="keywordtype">int</span> table_column);
01081 RETCODE <a class="code" href="a00277.html#ga2">bcp_columns</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> host_colcount);
01082 RETCODE <a class="code" href="a00277.html#ga3">bcp_colfmt</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> host_column, <span class="keywordtype">int</span> host_type, <span class="keywordtype">int</span> host_prefixlen, DBINT host_collen,
01083                    <span class="keyword">const</span> BYTE * host_term, <span class="keywordtype">int</span> host_termlen, <span class="keywordtype">int</span> colnum);
01084 RETCODE <a class="code" href="a00277.html#ga4">bcp_colfmt_ps</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> host_column, <span class="keywordtype">int</span> host_type, <span class="keywordtype">int</span> host_prefixlen, DBINT host_collen,
01085                       BYTE * host_term, <span class="keywordtype">int</span> host_termlen, <span class="keywordtype">int</span> colnum, DBTYPEINFO * typeinfo);
01086 RETCODE <a class="code" href="a00277.html#ga7">bcp_colptr</a>(DBPROCESS * dbproc, BYTE * colptr, <span class="keywordtype">int</span> table_column);
01087 RETCODE <a class="code" href="a00277.html#ga5">bcp_control</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> field, DBINT value);
01088 <span class="keywordtype">int</span> bcp_getbatchsize(DBPROCESS * dbproc); <span class="comment">/* FreeTDS only */</span>
01089 RETCODE <a class="code" href="a00277.html#ga10">bcp_exec</a>(DBPROCESS * dbproc, DBINT * rows_copied);
01090 DBBOOL <a class="code" href="a00277.html#ga8">bcp_getl</a>(LOGINREC * login);
01091 RETCODE <a class="code" href="a00277.html#ga13">bcp_moretext</a>(DBPROCESS * dbproc, DBINT size, BYTE * text);
01092 RETCODE <a class="code" href="a00277.html#ga6">bcp_options</a>(DBPROCESS * dbproc, <span class="keywordtype">int</span> option, BYTE * value, <span class="keywordtype">int</span> valuelen);
01093 RETCODE <a class="code" href="a00277.html#ga11">bcp_readfmt</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *filename);
01094 RETCODE <a class="code" href="a00277.html#ga9">bcp_sendrow</a>(DBPROCESS * dbproc);
01095 RETCODE <a class="code" href="a00277.html#ga12">bcp_writefmt</a>(DBPROCESS * dbproc, <span class="keywordtype">char</span> *filename);
01096 
01097 <span class="keywordtype">void</span> build_xact_string(<span class="keywordtype">char</span> *xact_name, <span class="keywordtype">char</span> *service_name, DBINT commid, <span class="keywordtype">char</span> *result);
01098 RETCODE remove_xact(DBPROCESS * connect, DBINT commid, <span class="keywordtype">int</span> n);
01099 RETCODE abort_xact(DBPROCESS * connect, DBINT commid);
01100 <span class="keywordtype">void</span> close_commit(DBPROCESS * connect);
01101 RETCODE commit_xact(DBPROCESS * connect, DBINT commid);
01102 DBPROCESS *open_commit(LOGINREC * login, <span class="keywordtype">char</span> *servername);
01103 RETCODE scan_xact(DBPROCESS * connect, DBINT commid);
01104 DBINT start_xact(DBPROCESS * connect, <span class="keywordtype">char</span> *application_name, <span class="keywordtype">char</span> *xact_name, <span class="keywordtype">int</span> site_count);
01105 DBINT stat_xact(DBPROCESS * connect, DBINT commid);
01106 
01107 <span class="preprocessor">#ifdef __cplusplus</span>
01108 <span class="preprocessor"></span><span class="preprocessor">#if 0</span>
01109 <span class="preprocessor"></span>{
01110 <span class="preprocessor">#endif</span>
01111 <span class="preprocessor"></span>}
01112 <span class="preprocessor">#endif</span>
01113 <span class="preprocessor"></span>
01114 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed May 7 19:22:09 2008 for FreeTDS API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.1 </small></address>
</body>
</html>