NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions
sybdb.h File Reference
#include "tds_sysdep_public.h"
#include "../impl/rename_ftds_dblib.h"
+ Include dependency graph for sybdb.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  DBVARYCHAR
 
struct  DBVARYBIN
 
struct  DBNUMERIC
 
struct  DBMONEY
 
struct  DBMONEY4
 
struct  DBDATETIME
 
struct  DBDATETIME4
 
struct  DBDATETIMEALL
 
struct  dbtypeinfo
 
struct  dbstring
 
struct  DBCOL
 
struct  DBCOL2
 
struct  tds_microsoft_dbdaterec
 
struct  tds_sybase_dbdaterec
 
struct  tds_microsoft_dbdaterec2
 
struct  tds_sybase_dbdaterec2
 

Macros

#define NCBI_FTDS_RENAME_SYBDB   1
 
#define TDS_STATIC_CAST(type, a)   ((type)(a))
 
#define FALSE   0
 
#define TRUE   1
 
#define DBSAVE   1
 
#define DBNOSAVE   0
 
#define DBNOERR   -1
 
#define INT_EXIT   0
 
#define INT_CONTINUE   1
 
#define INT_CANCEL   2
 
#define INT_TIMEOUT   3
 
#define DBMAXNUMLEN   33
 
#define DBMAXNAME   128
 
#define DBVERSION_UNKNOWN   0
 DBVERSION_xxx are used with dbsetversion() More...
 
#define DBVERSION_46   1
 
#define DBVERSION_100   2
 
#define DBVERSION_42   3
 
#define DBVERSION_70   4
 
#define DBVERSION_71   5
 
#define DBVERSION_72   6
 
#define DBVERSION_73   7
 
#define DBVERSION_74   8
 
#define DBVER42   DBVERSION_42
 
#define DBVER60   DBVERSION_70 /* our best approximation */
 
#define DBTDS_UNKNOWN   0
 DBTDS_xxx are returned by DBTDS() The integer values of the constants are poorly chosen. More...
 
#define DBTDS_2_0   1 /* pre 4.0 SQL Server */
 
#define DBTDS_3_4   2 /* Microsoft SQL Server (3.0) */
 
#define DBTDS_4_0   3 /* 4.0 SQL Server */
 
#define DBTDS_4_2   4 /* 4.2 SQL Server */
 
#define DBTDS_4_6   5 /* 2.0 OpenServer and 4.6 SQL Server. */
 
#define DBTDS_4_9_5   6 /* 4.9.5 (NCR) SQL Server */
 
#define DBTDS_5_0   7 /* 5.0 SQL Server */
 
#define DBTDS_7_0   8 /* Microsoft SQL Server 7.0 */
 
#define DBTDS_8_0   9 /* Microsoft SQL Server 2000 */
 
#define DBTDS_9_0   10 /* Microsoft SQL Server 2005 */
 
#define DBTDS_7_1   9 /* Microsoft SQL Server 2000 */
 
#define DBTDS_7_2   10 /* Microsoft SQL Server 2005 */
 
#define DBTDS_7_3   11 /* Microsoft SQL Server 2008 */
 
#define DBTDS_7_4   12 /* Microsoft SQL Server 2012/2014 */
 
#define DBTXPLEN   16
 
#define BCPMAXERRS   1
 
#define BCPFIRST   2
 
#define BCPLAST   3
 
#define BCPBATCH   4
 
#define BCPKEEPIDENTITY   8
 
#define BCPLABELED   5
 
#define BCPHINTS   6
 
#define DBCMDNONE   0
 
#define DBCMDPEND   1
 
#define DBCMDSENT   2
 
#define SYBCHAR   SYBCHAR
 
#define SYBVARCHAR   SYBVARCHAR
 
#define SYBINTN   SYBINTN
 
#define SYBINT1   SYBINT1
 
#define SYBINT2   SYBINT2
 
#define SYBINT4   SYBINT4
 
#define SYBINT8   SYBINT8
 
#define SYBFLT8   SYBFLT8
 
#define SYBDATETIME   SYBDATETIME
 
#define SYBBIT   SYBBIT
 
#define SYBBITN   SYBBITN
 
#define SYBTEXT   SYBTEXT
 
#define SYBNTEXT   SYBNTEXT
 
#define SYBIMAGE   SYBIMAGE
 
#define SYBMONEY4   SYBMONEY4
 
#define SYBMONEY   SYBMONEY
 
#define SYBDATETIME4   SYBDATETIME4
 
#define SYBREAL   SYBREAL
 
#define SYBBINARY   SYBBINARY
 
#define SYBVOID   SYBVOID
 
#define SYBVARBINARY   SYBVARBINARY
 
#define SYBNUMERIC   SYBNUMERIC
 
#define SYBDECIMAL   SYBDECIMAL
 
#define SYBFLTN   SYBFLTN
 
#define SYBMONEYN   SYBMONEYN
 
#define SYBDATETIMN   SYBDATETIMN
 
#define SYBNVARCHAR   SYBNVARCHAR
 
#define SYBDATE   SYBDATE
 
#define SYBTIME   SYBTIME
 
#define SYBBIGDATETIME   SYBBIGDATETIME
 
#define SYBBIGTIME   SYBBIGTIME
 
#define SYBMSDATE   SYBMSDATE
 
#define SYBMSTIME   SYBMSTIME
 
#define SYBMSDATETIME2   SYBMSDATETIME2
 
#define SYBMSDATETIMEOFFSET   SYBMSDATETIMEOFFSET
 
#define SYBAOPCNT   0x4b
 
#define SYBAOPCNTU   0x4c
 
#define SYBAOPSUM   0x4d
 
#define SYBAOPSUMU   0x4e
 
#define SYBAOPAVG   0x4f
 
#define SYBAOPAVGU   0x50
 
#define SYBAOPMIN   0x51
 
#define SYBAOPMAX   0x52
 
#define SYBAOPCNT_BIG   0x09
 
#define SYBAOPSTDEV   0x30
 
#define SYBAOPSTDEVP   0x31
 
#define SYBAOPVAR   0x32
 
#define SYBAOPVARP   0x33
 
#define SYBAOPCHECKSUM_AGG   0x72
 
#define DBPARSEONLY   0
 
#define DBESTIMATE   1
 
#define DBSHOWPLAN   2
 
#define DBNOEXEC   3
 
#define DBARITHIGNORE   4
 
#define DBNOCOUNT   5
 
#define DBARITHABORT   6
 
#define DBTEXTLIMIT   7
 
#define DBBROWSE   8
 
#define DBOFFSET   9
 
#define DBSTAT   10
 
#define DBERRLVL   11
 
#define DBCONFIRM   12
 
#define DBSTORPROCID   13
 
#define DBBUFFER   14
 
#define DBNOAUTOFREE   15
 
#define DBROWCOUNT   16
 
#define DBTEXTSIZE   17
 
#define DBNATLANG   18
 
#define DBDATEFORMAT   19
 
#define DBPRPAD   20
 
#define DBPRCOLSEP   21
 
#define DBPRLINELEN   22
 
#define DBPRLINESEP   23
 
#define DBLFCONVERT   24
 
#define DBDATEFIRST   25
 
#define DBCHAINXACTS   26
 
#define DBFIPSFLAG   27
 
#define DBISOLATION   28
 
#define DBAUTH   29
 
#define DBIDENTITY   30
 
#define DBNOIDCOL   31
 
#define DBDATESHORT   32
 
#define DBCLIENTCURSORS   33
 
#define DBSETTIME   34
 
#define DBQUOTEDIDENT   35
 
#define DBNUMOPTIONS   36
 
#define DBPADOFF   0
 
#define DBPADON   1
 
#define OFF   0
 
#define ON   1
 
#define NOSUCHOPTION   2
 
#define MAXOPTTEXT   32
 
#define DBRESULT   1
 
#define DBNOTIFICATION   2
 
#define DBTIMEOUT   3
 
#define DBINTERRUPT   4
 
#define DBTXTSLEN   8
 
#define CHARBIND   0
 
#define STRINGBIND   1
 
#define NTBSTRINGBIND   2
 
#define VARYCHARBIND   3
 
#define VARYBINBIND   4
 
#define TINYBIND   6
 
#define SMALLBIND   7
 
#define INTBIND   8
 
#define FLT8BIND   9
 
#define REALBIND   10
 
#define DATETIMEBIND   11
 
#define SMALLDATETIMEBIND   12
 
#define MONEYBIND   13
 
#define SMALLMONEYBIND   14
 
#define BINARYBIND   15
 
#define BITBIND   16
 
#define NUMERICBIND   17
 
#define DECIMALBIND   18
 
#define SRCNUMERICBIND   19
 
#define SRCDECIMALBIND   20
 
#define DATEBIND   21
 
#define TIMEBIND   22
 
#define BIGDATETIMEBIND   23
 
#define BIGTIMEBIND   24
 
#define BIGINTBIND   30
 
#define DATETIME2BIND   31
 
#define MAXBINDTYPES   32 /* keep last */
 
#define DBPRCOLSEP   21
 
#define DBPRLINELEN   22
 
#define DBRPCNORETURN   0
 
#define DBRPCRETURN   1
 
#define DBRPCDEFAULT   2
 
#define REG_ROW   -1
 
#define MORE_ROWS   -1
 
#define NO_MORE_ROWS   -2
 
#define BUF_FULL   -3
 
#define NO_MORE_RESULTS   2
 
#define SUCCEED   1
 
#define FAIL   0
 
#define DB_IN   1
 
#define DB_OUT   2
 
#define DB_QUERYOUT   3
 
#define DBSINGLE   0
 
#define DBDOUBLE   1
 
#define DBBOTH   2
 
#define DBRPCRECOMPILE   TDS_STATIC_CAST(DBSMALLINT, 0x0001)
 
#define DBRPCRESET   TDS_STATIC_CAST(DBSMALLINT, 0x0002)
 
#define DBRPCCURSOR   TDS_STATIC_CAST(DBSMALLINT, 0x0008)
 
#define DBCMDROW(x)   dbcmdrow((x))
 
#define DBCOUNT(x)   dbcount((x))
 
#define DBCURCMD(x)   dbcurcmd((x))
 
#define DBCURROW(x)   dbcurrow((x))
 
#define DBDEAD(x)   dbdead((x))
 
#define DBFIRSTROW(x)   dbfirstrow((x))
 
#define DBGETTIME   dbgettime
 
#define DBIORDESC(x)   dbiordesc((x))
 
#define DBIOWDESC(x)   dbiowdesc((x))
 
#define DBISAVAIL(x)   dbisavail((x))
 
#define DBLASTROW(x)   dblastrow((x))
 
#define DBMORECMDS(x)   dbmorecmds((x))
 
#define dbopen(x, y)   tdsdbopen((x),(y), 0)
 
#define DBROWS(x)   dbrows((x))
 
#define DBROWTYPE(x)   dbrowtype((x))
 
#define SYBEVERDOWN   100 /* TDS version downgraded . */
 
#define SYBEICONVIU   2400 /* Some character(s) could not be converted into client's character set. */
 
#define SYBEICONVAVAIL   2401 /* Character set conversion is not available between client character set '%.*s' and server character set '%.*s'.*/
 
#define SYBEICONVO   2402 /* Error converting characters into server's character set. Some character(s) could not be converted.*/
 
#define SYBEICONVI   2403 /* Some character(s) could not be converted into client's character set. Unconverted bytes were changed to question marks ('?').*/
 
#define SYBEICONV2BIG   2404 /* Buffer overflow converting characters from client into server's character set.*/
 
#define SYBETDSVER   2410 /* Cannot bcp with TDSVER < 5.0 */
 
#define SYBEPORT   2500 /* Both port and instance specified */
 
#define SYBESYNC   20001 /* Read attempted while out of synchronization with SQL Server. */
 
#define SYBEFCON   20002 /* SQL Server connection failed. */
 
#define SYBETIME   20003 /* SQL Server connection timed out. */
 
#define SYBEREAD   20004 /* Read from SQL Server failed. */
 
#define SYBEBUFL   20005 /* DB-LIBRARY internal error - send buffer length corrupted. */
 
#define SYBEWRIT   20006 /* Write to SQL Server failed. */
 
#define SYBEVMS   20007 /* Sendflush: VMS I/O error. */
 
#define SYBESOCK   20008 /* Unable to open socket */
 
#define SYBECONN   20009 /* Unable to connect socket -- SQL Server is unavailable or does not exist. */
 
#define SYBEMEM   20010 /* Unable to allocate sufficient memory */
 
#define SYBEDBPS   20011 /* Maximum number of DBPROCESSes already allocated. */
 
#define SYBEINTF   20012 /* Server name not found in interface file */
 
#define SYBEUHST   20013 /* Unknown host machine name */
 
#define SYBEPWD   20014 /* Incorrect password. */
 
#define SYBEOPIN   20015 /* Could not open interface file. */
 
#define SYBEINLN   20016 /* Interface file: unexpected end-of-line. */
 
#define SYBESEOF   20017 /* Unexpected EOF from SQL Server. */
 
#define SYBESMSG   20018 /* General SQL Server error: Check messages from the SQL Server. */
 
#define SYBERPND   20019 /* Attempt to initiate a new SQL Server operation with results pending. */
 
#define SYBEBTOK   20020 /* Bad token from SQL Server: Data-stream processing out of sync. */
 
#define SYBEITIM   20021 /* Illegal timeout value specified. */
 
#define SYBEOOB   20022 /* Error in sending out-of-band data to SQL Server. */
 
#define SYBEBTYP   20023 /* Unknown bind type passed to DB-LIBRARY function. */
 
#define SYBEBNCR   20024 /* Attempt to bind user variable to a non-existent compute row. */
 
#define SYBEIICL   20025 /* Illegal integer column length returned by SQL Server. Legal integer lengths are 1, 2, and 4 bytes. */
 
#define SYBECNOR   20026 /* Column number out of range. */
 
#define SYBENPRM   20027 /* NULL parameter not allowed for this dboption. */
 
#define SYBEUVDT   20028 /* Unknown variable-length datatype encountered. */
 
#define SYBEUFDT   20029 /* Unknown fixed-length datatype encountered. */
 
#define SYBEWAID   20030 /* DB-LIBRARY internal error: ALTFMT following ALTNAME has wrong id. */
 
#define SYBECDNS   20031 /* Datastream indicates that a compute column is derived from a non-existent select-list member. */
 
#define SYBEABNC   20032 /* Attempt to bind to a non-existent column. */
 
#define SYBEABMT   20033 /* User attempted a dbbind() with mismatched column and variable types. */
 
#define SYBEABNP   20034 /* Attempt to bind using NULL pointers. */
 
#define SYBEAAMT   20035 /* User attempted a dbaltbind() with mismatched column and variable types. */
 
#define SYBENXID   20036 /* The Server did not grant us a distributed-transaction ID. */
 
#define SYBERXID   20037 /* The Server did not recognize our distributed-transaction ID. */
 
#define SYBEICN   20038 /* Invalid computeid or compute column number. */
 
#define SYBENMOB   20039 /* No such member of 'order by' clause. */
 
#define SYBEAPUT   20040 /* Attempt to print unknown token. */
 
#define SYBEASNL   20041 /* Attempt to set fields in a null loginrec. */
 
#define SYBENTLL   20042 /* Name too long for loginrec field. */
 
#define SYBEASUL   20043 /* Attempt to set unknown loginrec field. */
 
#define SYBERDNR   20044 /* Attempt to retrieve data from a non-existent row. */
 
#define SYBENSIP   20045 /* Negative starting index passed to dbstrcpy(). */
 
#define SYBEABNV   20046 /* Attempt to bind to a NULL program variable. */
 
#define SYBEDDNE   20047 /* DBPROCESS is dead or not enabled. */
 
#define SYBECUFL   20048 /* Data-conversion resulted in underflow. */
 
#define SYBECOFL   20049 /* Data-conversion resulted in overflow. */
 
#define SYBECSYN   20050 /* Attempt to convert data stopped by syntax error in source field. */
 
#define SYBECLPR   20051 /* Data-conversion resulted in loss of precision. */
 
#define SYBECNOV   20052 /* Attempt to set variable to NULL resulted in overflow. */
 
#define SYBERDCN   20053 /* Requested data-conversion does not exist. */
 
#define SYBESFOV   20054 /* dbsafestr() overflowed its destination buffer. */
 
#define SYBEUNT   20055 /* Unknown network type found in interface file. */
 
#define SYBECLOS   20056 /* Error in closing network connection. */
 
#define SYBEUAVE   20057 /* Unable to allocate VMS event flag. */
 
#define SYBEUSCT   20058 /* Unable to set communications timer. */
 
#define SYBEEQVA   20059 /* Error in queueing VMS AST routine. */
 
#define SYBEUDTY   20060 /* Unknown datatype encountered. */
 
#define SYBETSIT   20061 /* Attempt to call dbtsput() with an invalid timestamp. */
 
#define SYBEAUTN   20062 /* Attempt to update the timestamp of a table which has no timestamp column. */
 
#define SYBEBDIO   20063 /* Bad bulk-copy direction. Must be either IN or OUT. */
 
#define SYBEBCNT   20064 /* Attempt to use Bulk Copy with a non-existent Server table. */
 
#define SYBEIFNB   20065 /* Illegal field number passed to bcp_control(). */
 
#define SYBETTS   20066 /* 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. */
 
#define SYBEKBCO   20067 /* 1000 rows successfully bulk-copied to host-file. */
 
#define SYBEBBCI   20068 /* Batch successfully bulk-copied to SQL Server. */
 
#define SYBEKBCI   20069 /* Bcp: 1000 rows sent to SQL Server. */
 
#define SYBEBCRE   20070 /* I/O error while reading bcp data-file. */
 
#define SYBETPTN   20071 /* Syntax error: only two periods are permitted in table names. */
 
#define SYBEBCWE   20072 /* I/O error while writing bcp data-file. */
 
#define SYBEBCNN   20073 /* Attempt to bulk-copy a NULL value into Server column %d, which does not accept NULL values. */
 
#define SYBEBCOR   20074 /* Attempt to bulk-copy an oversized row to the SQL Server. */
 
#define SYBEBCIS   20075 /* Attempt to bulk-copy an illegally-sized column value to the SQL Server. */
 
#define SYBEBCPI   20076 /* bcp_init() must be called before any other bcp routines. */
 
#define SYBEBCPN   20077 /* 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. */
 
#define SYBEBCPB   20078 /* bcp_bind(), bcp_moretext() and bcp_sendrow() may NOT be used after bcp_init() has been passed a non-NULL input file name. */
 
#define SYBEVDPT   20079 /* For bulk copy, all variable-length data must have either a length-prefix or a terminator specified. */
 
#define SYBEBIVI   20080 /* bcp_columns(), bcp_colfmt() and bcp_colfmt_ps() may be used only after bcp_init() has been passed a valid input file. */
 
#define SYBEBCBC   20081 /* bcp_columns() must be called before bcp_colfmt() and bcp_colfmt_ps(). */
 
#define SYBEBCFO   20082 /* Bcp host-files must contain at least one column. */
 
#define SYBEBCVH   20083 /* bcp_exec() may be called only after bcp_init() has been passed a valid host file. */
 
#define SYBEBCUO   20084 /* Bcp: Unable to open host data-file. */
 
#define SYBEBCUC   20085 /* Bcp: Unable to close host data-file. */
 
#define SYBEBUOE   20086 /* Bcp: Unable to open error-file. */
 
#define SYBEBUCE   20087 /* Bcp: Unable to close error-file. */
 
#define SYBEBWEF   20088 /* I/O error while writing bcp error-file. */
 
#define SYBEASTF   20089 /* VMS: Unable to setmode for control_c ast. */
 
#define SYBEUACS   20090 /* VMS: Unable to assign channel to sys$command. */
 
#define SYBEASEC   20091 /* Attempt to send an empty command buffer to the SQL Server. */
 
#define SYBETMTD   20092 /* Attempt to send too much TEXT data via the dbmoretext() call. */
 
#define SYBENTTN   20093 /* Attempt to use dbtxtsput() to put a new text-timestamp into a non-existent data row. */
 
#define SYBEDNTI   20094 /* Attempt to use dbtxtsput() to put a new text-timestamp into a column whose datatype is neither SYBTEXT nor SYBIMAGE. */
 
#define SYBEBTMT   20095 /* Attempt to send too much TEXT data via the bcp_moretext() call. */
 
#define SYBEORPF   20096 /* Attempt to set remote password would overflow the login-record's remote-password field. */
 
#define SYBEUVBF   20097 /* Attempt to read an unknown version of BCP format-file. */
 
#define SYBEBUOF   20098 /* Bcp: Unable to open format-file. */
 
#define SYBEBUCF   20099 /* Bcp: Unable to close format-file. */
 
#define SYBEBRFF   20100 /* I/O error while reading bcp format-file. */
 
#define SYBEBWFF   20101 /* I/O error while writing bcp format-file. */
 
#define SYBEBUDF   20102 /* Bcp: Unrecognized datatype found in format-file. */
 
#define SYBEBIHC   20103 /* Incorrect host-column number found in bcp format-file. */
 
#define SYBEBEOF   20104 /* Unexpected EOF encountered in BCP data-file. */
 
#define SYBEBCNL   20105 /* Negative length-prefix found in BCP data-file. */
 
#define SYBEBCSI   20106 /* Host-file columns may be skipped only when copying INto the Server. */
 
#define SYBEBCIT   20107 /* It's illegal to use BCP terminators with program variables other than SYBCHAR, SYBBINARY, SYBTEXT, or SYBIMAGE. */
 
#define SYBEBCSA   20108 /* The BCP hostfile '%s' contains only %ld rows. Skipping all of these rows is not allowed. */
 
#define SYBENULL   20109 /* NULL DBPROCESS pointer passed to DB-Library. */
 
#define SYBEUNAM   20110 /* Unable to get current username from operating system. */
 
#define SYBEBCRO   20111 /* The BCP hostfile '%s' contains only %ld rows. It was impossible to read the requested %ld rows. */
 
#define SYBEMPLL   20112 /* Attempt to set maximum number of DBPROCESSes lower than 1. */
 
#define SYBERPIL   20113 /* It is illegal to pass -1 to dbrpcparam() for the datalen of parameters which are of type SYBCHAR, SYBVARCHAR, SYBBINARY, or SYBVARBINARY. */
 
#define SYBERPUL   20114 /* 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. */
 
#define SYBEUNOP   20115 /* Unknown option passed to dbsetopt(). */
 
#define SYBECRNC   20116 /* The current row is not a result of compute clause %d, so it is illegal to attempt to extract that data from this row. */
 
#define SYBERTCC   20117 /* dbreadtext() may not be used to receive the results of a query which contains a COMPUTE clause. */
 
#define SYBERTSC   20118 /* dbreadtext() may only be used to receive the results of a query which contains a single result column. */
 
#define SYBEUCRR   20119 /* Internal software error: Unknown connection result reported by * dbpasswd(). */
 
#define SYBERPNA   20120 /* The RPC facility is available only when using a SQL Server whose version number is 4.0 or greater. */
 
#define SYBEOPNA   20121 /* The text/image facility is available only when using a SQL Server whose version number is 4.0 or greater. */
 
#define SYBEFGTL   20122 /* Bcp: Row number of the first row to be copied cannot be greater than the row number for the last row to be copied. */
 
#define SYBECWLL   20123 /* Attempt to set column width less than 1. */
 
#define SYBEUFDS   20124 /* Unrecognized format encountered in dbstrbuild(). */
 
#define SYBEUCPT   20125 /* Unrecognized custom-format parameter-type encountered in dbstrbuild(). */
 
#define SYBETMCF   20126 /* Attempt to install too many custom formats via dbfmtinstall(). */
 
#define SYBEAICF   20127 /* Error in attempting to install custom format. */
 
#define SYBEADST   20128 /* Error in attempting to determine the size of a pair of translation tables. */
 
#define SYBEALTT   20129 /* Error in attempting to load a pair of translation tables. */
 
#define SYBEAPCT   20130 /* Error in attempting to perform a character-set translation. */
 
#define SYBEXOCI   20131 /* A character-set translation overflowed its destination buffer while using bcp to copy data from a host-file to the SQL Server. */
 
#define SYBEFSHD   20132 /* Error in attempting to find the Sybase home directory. */
 
#define SYBEAOLF   20133 /* Error in attempting to open a localization file. */
 
#define SYBEARDI   20134 /* Error in attempting to read datetime information from a localization file. */
 
#define SYBEURCI   20135 /* Unable to read copyright information from the dblib localization file. */
 
#define SYBEARDL   20136 /* Error in attempting to read the dblib.loc localization file. */
 
#define SYBEURMI   20137 /* Unable to read money-format information from the dblib localization file. */
 
#define SYBEUREM   20138 /* Unable to read error mnemonic from the dblib localization file. */
 
#define SYBEURES   20139 /* Unable to read error string from the dblib localization file. */
 
#define SYBEUREI   20140 /* Unable to read error information from the dblib localization file. */
 
#define SYBEOREN   20141 /* Warning: an out-of-range error-number was encountered in dblib.loc. The maximum permissible error-number is defined as DBERRCOUNT in sybdb.h. */
 
#define SYBEISOI   20142 /* Invalid sort-order information found. */
 
#define SYBEIDCL   20143 /* Illegal datetime column length returned by DataServer. Legal datetime lengths are 4 and 8 bytes. */
 
#define SYBEIMCL   20144 /* Illegal money column length returned by DataServer. Legal money lengths are 4 and 8 bytes. */
 
#define SYBEIFCL   20145 /* Illegal floating-point column length returned by DataServer. Legal floating-point lengths are 4 and 8 bytes. */
 
#define SYBEUTDS   20146 /* Unrecognized TDS version received from SQL Server. */
 
#define SYBEBUFF   20147 /* Bcp: Unable to create format-file. */
 
#define SYBEACNV   20148 /* Attemp to do conversion with NULL destination variable. */
 
#define SYBEDPOR   20149 /* Out-of-range datepart constant. */
 
#define SYBENDC   20150 /* Cannot have negative component in date in numeric form. */
 
#define SYBEMVOR   20151 /* Month values must be between 1 and 12. */
 
#define SYBEDVOR   20152 /* Day values must be between 1 and 7. */
 
#define SYBENBVP   20153 /* Cannot pass dbsetnull() a NULL bindval pointer. */
 
#define SYBESPID   20154 /* Called dbspid() with a NULL dbproc. */
 
#define SYBENDTP   20155 /* Called dbdatecrack() with a NULL datetime parameter. */
 
#define SYBEXTN   20156 /* The xlt_todisp and xlt_tosrv parameters to dbfree_xlate() were NULL. */
 
#define SYBEXTDN   20157 /* Warning: the xlt_todisp parameter to dbfree_xlate() was NULL. The space associated with the xlt_tosrv parameter has been freed. */
 
#define SYBEXTSN   20158 /* Warning: the xlt_tosrv parameter to dbfree_xlate() was NULL. The space associated with the xlt_todisp parameter has been freed. */
 
#define SYBENUM   20159 /* Incorrect number of arguments given to DB-Library. */
 
#define SYBETYPE   20160 /* Invalid argument type given to DB-Library. */
 
#define SYBEGENOS   20161 /* General Operating System Error. */
 
#define SYBEPAGE   20162 /* wrong resource type or length given for dbpage() operation. */
 
#define SYBEOPTNO   20163 /* Option is not allowed or is unreconized */
 
#define SYBEETD   20164 /* Failure to send the expected amount of TEXT or IMAGE data via dbmoretext(). */
 
#define SYBERTYPE   20165 /* Invalid resource type given to DB-Library. */
 
#define SYBERFILE   20166 /* "Can not open resource file." */
 
#define SYBEFMODE   20167 /* Read/Write/Append mode denied on file. */
 
#define SYBESLCT   20168 /* Could not select or copy field specified */
 
#define SYBEZTXT   20169 /* Attempt to send zero length TEXT or IMAGE to dataserver via dbwritetext(). */
 
#define SYBENTST   20170 /* The file being opened must be a stream_lf. */
 
#define SYBEOSSL   20171 /* Operating system login level not in range of Secure SQL Server */
 
#define SYBEESSL   20172 /* Login security level entered does not agree with operating system level */
 
#define SYBENLNL   20173 /* Program not linked with specified network library. */
 
#define SYBENHAN   20174 /* called dbrecvpassthru() with a NULL handler parameter. */
 
#define SYBENBUF   20175 /* called dbsendpassthru() with a NULL buf pointer. */
 
#define SYBENULP   20176 /* Called %s with a NULL %s parameter. */
 
#define SYBENOTI   20177 /* No event handler installed. */
 
#define SYBEEVOP   20178 /* Called dbregwatch() with a bad options parameter. */
 
#define SYBENEHA   20179 /* Called dbreghandle() with a NULL handler parameter. */
 
#define SYBETRAN   20180 /* DBPROCESS is being used for another transaction. */
 
#define SYBEEVST   20181 /* Must initiate a transaction before calling dbregparam(). */
 
#define SYBEEINI   20182 /* Must call dbreginit() before dbregraise(). */
 
#define SYBEECRT   20183 /* Must call dbregdefine() before dbregcreate(). */
 
#define SYBEECAN   20184 /* Attempted to cancel unrequested event notification. */
 
#define SYBEEUNR   20185 /* Unsolicited event notification received. */
 
#define SYBERPCS   20186 /* Must call dbrpcinit() before dbrpcparam(). */
 
#define SYBETPAR   20187 /* No SYBTEXT or SYBIMAGE parameters were defined. */
 
#define SYBETEXS   20188 /* Called dbmoretext() with a bad size parameter. */
 
#define SYBETRAC   20189 /* Attempted to turn off a trace flag that was not on. */
 
#define SYBETRAS   20190 /* DB-Library internal error - trace structure not found. */
 
#define SYBEPRTF   20191 /* dbtracestring() may only be called from a printfunc(). */
 
#define SYBETRSN   20192 /* Bad numbytes parameter passed to dbtracestring(). */
 
#define SYBEBPKS   20193 /* In DBSETLPACKET(), the packet size parameter must be between 0 and 999999. */
 
#define SYBEIPV   20194 /* %1! is an illegal value for the %2! parameter of %3!. */
 
#define SYBEMOV   20195 /* Money arithmetic resulted in overflow in function %1!. */
 
#define SYBEDIVZ   20196 /* Attempt to divide by $0.00 in function %1!. */
 
#define SYBEASTL   20197 /* Synchronous I/O attempted at AST level. */
 
#define SYBESEFA   20198 /* DBSETNOTIFS cannot be called if connections are present. */
 
#define SYBEPOLL   20199 /* Only one dbpoll() can be active at a time. */
 
#define SYBENOEV   20200 /* dbpoll() cannot be called if registered procedure notifications have been disabled. */
 
#define SYBEBADPK   20201 /* Packet size of %1! not supported. -- size of %2! used instead. */
 
#define SYBESECURE   20202 /* Secure Server function not supported in this version. */
 
#define SYBECAP   20203 /* DB-Library capabilities not accepted by the Server. */
 
#define SYBEFUNC   20204 /* Functionality not supported at the specified version level. */
 
#define SYBERESP   20205 /* Response function address passed to dbresponse() must be non-NULL. */
 
#define SYBEIVERS   20206 /* Illegal version level specified. */
 
#define SYBEONCE   20207 /* Function can be called only once. */
 
#define SYBERPNULL   20208 /* value parameter for dbprcparam() can be NULL, only if the datalen parameter is 0 */
 
#define SYBERPTXTIM   20209 /* RPC parameters cannot be of type Text/Image. */
 
#define SYBENEG   20210 /* Negotiated login attempt failed. */
 
#define SYBELBLEN   20211 /* Security labels should be less than 256 characters long. */
 
#define SYBEUMSG   20212 /* Unknown message-id in MSG datastream. */
 
#define SYBECAPTYP   20213 /* Unexpected capability type in CAPABILITY datastream. */
 
#define SYBEBNUM   20214 /* Bad numbytes parameter passed to dbstrcpy() */
 
#define SYBEBBL   20215 /* Bad bindlen parameter passed to dbsetnull() */
 
#define SYBEBPREC   20216 /* Illegal precision specified */
 
#define SYBEBSCALE   20217 /* Illegal scale specified */
 
#define SYBECDOMAIN   20218 /* Source field value is not within the domain of legal values. */
 
#define SYBECINTERNAL   20219 /* Internal Conversion error. */
 
#define SYBEBTYPSRV   20220 /* Datatype is not supported by the server. */
 
#define SYBEBCSET   20221 /* Unknown character-set encountered." */
 
#define SYBEFENC   20222 /* Password Encryption failed." */
 
#define SYBEFRES   20223 /* Challenge-Response function failed.", */
 
#define SYBEISRVPREC   20224 /* Illegal precision value returned by the server. */
 
#define SYBEISRVSCL   20225 /* Illegal scale value returned by the server. */
 
#define SYBEINUMCL   20226 /* Invalid numeric column length returned by the server. */
 
#define SYBEIDECCL   20227 /* Invalid decimal column length returned by the server. */
 
#define SYBEBCMTXT   20228 /* bcp_moretext() may be used only when there is at least one text or image column in the server table. */
 
#define SYBEBCPREC   20229 /* Column %1!: Illegal precision value encountered. */
 
#define SYBEBCBNPR   20230 /* bcp_bind(): if varaddr is NULL, prefixlen must be 0 and no terminator should be specified. */
 
#define SYBEBCBNTYP   20231 /* 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. */
 
#define SYBEBCSNTYP   20232 /* 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. */
 
#define SYBEBCPCTYP   20233 /* bcp_colfmt(): If table_colnum is 0, host_type cannot be 0. */
 
#define SYBEBCVLEN   20234 /* varlen should be greater than or equal to -1. */
 
#define SYBEBCHLEN   20235 /* host_collen should be greater than or equal to -1. */
 
#define SYBEBCBPREF   20236 /* Illegal prefix length. Legal values are 0, 1, 2 or 4. */
 
#define SYBEBCPREF   20237 /* Illegal prefix length. Legal values are -1, 0, 1, 2 or 4. */
 
#define SYBEBCITBNM   20238 /* bcp_init(): tblname parameter cannot be NULL. */
 
#define SYBEBCITBLEN   20239 /* bcp_init(): tblname parameter is too long. */
 
#define SYBEBCSNDROW   20240 /* bcp_sendrow() may NOT be called unless all text data for the previous row has been sent using bcp_moretext(). */
 
#define SYBEBPROCOL   20241 /* bcp protocol error: returned column count differs from the actual number of columns received. */
 
#define SYBEBPRODEF   20242 /* bcp protocol error: expected default information and got none. */
 
#define SYBEBPRONUMDEF   20243 /* bcp protocol error: expected number of defaults differs from the actual number of defaults received. */
 
#define SYBEBPRODEFID   20244 /* bcp protocol error: default column id and actual column id are not same */
 
#define SYBEBPRONODEF   20245 /* bcp protocol error: default value received for column that does not have default. */
 
#define SYBEBPRODEFTYP   20246 /* bcp protocol error: default value datatype differs from column datatype. */
 
#define SYBEBPROEXTDEF   20247 /* bcp protocol error: more than one row of default information received. */
 
#define SYBEBPROEXTRES   20248 /* bcp protocol error: unexpected set of results received. */
 
#define SYBEBPROBADDEF   20249 /* bcp protocol error: illegal default column id received. */
 
#define SYBEBPROBADTYP   20250 /* bcp protocol error: unknown column datatype. */
 
#define SYBEBPROBADLEN   20251 /* bcp protocol error: illegal datatype length received. */
 
#define SYBEBPROBADPREC   20252 /* bcp protocol error: illegal precision value received. */
 
#define SYBEBPROBADSCL   20253 /* bcp protocol error: illegal scale value received. */
 
#define SYBEBADTYPE   20254 /* Illegal value for type parameter given to %1!. */
 
#define SYBECRSNORES   20255 /* Cursor statement generated no results. */
 
#define SYBECRSNOIND   20256 /* One of the tables involved in the cursor statement does not have a unique index. */
 
#define SYBECRSVIEW   20257 /* A view cannot be joined with another table or a view in a cursor statement. */
 
#define SYBECRSVIIND   20258 /* The view used in the cursor statement does not include all the unique index columns of the underlying tables. */
 
#define SYBECRSORD   20259 /* Only fully keyset driven cursors can have 'order by', ' group by', or 'having' phrases. */
 
#define SYBECRSBUFR   20260 /* Row buffering should not be turned on when using cursor APIs. */
 
#define SYBECRSNOFREE   20261 /* The DBNOAUTOFREE option should not be turned on when using cursor APIs. */
 
#define SYBECRSDIS   20262 /* Cursor statement contains one of the disallowed phrases 'compute', 'union', 'for browse', or 'select into'. */
 
#define SYBECRSAGR   20263 /* Aggregate functions are not allowed in a cursor statement. */
 
#define SYBECRSFRAND   20264 /* Fetch types RANDOM and RELATIVE can only be used within the keyset of keyset driven cursors. */
 
#define SYBECRSFLAST   20265 /* Fetch type LAST requires fully keyset driven cursors. */
 
#define SYBECRSBROL   20266 /* Backward scrolling cannot be used in a forward scrolling cursor. */
 
#define SYBECRSFROWN   20267 /* Row number to be fetched is outside valid range. */
 
#define SYBECRSBSKEY   20268 /* Keyset cannot be scrolled backward in mixed cursors with a previous fetch type. */
 
#define SYBECRSRO   20269 /* Data locking or modifications cannot be made in a READONLY cursor. */
 
#define SYBECRSNOCOUNT   20270 /* The DBNOCOUNT option should not be turned on when doing updates or deletes with dbcursor(). */
 
#define SYBECRSTAB   20271 /* Table name must be determined in operations involving data locking or modifications. */
 
#define SYBECRSUPDNB   20272 /* Update or insert operations cannot use bind variables when binding type is NOBIND. */
 
#define SYBECRSNOWHERE   20273 /* A WHERE clause is not allowed in a cursor update or insert. */
 
#define SYBECRSSET   20274 /* A SET clause is required for a cursor update or insert. */
 
#define SYBECRSUPDTAB   20275 /* Update or insert operations using bind variables require single table cursors. */
 
#define SYBECRSNOUPD   20276 /* Update or delete operation did not affect any rows. */
 
#define SYBECRSINV   20277 /* Invalid cursor statement. */
 
#define SYBECRSNOKEYS   20278 /* The entire keyset must be defined for KEYSET cursors. */
 
#define SYBECRSNOBIND   20279 /* Cursor bind must be called prior to updating cursor */
 
#define SYBECRSFTYPE   20280 /* Unknown fetch type. */
 
#define SYBECRSINVALID   20281 /* The cursor handle is invalid. */
 
#define SYBECRSMROWS   20282 /* Multiple rows are returned, only one is expected. */
 
#define SYBECRSNROWS   20283 /* No rows returned, at least one is expected. */
 
#define SYBECRSNOLEN   20284 /* No unique index found. */
 
#define SYBECRSNOPTCC   20285 /* No OPTCC was found. */
 
#define SYBECRSNORDER   20286 /* The order of clauses must be from, where, and order by. */
 
#define SYBECRSNOTABLE   20287 /* Table name is NULL. */
 
#define SYBECRSNUNIQUE   20288 /* No unique keys associated with this view. */
 
#define SYBECRSVAR   20289 /* There is no valid address associated with this bind. */
 
#define SYBENOVALUE   20290 /* Security labels require both a name and a value */
 
#define SYBEVOIDRET   20291 /* Parameter of type SYBVOID cannot be a return parameter. */
 
#define SYBECLOSEIN   20292 /* Unable to close interface file. */
 
#define SYBEBOOL   20293 /* Boolean parameters must be TRUE or FALSE. */
 
#define SYBEBCPOPT   20294 /* The option cannot be called while a bulk copy operation is progress. */
 
#define SYBEERRLABEL   20295 /* An illegal value was returned from the security label handler. */
 
#define SYBEATTNACK   20296 /* Timed out waiting for server to acknowledge attention." */
 
#define SYBEBBFL   20297 /* -001- Batch failed in bulk-copy to SQL Server */
 
#define SYBEDCL   20298 /* -004- DCL Error */
 
#define SYBECS   20299 /* -004- cs context Error */
 
#define SYBEBULKINSERT   20599 /* cannot build bulk insert statement */
 
#define SYBECOLSIZE   22000 /* Invalid column information structure size */
 
#define DBTDS(a)   dbtds(a)
 
#define DBSETHOST   1
 
#define DBSETLHOST(x, y)   dbsetlname((x), (y), DBSETHOST)
 
#define dbsetlhost(x, y)   dbsetlname((x), (y), DBSETHOST)
 
#define DBSETUSER   2
 
#define DBSETLUSER(x, y)   dbsetlname((x), (y), DBSETUSER)
 
#define dbsetluser(x, y)   dbsetlname((x), (y), DBSETUSER)
 
#define DBSETPWD   3
 
#define DBSETLPWD(x, y)   dbsetlname((x), (y), DBSETPWD)
 
#define dbsetlpwd(x, y)   dbsetlname((x), (y), DBSETPWD)
 
#define DBSETAPP   5
 
#define DBSETLAPP(x, y)   dbsetlname((x), (y), DBSETAPP)
 
#define dbsetlapp(x, y)   dbsetlname((x), (y), DBSETAPP)
 
#define DBSETBCP   6
 
#define BCP_SETL(x, y)   dbsetlbool((x), (y), DBSETBCP)
 
#define DBSETLSECURE(x)   dbsetlbool((x), (1), DBSETBCP)
 
#define DBSETNATLANG   7
 
#define DBSETLNATLANG(x, y)   dbsetlname((x), (y), DBSETNATLANG)
 
#define dbsetlnatlang(x, y)   dbsetlname((x), (y), DBSETNATLANG)
 
#define DBSETCHARSET   10
 
#define DBSETLCHARSET(x, y)   dbsetlname((x), (y), DBSETCHARSET)
 
#define DBSETPACKET   11
 
#define DBSETLPACKET(x, y)   dbsetllong((x), (y), DBSETPACKET)
 
#define dbsetlpacket(x, y)   dbsetllong((x), (y), DBSETPACKET)
 
#define DBSETENCRYPT   12
 
#define DBSETLENCRYPT(x, y)   dbsetlbool((x), (y), DBSETENCRYPT)
 
#define DBSETLABELED   13
 
#define DBSETLLABELED(x, y)   dbsetlbool((x), (y), DBSETLABELED)
 
#define BCP_SETLABELED(x, y)   dbsetlbool((x), (y), DBSETLABELED)
 
#define DBSETDBNAME   14
 
#define DBSETLDBNAME(x, y)   dbsetlname((x), (y), DBSETDBNAME)
 
#define DBSETLVERSION(login, version)   dbsetlversion((login), (version))
 
#define DBSETNETWORKAUTH   101
 
#define DBSETLNETWORKAUTH(x, y)   dbsetlbool((x), (y), DBSETNETWORKAUTH)
 
#define DBSETMUTUALAUTH   102
 
#define DBSETLMUTUALAUTH(x, y)   dbsetlbool((x), (y), DBSETMUTUALAUTH)
 
#define DBSETSERVERPRINCIPAL   103
 
#define DBSETLSERVERPRINCIPAL(x, y)   dbsetlname((x), (y), DBSETSERVERPRINCIPAL)
 
#define DBSETUTF16   1001
 
#define DBSETLUTF16(x, y)   dbsetlbool((x), (y), DBSETUTF16)
 
#define DBSETNTLMV2   1002
 
#define DBSETLNTLMV2(x, y)   dbsetlbool((x), (y), DBSETNTLMV2)
 
#define DBSETREADONLY   1003
 
#define DBSETLREADONLY(x, y)   dbsetlbool((x), (y), DBSETREADONLY)
 
#define DBSETDELEGATION   1004
 
#define DBSETLDELEGATION(x, y)   dbsetlbool((x), (y), DBSETDELEGATION)
 

Typedefs

typedef int RETCODE
 
typedef void DBCURSOR
 
typedef void DBXLATE
 
typedef void DBSORTORDER
 
typedef void DBLOGINFO
 
typedef void * DBVOIDPTR
 
typedef short SHORT
 
typedef unsigned short USHORT
 
typedef int(* INTFUNCPTR) (void *,...)
 
typedef int(* DBWAITFUNC) (void)
 
typedef DBWAITFUNC(* DB_DBBUSY_FUNC) (void *dbproc)
 
typedef void(* DB_DBIDLE_FUNC) (DBWAITFUNC dfunc, void *dbproc)
 
typedef int(* DB_DBCHKINTR_FUNC) (void *dbproc)
 
typedef int(* DB_DBHNDLINTR_FUNC) (void *dbproc)
 
typedef int STATUS
 
typedef int BOOL
 
typedef unsigned char DBBOOL
 
typedef char DBCHAR
 
typedef unsigned char DBBIT
 
typedef unsigned char DBTINYINT
 
typedef int16_t DBSMALLINT
 
typedef int32_t DBINT
 
typedef int64_t DBBIGINT
 
typedef unsigned char DBBINARY
 
typedef float DBREAL
 
typedef double DBFLT8
 
typedef uint16_t DBUSMALLINT
 
typedef uint32_t DBUINT
 
typedef uint64_t DBUBIGINT
 
typedef DBNUMERIC DBDECIMAL
 
typedef struct tds_dblib_loginrec LOGINREC
 
typedef unsigned char BYTE
 
typedef struct dbtypeinfo DBTYPEINFO
 
typedef struct dbstring DBSTRING
 
typedef struct tds_dblib_dbprocess DBPROCESS
 
typedef struct tds_sybase_dbdaterec DBDATEREC
 
typedef struct tds_sybase_dbdaterec2 DBDATEREC2
 
typedef int(* EHANDLEFUNC) (DBPROCESS *dbproc, int severity, int dberr, int oserr, char *dberrstr, char *oserrstr)
 
typedef int(* MHANDLEFUNC) (DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity, char *msgtext, char *srvname, char *proc, int line)
 
typedef void(* DBPIVOT_FUNC) (struct col_t *output, const struct col_t *input)
 

Enumerations

enum  {
  SYBCHAR = 47 , SYBCHAR = 47 , SYBVARCHAR = 39 , SYBVARCHAR = 39 ,
  SYBINTN = 38 , SYBINTN = 38 , SYBINT1 = 48 , SYBINT1 = 48 ,
  SYBINT2 = 52 , SYBINT2 = 52 , SYBINT4 = 56 , SYBINT4 = 56 ,
  SYBINT8 = 127 , SYBINT8 = 127 , SYBFLT8 = 62 , SYBFLT8 = 62 ,
  SYBDATETIME = 61 , SYBDATETIME = 61 , SYBBIT = 50 , SYBBIT = 50 ,
  SYBBITN = 104 , SYBBITN = 104 , SYBTEXT = 35 , SYBTEXT = 35 ,
  SYBNTEXT = 99 , SYBNTEXT = 99 , SYBIMAGE = 34 , SYBIMAGE = 34 ,
  SYBMONEY4 = 122 , SYBMONEY4 = 122 , SYBMONEY = 60 , SYBMONEY = 60 ,
  SYBDATETIME4 = 58 , SYBDATETIME4 = 58 , SYBREAL = 59 , SYBREAL = 59 ,
  SYBBINARY = 45 , SYBBINARY = 45 , SYBVOID = 31 , SYBVOID = 31 ,
  SYBVARBINARY = 37 , SYBVARBINARY = 37 , SYBNUMERIC = 108 , SYBNUMERIC = 108 ,
  SYBDECIMAL = 106 , SYBDECIMAL = 106 , SYBFLTN = 109 , SYBFLTN = 109 ,
  SYBMONEYN = 110 , SYBMONEYN = 110 , SYBDATETIMN = 111 , SYBDATETIMN = 111 ,
  SYBNVARCHAR = 103 , SYBNVARCHAR = 103 , SYBDATE = 49 , SYBDATE = 49 ,
  SYBTIME = 51 , SYBTIME = 51 , SYBBIGDATETIME = 187 , SYBBIGDATETIME = 187 ,
  SYBBIGTIME = 188 , SYBBIGTIME = 188 , SYBMSDATE = 40 , SYBMSDATE = 40 ,
  SYBMSTIME = 41 , SYBMSTIME = 41 , SYBMSDATETIME2 = 42 , SYBMSDATETIME2 = 42 ,
  SYBMSDATETIMEOFFSET = 43 , SYBMSDATETIMEOFFSET = 43
}
 
enum  { MAXCOLNAMELEN = 512 }
 
enum  CI_TYPE {
  CI_REGULAR =1 , CI_ALTERNATE =2 , CI_CURSOR =3 , CI_REGULAR =1 ,
  CI_ALTERNATE =2 , CI_CURSOR =3
}
 

Functions

BYTEdbadata_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
DBINT dbadlen_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
RETCODE dbaltbind_ver14 (DBPROCESS *dbprocess, int computeid, int column, int vartype, DBINT varlen, BYTE *varaddr)
 
RETCODE dbaltbind_ps (DBPROCESS *dbprocess, int computeid, int column, int vartype, DBINT varlen, BYTE *varaddr, DBTYPEINFO *typeinfo)
 
int dbaltcolid_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
DBINT dbaltlen_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
int dbaltop_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
int dbalttype_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
DBINT dbaltutype_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
RETCODE dbanullbind_ver14 (DBPROCESS *dbprocess, int computeid, int column, DBINT *indicator)
 
RETCODE dbbind_ver14 (DBPROCESS *dbproc, int column, int vartype, DBINT varlen, BYTE *varaddr)
 
RETCODE dbbind_ps (DBPROCESS *dbprocess, int column, int vartype, DBINT varlen, BYTE *varaddr, DBTYPEINFO *typeinfo)
 
int dbbufsize (DBPROCESS *dbprocess)
 
BYTEdbbylist_ver14 (DBPROCESS *dbproc, int computeid, int *size)
 
RETCODE dbcancel_ver14 (DBPROCESS *dbproc)
 
RETCODE dbcanquery_ver14 (DBPROCESS *dbproc)
 
char * dbchange_ver14 (DBPROCESS *dbprocess)
 
DBBOOL dbcharsetconv (DBPROCESS *dbprocess)
 
void dbclose_ver14 (DBPROCESS *dbproc)
 
void dbclrbuf_ver14 (DBPROCESS *dbproc, DBINT n)
 
RETCODE dbclropt_ver14 (DBPROCESS *dbproc, int option, const char param[])
 
RETCODE dbcmd_ver14 (DBPROCESS *dbproc, const char cmdstring[])
 
RETCODE dbcmdrow_ver14 (DBPROCESS *dbproc)
 
RETCODE dbtablecolinfo_ver14 (DBPROCESS *dbproc, DBINT column, DBCOL *pdbcol)
 
RETCODE dbcolinfo_ver14 (DBPROCESS *dbproc, CI_TYPE type, DBINT column, DBINT computeid, DBCOL *pdbcol)
 
DBINT dbcollen_ver14 (DBPROCESS *dbproc, int column)
 
char * dbcolname_ver14 (DBPROCESS *dbproc, int column)
 
const char * dbacolname_ver14 (DBPROCESS *dbproc, int computeid, int column)
 
char * dbcolsource_ver14 (DBPROCESS *dbproc, int colnum)
 
int dbcoltype_ver14 (DBPROCESS *dbproc, int column)
 
DBTYPEINFOdbcoltypeinfo_ver14 (DBPROCESS *dbproc, int column)
 
DBINT dbcolutype_ver14 (DBPROCESS *dbprocess, int column)
 
DBINT dbconvert_ver14 (DBPROCESS *dbproc, int srctype, const BYTE *src, DBINT srclen, int desttype, BYTE *dest, DBINT destlen)
 
DBINT dbconvert_ps_ver14 (DBPROCESS *dbprocess, int srctype, const BYTE *src, DBINT srclen, int desttype, BYTE *dest, DBINT destlen, DBTYPEINFO *typeinfo)
 
BOOL dbiscount_ver14 (DBPROCESS *dbproc)
 
DBINT dbcount_ver14 (DBPROCESS *dbproc)
 
int dbcurcmd_ver14 (DBPROCESS *dbproc)
 
DBINT dbcurrow_ver14 (DBPROCESS *dbproc)
 
BYTEdbdata_ver14 (DBPROCESS *dbproc, int column)
 
int dbdatecmp_ver14 (DBPROCESS *dbproc, DBDATETIME *d1, DBDATETIME *d2)
 
RETCODE dbdatecrack_ver14 (DBPROCESS *dbproc, DBDATEREC *di, DBDATETIME *dt)
 
RETCODE dbanydatecrack_ver14 (DBPROCESS *dbproc, DBDATEREC2 *di, int type, const void *data)
 
DBINT dbdatlen_ver14 (DBPROCESS *dbproc, int column)
 
DBBOOL dbdead_ver14 (DBPROCESS *dbproc)
 
EHANDLEFUNC dberrhandle_ver14 (EHANDLEFUNC handler)
 
void dbexit_ver14 (void)
 
RETCODE dbfcmd_ver14 (DBPROCESS *dbproc, const char *fmt,...)
 
DBINT dbfirstrow_ver14 (DBPROCESS *dbproc)
 
void dbfreebuf_ver14 (DBPROCESS *dbproc)
 
char * dbgetchar_ver14 (DBPROCESS *dbprocess, int n)
 
char * dbgetcharset (DBPROCESS *dbprocess)
 
int dbgetlusername (LOGINREC *login, BYTE *name_buffer, int buffer_len)
 
int dbgetmaxprocs_ver14 (void)
 
char * dbgetnatlanf (DBPROCESS *dbprocess)
 
int dbgetpacket_ver14 (DBPROCESS *dbproc)
 
RETCODE dbgetrow_ver14 (DBPROCESS *dbproc, DBINT row)
 
int dbgettime_ver14 (void)
 
BYTEdbgetuserdata_ver14 (DBPROCESS *dbproc)
 
DBBOOL dbhasretstat_ver14 (DBPROCESS *dbproc)
 
RETCODE dbinit_ver14 (void)
 
int dbiordesc_ver14 (DBPROCESS *dbproc)
 
int dbiowdesc_ver14 (DBPROCESS *dbproc)
 
DBBOOL dbisavail_ver14 (DBPROCESS *dbprocess)
 
DBBOOL dbisopt_ver14 (DBPROCESS *dbproc, int option, const char param[])
 
DBINT dblastrow_ver14 (DBPROCESS *dbproc)
 
LOGINRECdblogin_ver14 (void)
 
void dbloginfree_ver14 (LOGINREC *login)
 
int dbmny4cmp_ver14 (DBPROCESS *dbproc, DBMONEY4 *m1, DBMONEY4 *m2)
 
int dbmnycmp_ver14 (DBPROCESS *dbproc, DBMONEY *m1, DBMONEY *m2)
 
RETCODE dbmny4add_ver14 (DBPROCESS *dbproc, DBMONEY4 *m1, DBMONEY4 *m2, DBMONEY4 *sum)
 
RETCODE dbmnydec_ver14 (DBPROCESS *dbproc, DBMONEY *mnyptr)
 
RETCODE dbmnyinc_ver14 (DBPROCESS *dbproc, DBMONEY *mnyptr)
 
RETCODE dbmnymaxpos_ver14 (DBPROCESS *dbproc, DBMONEY *dest)
 
RETCODE dbmnymaxneg_ver14 (DBPROCESS *dbproc, DBMONEY *dest)
 
RETCODE dbmny4minus_ver14 (DBPROCESS *dbproc, DBMONEY4 *src, DBMONEY4 *dest)
 
RETCODE dbmnyminus_ver14 (DBPROCESS *dbproc, DBMONEY *src, DBMONEY *dest)
 
RETCODE dbmny4sub_ver14 (DBPROCESS *dbproc, DBMONEY4 *m1, DBMONEY4 *m2, DBMONEY4 *diff)
 
RETCODE dbmnysub (DBPROCESS *dbproc, DBMONEY *m1, DBMONEY *m2, DBMONEY *diff)
 
RETCODE dbmny4copy_ver14 (DBPROCESS *dbprocess, DBMONEY4 *m1, DBMONEY4 *m2)
 
RETCODE dbmnycopy_ver14 (DBPROCESS *dbproc, DBMONEY *src, DBMONEY *dest)
 
RETCODE dbmny4zero_ver14 (DBPROCESS *dbproc, DBMONEY4 *dest)
 
RETCODE dbmnyzero_ver14 (DBPROCESS *dbproc, DBMONEY *dest)
 
const char * dbmonthname_ver14 (DBPROCESS *dbproc, char *language, int monthnum, DBBOOL shortform)
 
RETCODE dbmorecmds_ver14 (DBPROCESS *dbproc)
 
RETCODE dbmoretext_ver14 (DBPROCESS *dbproc, DBINT size, const BYTE text[])
 
MHANDLEFUNC dbmsghandle_ver14 (MHANDLEFUNC handler)
 
char * dbname_ver14 (DBPROCESS *dbproc)
 
STATUS dbnextrow_ver14 (DBPROCESS *dbproc)
 
RETCODE dbnullbind_ver14 (DBPROCESS *dbproc, int column, DBINT *indicator)
 
int dbnumalts_ver14 (DBPROCESS *dbproc, int computeid)
 
int dbnumcols_ver14 (DBPROCESS *dbproc)
 
int dbnumcompute_ver14 (DBPROCESS *dbprocess)
 
int dbnumrets_ver14 (DBPROCESS *dbproc)
 
DBPROCESStdsdbopen_ver14 (LOGINREC *login, const char *server, int msdblib)
 
DBPROCESSdbopen (LOGINREC *login, const char *server)
 Normally not used. More...
 
void dbpivot_count_ver14 (struct col_t *output, const struct col_t *input)
 
void dbpivot_sum_ver14 (struct col_t *output, const struct col_t *input)
 
void dbpivot_min_ver14 (struct col_t *output, const struct col_t *input)
 
void dbpivot_max_ver14 (struct col_t *output, const struct col_t *input)
 
struct pivot_tdbrows_pivoted_ver14 (DBPROCESS *dbproc)
 
STATUS dbnextrow_pivoted_ver14 (DBPROCESS *dbproc, struct pivot_t *pp)
 
RETCODE dbpivot_ver14 (DBPROCESS *dbproc, int nkeys, int *keys, int ncols, int *cols, DBPIVOT_FUNC func, int val)
 
DBPIVOT_FUNC dbpivot_lookup_name_ver14 (const char name[])
 
void dbprhead_ver14 (DBPROCESS *dbproc)
 
DBINT dbprcollen_ver14 (DBPROCESS *dbproc, int column)
 
RETCODE dbprrow_ver14 (DBPROCESS *dbproc)
 
const char * dbprtype_ver14 (int token)
 
DBBOOL DRBUF (DBPROCESS *dbprocess)
 
STATUS dbreadtext_ver14 (DBPROCESS *dbproc, void *buf, DBINT bufsize)
 
void dbrecftos_ver14 (const char filename[])
 
RETCODE dbresults_ver14 (DBPROCESS *dbproc)
 
RETCODE dbresults_r (DBPROCESS *dbproc, int recursive)
 
BYTEdbretdata_ver14 (DBPROCESS *dbproc, int retnum)
 
int dbretlen_ver14 (DBPROCESS *dbproc, int retnum)
 
char * dbretname_ver14 (DBPROCESS *dbproc, int retnum)
 
DBINT dbretstatus_ver14 (DBPROCESS *dbproc)
 
int dbrettype_ver14 (DBPROCESS *dbproc, int retnum)
 
RETCODE dbrows_ver14 (DBPROCESS *dbproc)
 
STATUS dbrowtype_ver14 (DBPROCESS *dbprocess)
 
RETCODE dbrpcinit_ver14 (DBPROCESS *dbproc, const char rpcname[], DBSMALLINT options)
 
RETCODE dbrpcparam_ver14 (DBPROCESS *dbproc, const char paramname[], BYTE status, int type, DBINT maxlen, DBINT datalen, BYTE *value)
 
RETCODE dbrpcsend_ver14 (DBPROCESS *dbproc)
 
RETCODE dbsafestr_ver14 (DBPROCESS *dbproc, const char *src, DBINT srclen, char *dest, DBINT destlen, int quotetype)
 
RETCODEdbsechandle (DBINT type, INTFUNCPTR handler)
 
char * dbservcharset_ver14 (DBPROCESS *dbprocess)
 
void dbsetavail_ver14 (DBPROCESS *dbprocess)
 
void dbsetbusy (DBPROCESS *dbprocess, DB_DBBUSY_FUNC busyfunc)
 
RETCODE dbsetdefcharset (char *charset)
 
void dbsetidle (DBPROCESS *dbprocess, DB_DBIDLE_FUNC idlefunc)
 
void dbsetifile_ver14 (char *filename)
 
void dbsetinterrupt_ver14 (DBPROCESS *dbproc, DB_DBCHKINTR_FUNC chkintr, DB_DBHNDLINTR_FUNC hndlintr)
 
RETCODE dbsetlogintime_ver14 (int seconds)
 
RETCODE dbsetmaxprocs_ver14 (int maxprocs)
 
RETCODE dbsetnull_ver14 (DBPROCESS *dbprocess, int bindtype, int bindlen, BYTE *bindval)
 
RETCODE dbsetopt_ver14 (DBPROCESS *dbproc, int option, const char *char_param, int int_param)
 
STATUS dbsetrow_ver14 (DBPROCESS *dbprocess, DBINT row)
 
RETCODE dbsettime_ver14 (int seconds)
 
void dbsetuserdata_ver14 (DBPROCESS *dbproc, BYTE *ptr)
 
RETCODE dbsetversion_ver14 (DBINT version)
 
int dbspid_ver14 (DBPROCESS *dbproc)
 
RETCODE dbspr1row_ver14 (DBPROCESS *dbproc, char *buffer, DBINT buf_len)
 
DBINT dbspr1rowlen_ver14 (DBPROCESS *dbproc)
 
RETCODE dbsprhead_ver14 (DBPROCESS *dbproc, char *buffer, DBINT buf_len)
 
RETCODE dbsprline_ver14 (DBPROCESS *dbproc, char *buffer, DBINT buf_len, DBCHAR line_char)
 
RETCODE dbsqlexec_ver14 (DBPROCESS *dbproc)
 
RETCODE dbsqlok_ver14 (DBPROCESS *dbproc)
 
RETCODE dbsqlsend_ver14 (DBPROCESS *dbproc)
 
int dbstrbuild_ver14 (DBPROCESS *dbproc, char *charbuf, int bufsize, char *text, char *formats,...)
 
RETCODE dbstrcpy_ver14 (DBPROCESS *dbproc, int start, int numbytes, char *dest)
 
int dbstrlen_ver14 (DBPROCESS *dbproc)
 
DBINT dbvarylen_ver14 (DBPROCESS *dbproc, int column)
 
int dbtds_ver14 (DBPROCESS *dbprocess)
 
DBINT dbtextsize (DBPROCESS *dbprocess)
 
DBBINARYdbtxptr_ver14 (DBPROCESS *dbproc, int column)
 
DBBINARYdbtxtimestamp_ver14 (DBPROCESS *dbproc, int column)
 
DBBINARYdbtxtsnewval (DBPROCESS *dbprocess)
 
RETCODE dbtxtsput (DBPROCESS *dbprocess, DBBINARY newtxts, int colnum)
 
RETCODE dbuse_ver14 (DBPROCESS *dbproc, const char *name)
 
const char * dbversion_ver14 (void)
 
DBBOOL dbwillconvert_ver14 (int srctype, int desttype)
 
RETCODE dbwritetext_ver14 (DBPROCESS *dbproc, char *objname, DBBINARY *textptr, DBTINYINT textptrlen, DBBINARY *timestamp, DBBOOL log, DBINT size, BYTE *text)
 
RETCODE dbsetlname_ver14 (LOGINREC *login, const char *value, int which)
 
RETCODE dbsetlbool_ver14 (LOGINREC *login, int value, int which)
 
RETCODE dbsetlshort (LOGINREC *login, int value, int which)
 
RETCODE dbsetllong_ver14 (LOGINREC *login, long value, int which)
 
RETCODE dbsetlversion_ver14 (LOGINREC *login, BYTE version)
 
RETCODE bcp_init_ver14 (DBPROCESS *dbproc, const char *tblname, const char *hfile, const char *errfile, int direction)
 
DBINT bcp_done_ver14 (DBPROCESS *dbproc)
 
DBINT bcp_batch_ver14 (DBPROCESS *dbproc)
 
RETCODE bcp_bind_ver14 (DBPROCESS *dbproc, BYTE *varaddr, int prefixlen, DBINT varlen, BYTE *terminator, int termlen, int type, int table_column)
 
RETCODE bcp_collen_ver14 (DBPROCESS *dbproc, DBINT varlen, int table_column)
 
RETCODE bcp_columns_ver14 (DBPROCESS *dbproc, int host_colcount)
 
RETCODE bcp_colfmt_ver14 (DBPROCESS *dbproc, int host_column, int host_type, int host_prefixlen, DBINT host_collen, const BYTE *host_term, int host_termlen, int colnum)
 
RETCODE bcp_colfmt_ps_ver14 (DBPROCESS *dbproc, int host_column, int host_type, int host_prefixlen, DBINT host_collen, BYTE *host_term, int host_termlen, int colnum, DBTYPEINFO *typeinfo)
 
RETCODE bcp_colptr_ver14 (DBPROCESS *dbproc, BYTE *colptr, int table_column)
 
RETCODE bcp_control_ver14 (DBPROCESS *dbproc, int field, DBINT value)
 
int bcp_getbatchsize_ver14 (DBPROCESS *dbproc)
 
RETCODE bcp_exec_ver14 (DBPROCESS *dbproc, DBINT *rows_copied)
 
DBBOOL bcp_getl_ver14 (LOGINREC *login)
 
RETCODE bcp_options_ver14 (DBPROCESS *dbproc, int option, BYTE *value, int valuelen)
 
RETCODE bcp_readfmt_ver14 (DBPROCESS *dbproc, const char filename[])
 
RETCODE bcp_sendrow_ver14 (DBPROCESS *dbproc)
 

Macro Definition Documentation

◆ BCP_SETL

#define BCP_SETL (   x,
 
)    dbsetlbool((x), (y), DBSETBCP)

Definition at line 1274 of file sybdb.h.

◆ BCP_SETLABELED

#define BCP_SETLABELED (   x,
 
)    dbsetlbool((x), (y), DBSETLABELED)

Definition at line 1294 of file sybdb.h.

◆ BCPBATCH

#define BCPBATCH   4

Definition at line 114 of file sybdb.h.

◆ BCPFIRST

#define BCPFIRST   2

Definition at line 112 of file sybdb.h.

◆ BCPHINTS

#define BCPHINTS   6

Definition at line 118 of file sybdb.h.

◆ BCPKEEPIDENTITY

#define BCPKEEPIDENTITY   8

Definition at line 115 of file sybdb.h.

◆ BCPLABELED

#define BCPLABELED   5

Definition at line 117 of file sybdb.h.

◆ BCPLAST

#define BCPLAST   3

Definition at line 113 of file sybdb.h.

◆ BCPMAXERRS

#define BCPMAXERRS   1

Definition at line 111 of file sybdb.h.

◆ BIGDATETIMEBIND

#define BIGDATETIMEBIND   23

Definition at line 572 of file sybdb.h.

◆ BIGINTBIND

#define BIGINTBIND   30

Definition at line 574 of file sybdb.h.

◆ BIGTIMEBIND

#define BIGTIMEBIND   24

Definition at line 573 of file sybdb.h.

◆ BINARYBIND

#define BINARYBIND   15

Definition at line 564 of file sybdb.h.

◆ BITBIND

#define BITBIND   16

Definition at line 565 of file sybdb.h.

◆ BUF_FULL

#define BUF_FULL   -3

Definition at line 587 of file sybdb.h.

◆ CHARBIND

#define CHARBIND   0

Definition at line 550 of file sybdb.h.

◆ DATEBIND

#define DATEBIND   21

Definition at line 570 of file sybdb.h.

◆ DATETIME2BIND

#define DATETIME2BIND   31

Definition at line 575 of file sybdb.h.

◆ DATETIMEBIND

#define DATETIMEBIND   11

Definition at line 560 of file sybdb.h.

◆ DB_IN

#define DB_IN   1

Definition at line 592 of file sybdb.h.

◆ DB_OUT

#define DB_OUT   2

Definition at line 593 of file sybdb.h.

◆ DB_QUERYOUT

#define DB_QUERYOUT   3

Definition at line 594 of file sybdb.h.

◆ DBARITHABORT

#define DBARITHABORT   6

Definition at line 409 of file sybdb.h.

◆ DBARITHIGNORE

#define DBARITHIGNORE   4

Definition at line 407 of file sybdb.h.

◆ DBAUTH

#define DBAUTH   29

Definition at line 432 of file sybdb.h.

◆ DBBOTH

#define DBBOTH   2

Definition at line 598 of file sybdb.h.

◆ DBBROWSE

#define DBBROWSE   8

Definition at line 411 of file sybdb.h.

◆ DBBUFFER

#define DBBUFFER   14

Definition at line 417 of file sybdb.h.

◆ DBCHAINXACTS

#define DBCHAINXACTS   26

Definition at line 429 of file sybdb.h.

◆ DBCLIENTCURSORS

#define DBCLIENTCURSORS   33

Definition at line 436 of file sybdb.h.

◆ DBCMDNONE

#define DBCMDNONE   0

Definition at line 120 of file sybdb.h.

◆ DBCMDPEND

#define DBCMDPEND   1

Definition at line 121 of file sybdb.h.

◆ DBCMDROW

#define DBCMDROW (   x)    dbcmdrow((x))

Definition at line 737 of file sybdb.h.

◆ DBCMDSENT

#define DBCMDSENT   2

Definition at line 122 of file sybdb.h.

◆ DBCONFIRM

#define DBCONFIRM   12

Definition at line 415 of file sybdb.h.

◆ DBCOUNT

#define DBCOUNT (   x)    dbcount((x))

Definition at line 753 of file sybdb.h.

◆ DBCURCMD

#define DBCURCMD (   x)    dbcurcmd((x))

Definition at line 756 of file sybdb.h.

◆ DBCURROW

#define DBCURROW (   x)    dbcurrow((x))

Definition at line 759 of file sybdb.h.

◆ DBDATEFIRST

#define DBDATEFIRST   25

Definition at line 428 of file sybdb.h.

◆ DBDATEFORMAT

#define DBDATEFORMAT   19

Definition at line 422 of file sybdb.h.

◆ DBDATESHORT

#define DBDATESHORT   32

Definition at line 435 of file sybdb.h.

◆ DBDEAD

#define DBDEAD (   x)    dbdead((x))

Definition at line 767 of file sybdb.h.

◆ DBDOUBLE

#define DBDOUBLE   1

Definition at line 597 of file sybdb.h.

◆ DBERRLVL

#define DBERRLVL   11

Definition at line 414 of file sybdb.h.

◆ DBESTIMATE

#define DBESTIMATE   1

Definition at line 404 of file sybdb.h.

◆ DBFIPSFLAG

#define DBFIPSFLAG   27

Definition at line 430 of file sybdb.h.

◆ DBFIRSTROW

#define DBFIRSTROW (   x)    dbfirstrow((x))

Definition at line 773 of file sybdb.h.

◆ DBGETTIME

#define DBGETTIME   dbgettime

Definition at line 783 of file sybdb.h.

◆ DBIDENTITY

#define DBIDENTITY   30

Definition at line 433 of file sybdb.h.

◆ DBINTERRUPT

#define DBINTERRUPT   4

Definition at line 544 of file sybdb.h.

◆ DBIORDESC

#define DBIORDESC (   x)    dbiordesc((x))

Definition at line 789 of file sybdb.h.

◆ DBIOWDESC

#define DBIOWDESC (   x)    dbiowdesc((x))

Definition at line 792 of file sybdb.h.

◆ DBISAVAIL

#define DBISAVAIL (   x)    dbisavail((x))

Definition at line 795 of file sybdb.h.

◆ DBISOLATION

#define DBISOLATION   28

Definition at line 431 of file sybdb.h.

◆ DBLASTROW

#define DBLASTROW (   x)    dblastrow((x))

Definition at line 799 of file sybdb.h.

◆ DBLFCONVERT

#define DBLFCONVERT   24

Definition at line 427 of file sybdb.h.

◆ DBMAXNAME

#define DBMAXNAME   128

Definition at line 70 of file sybdb.h.

◆ DBMAXNUMLEN

#define DBMAXNUMLEN   33

Definition at line 68 of file sybdb.h.

◆ DBMORECMDS

#define DBMORECMDS (   x)    dbmorecmds((x))

Definition at line 825 of file sybdb.h.

◆ DBNATLANG

#define DBNATLANG   18

Definition at line 421 of file sybdb.h.

◆ DBNOAUTOFREE

#define DBNOAUTOFREE   15

Definition at line 418 of file sybdb.h.

◆ DBNOCOUNT

#define DBNOCOUNT   5

Definition at line 408 of file sybdb.h.

◆ DBNOERR

#define DBNOERR   -1

Definition at line 61 of file sybdb.h.

◆ DBNOEXEC

#define DBNOEXEC   3

Definition at line 406 of file sybdb.h.

◆ DBNOIDCOL

#define DBNOIDCOL   31

Definition at line 434 of file sybdb.h.

◆ DBNOSAVE

#define DBNOSAVE   0

Definition at line 60 of file sybdb.h.

◆ DBNOTIFICATION

#define DBNOTIFICATION   2

Definition at line 542 of file sybdb.h.

◆ DBNUMOPTIONS

#define DBNUMOPTIONS   36

Definition at line 440 of file sybdb.h.

◆ DBOFFSET

#define DBOFFSET   9

Definition at line 412 of file sybdb.h.

◆ dbopen

#define dbopen (   x,
 
)    tdsdbopen((x),(y), 0)

Definition at line 860 of file sybdb.h.

◆ DBPADOFF

#define DBPADOFF   0

Definition at line 442 of file sybdb.h.

◆ DBPADON

#define DBPADON   1

Definition at line 443 of file sybdb.h.

◆ DBPARSEONLY

#define DBPARSEONLY   0

Definition at line 403 of file sybdb.h.

◆ DBPRCOLSEP [1/2]

#define DBPRCOLSEP   21

Definition at line 578 of file sybdb.h.

◆ DBPRCOLSEP [2/2]

#define DBPRCOLSEP   21

Definition at line 578 of file sybdb.h.

◆ DBPRLINELEN [1/2]

#define DBPRLINELEN   22

Definition at line 579 of file sybdb.h.

◆ DBPRLINELEN [2/2]

#define DBPRLINELEN   22

Definition at line 579 of file sybdb.h.

◆ DBPRLINESEP

#define DBPRLINESEP   23

Definition at line 426 of file sybdb.h.

◆ DBPRPAD

#define DBPRPAD   20

Definition at line 423 of file sybdb.h.

◆ DBQUOTEDIDENT

#define DBQUOTEDIDENT   35

Definition at line 438 of file sybdb.h.

◆ DBRESULT

#define DBRESULT   1

Definition at line 541 of file sybdb.h.

◆ DBROWCOUNT

#define DBROWCOUNT   16

Definition at line 419 of file sybdb.h.

◆ DBROWS

#define DBROWS (   x)    dbrows((x))

Definition at line 886 of file sybdb.h.

◆ DBROWTYPE

#define DBROWTYPE (   x)    dbrowtype((x))

Definition at line 889 of file sybdb.h.

◆ DBRPCCURSOR

#define DBRPCCURSOR   TDS_STATIC_CAST(DBSMALLINT, 0x0008)

Definition at line 603 of file sybdb.h.

◆ DBRPCDEFAULT

#define DBRPCDEFAULT   2

Definition at line 582 of file sybdb.h.

◆ DBRPCNORETURN

#define DBRPCNORETURN   0

Definition at line 580 of file sybdb.h.

◆ DBRPCRECOMPILE

#define DBRPCRECOMPILE   TDS_STATIC_CAST(DBSMALLINT, 0x0001)

Definition at line 601 of file sybdb.h.

◆ DBRPCRESET

#define DBRPCRESET   TDS_STATIC_CAST(DBSMALLINT, 0x0002)

Definition at line 602 of file sybdb.h.

◆ DBRPCRETURN

#define DBRPCRETURN   1

Definition at line 581 of file sybdb.h.

◆ DBSAVE

#define DBSAVE   1

Definition at line 59 of file sybdb.h.

◆ DBSETAPP

#define DBSETAPP   5

Definition at line 1270 of file sybdb.h.

◆ DBSETBCP

#define DBSETBCP   6

Definition at line 1273 of file sybdb.h.

◆ DBSETCHARSET

#define DBSETCHARSET   10

Definition at line 1285 of file sybdb.h.

◆ DBSETDBNAME

#define DBSETDBNAME   14

Definition at line 1295 of file sybdb.h.

◆ DBSETDELEGATION

#define DBSETDELEGATION   1004

Definition at line 1311 of file sybdb.h.

◆ DBSETENCRYPT

#define DBSETENCRYPT   12

Definition at line 1290 of file sybdb.h.

◆ DBSETHOST

#define DBSETHOST   1

Definition at line 1257 of file sybdb.h.

◆ DBSETLABELED

#define DBSETLABELED   13

Definition at line 1292 of file sybdb.h.

◆ DBSETLAPP

#define DBSETLAPP (   x,
 
)    dbsetlname((x), (y), DBSETAPP)

Definition at line 1271 of file sybdb.h.

◆ dbsetlapp

#define dbsetlapp (   x,
 
)    dbsetlname((x), (y), DBSETAPP)

Definition at line 1272 of file sybdb.h.

◆ DBSETLCHARSET

#define DBSETLCHARSET (   x,
 
)    dbsetlname((x), (y), DBSETCHARSET)

Definition at line 1286 of file sybdb.h.

◆ DBSETLDBNAME

#define DBSETLDBNAME (   x,
 
)    dbsetlname((x), (y), DBSETDBNAME)

Definition at line 1296 of file sybdb.h.

◆ DBSETLDELEGATION

#define DBSETLDELEGATION (   x,
 
)    dbsetlbool((x), (y), DBSETDELEGATION)

Definition at line 1312 of file sybdb.h.

◆ DBSETLENCRYPT

#define DBSETLENCRYPT (   x,
 
)    dbsetlbool((x), (y), DBSETENCRYPT)

Definition at line 1291 of file sybdb.h.

◆ DBSETLHOST

#define DBSETLHOST (   x,
 
)    dbsetlname((x), (y), DBSETHOST)

Definition at line 1258 of file sybdb.h.

◆ dbsetlhost

#define dbsetlhost (   x,
 
)    dbsetlname((x), (y), DBSETHOST)

Definition at line 1259 of file sybdb.h.

◆ DBSETLLABELED

#define DBSETLLABELED (   x,
 
)    dbsetlbool((x), (y), DBSETLABELED)

Definition at line 1293 of file sybdb.h.

◆ DBSETLMUTUALAUTH

#define DBSETLMUTUALAUTH (   x,
 
)    dbsetlbool((x), (y), DBSETMUTUALAUTH)

Definition at line 1301 of file sybdb.h.

◆ DBSETLNATLANG

#define DBSETLNATLANG (   x,
 
)    dbsetlname((x), (y), DBSETNATLANG)

Definition at line 1277 of file sybdb.h.

◆ dbsetlnatlang

#define dbsetlnatlang (   x,
 
)    dbsetlname((x), (y), DBSETNATLANG)

Definition at line 1278 of file sybdb.h.

◆ DBSETLNETWORKAUTH

#define DBSETLNETWORKAUTH (   x,
 
)    dbsetlbool((x), (y), DBSETNETWORKAUTH)

Definition at line 1299 of file sybdb.h.

◆ DBSETLNTLMV2

#define DBSETLNTLMV2 (   x,
 
)    dbsetlbool((x), (y), DBSETNTLMV2)

Definition at line 1308 of file sybdb.h.

◆ DBSETLPACKET

#define DBSETLPACKET (   x,
 
)    dbsetllong((x), (y), DBSETPACKET)

Definition at line 1288 of file sybdb.h.

◆ dbsetlpacket

#define dbsetlpacket (   x,
 
)    dbsetllong((x), (y), DBSETPACKET)

Definition at line 1289 of file sybdb.h.

◆ DBSETLPWD

#define DBSETLPWD (   x,
 
)    dbsetlname((x), (y), DBSETPWD)

Definition at line 1264 of file sybdb.h.

◆ dbsetlpwd

#define dbsetlpwd (   x,
 
)    dbsetlname((x), (y), DBSETPWD)

Definition at line 1265 of file sybdb.h.

◆ DBSETLREADONLY

#define DBSETLREADONLY (   x,
 
)    dbsetlbool((x), (y), DBSETREADONLY)

Definition at line 1310 of file sybdb.h.

◆ DBSETLSECURE

#define DBSETLSECURE (   x)    dbsetlbool((x), (1), DBSETBCP)

Definition at line 1275 of file sybdb.h.

◆ DBSETLSERVERPRINCIPAL

#define DBSETLSERVERPRINCIPAL (   x,
 
)    dbsetlname((x), (y), DBSETSERVERPRINCIPAL)

Definition at line 1303 of file sybdb.h.

◆ DBSETLUSER

#define DBSETLUSER (   x,
 
)    dbsetlname((x), (y), DBSETUSER)

Definition at line 1261 of file sybdb.h.

◆ dbsetluser

#define dbsetluser (   x,
 
)    dbsetlname((x), (y), DBSETUSER)

Definition at line 1262 of file sybdb.h.

◆ DBSETLUTF16

#define DBSETLUTF16 (   x,
 
)    dbsetlbool((x), (y), DBSETUTF16)

Definition at line 1306 of file sybdb.h.

◆ DBSETLVERSION

#define DBSETLVERSION (   login,
  version 
)    dbsetlversion((login), (version))

Definition at line 1297 of file sybdb.h.

◆ DBSETMUTUALAUTH

#define DBSETMUTUALAUTH   102

Definition at line 1300 of file sybdb.h.

◆ DBSETNATLANG

#define DBSETNATLANG   7

Definition at line 1276 of file sybdb.h.

◆ DBSETNETWORKAUTH

#define DBSETNETWORKAUTH   101

Definition at line 1298 of file sybdb.h.

◆ DBSETNTLMV2

#define DBSETNTLMV2   1002

Definition at line 1307 of file sybdb.h.

◆ DBSETPACKET

#define DBSETPACKET   11

Definition at line 1287 of file sybdb.h.

◆ DBSETPWD

#define DBSETPWD   3

Definition at line 1263 of file sybdb.h.

◆ DBSETREADONLY

#define DBSETREADONLY   1003

Definition at line 1309 of file sybdb.h.

◆ DBSETSERVERPRINCIPAL

#define DBSETSERVERPRINCIPAL   103

Definition at line 1302 of file sybdb.h.

◆ DBSETTIME

#define DBSETTIME   34

Definition at line 437 of file sybdb.h.

◆ DBSETUSER

#define DBSETUSER   2

Definition at line 1260 of file sybdb.h.

◆ DBSETUTF16

#define DBSETUTF16   1001

Definition at line 1305 of file sybdb.h.

◆ DBSHOWPLAN

#define DBSHOWPLAN   2

Definition at line 405 of file sybdb.h.

◆ DBSINGLE

#define DBSINGLE   0

Definition at line 596 of file sybdb.h.

◆ DBSTAT

#define DBSTAT   10

Definition at line 413 of file sybdb.h.

◆ DBSTORPROCID

#define DBSTORPROCID   13

Definition at line 416 of file sybdb.h.

◆ DBTDS

#define DBTDS (   a)    dbtds(a)

Definition at line 1238 of file sybdb.h.

◆ DBTDS_2_0

#define DBTDS_2_0   1 /* pre 4.0 SQL Server */

Definition at line 94 of file sybdb.h.

◆ DBTDS_3_4

#define DBTDS_3_4   2 /* Microsoft SQL Server (3.0) */

Definition at line 95 of file sybdb.h.

◆ DBTDS_4_0

#define DBTDS_4_0   3 /* 4.0 SQL Server */

Definition at line 96 of file sybdb.h.

◆ DBTDS_4_2

#define DBTDS_4_2   4 /* 4.2 SQL Server */

Definition at line 97 of file sybdb.h.

◆ DBTDS_4_6

#define DBTDS_4_6   5 /* 2.0 OpenServer and 4.6 SQL Server. */

Definition at line 98 of file sybdb.h.

◆ DBTDS_4_9_5

#define DBTDS_4_9_5   6 /* 4.9.5 (NCR) SQL Server */

Definition at line 99 of file sybdb.h.

◆ DBTDS_5_0

#define DBTDS_5_0   7 /* 5.0 SQL Server */

Definition at line 100 of file sybdb.h.

◆ DBTDS_7_0

#define DBTDS_7_0   8 /* Microsoft SQL Server 7.0 */

Definition at line 101 of file sybdb.h.

◆ DBTDS_7_1

#define DBTDS_7_1   9 /* Microsoft SQL Server 2000 */

Definition at line 104 of file sybdb.h.

◆ DBTDS_7_2

#define DBTDS_7_2   10 /* Microsoft SQL Server 2005 */

Definition at line 105 of file sybdb.h.

◆ DBTDS_7_3

#define DBTDS_7_3   11 /* Microsoft SQL Server 2008 */

Definition at line 106 of file sybdb.h.

◆ DBTDS_7_4

#define DBTDS_7_4   12 /* Microsoft SQL Server 2012/2014 */

Definition at line 107 of file sybdb.h.

◆ DBTDS_8_0

#define DBTDS_8_0   9 /* Microsoft SQL Server 2000 */

Definition at line 102 of file sybdb.h.

◆ DBTDS_9_0

#define DBTDS_9_0   10 /* Microsoft SQL Server 2005 */

Definition at line 103 of file sybdb.h.

◆ DBTDS_UNKNOWN

#define DBTDS_UNKNOWN   0

DBTDS_xxx are returned by DBTDS() The integer values of the constants are poorly chosen.

Definition at line 93 of file sybdb.h.

◆ DBTEXTLIMIT

#define DBTEXTLIMIT   7

Definition at line 410 of file sybdb.h.

◆ DBTEXTSIZE

#define DBTEXTSIZE   17

Definition at line 420 of file sybdb.h.

◆ DBTIMEOUT

#define DBTIMEOUT   3

Definition at line 543 of file sybdb.h.

◆ DBTXPLEN

#define DBTXPLEN   16

Definition at line 109 of file sybdb.h.

◆ DBTXTSLEN

#define DBTXTSLEN   8

Definition at line 547 of file sybdb.h.

◆ DBVER42

#define DBVER42   DBVERSION_42

Definition at line 86 of file sybdb.h.

◆ DBVER60

#define DBVER60   DBVERSION_70 /* our best approximation */

Definition at line 87 of file sybdb.h.

◆ DBVERSION_100

#define DBVERSION_100   2

Definition at line 77 of file sybdb.h.

◆ DBVERSION_42

#define DBVERSION_42   3

Definition at line 78 of file sybdb.h.

◆ DBVERSION_46

#define DBVERSION_46   1

Definition at line 76 of file sybdb.h.

◆ DBVERSION_70

#define DBVERSION_70   4

Definition at line 79 of file sybdb.h.

◆ DBVERSION_71

#define DBVERSION_71   5

Definition at line 80 of file sybdb.h.

◆ DBVERSION_72

#define DBVERSION_72   6

Definition at line 81 of file sybdb.h.

◆ DBVERSION_73

#define DBVERSION_73   7

Definition at line 82 of file sybdb.h.

◆ DBVERSION_74

#define DBVERSION_74   8

Definition at line 83 of file sybdb.h.

◆ DBVERSION_UNKNOWN

#define DBVERSION_UNKNOWN   0

DBVERSION_xxx are used with dbsetversion()

Definition at line 75 of file sybdb.h.

◆ DECIMALBIND

#define DECIMALBIND   18

Definition at line 567 of file sybdb.h.

◆ FAIL

#define FAIL   0

Definition at line 590 of file sybdb.h.

◆ FALSE

#define FALSE   0

Definition at line 56 of file sybdb.h.

◆ FLT8BIND

#define FLT8BIND   9

Definition at line 558 of file sybdb.h.

◆ INT_CANCEL

#define INT_CANCEL   2

Definition at line 65 of file sybdb.h.

◆ INT_CONTINUE

#define INT_CONTINUE   1

Definition at line 64 of file sybdb.h.

◆ INT_EXIT

#define INT_EXIT   0

Definition at line 63 of file sybdb.h.

◆ INT_TIMEOUT

#define INT_TIMEOUT   3

Definition at line 66 of file sybdb.h.

◆ INTBIND

#define INTBIND   8

Definition at line 557 of file sybdb.h.

◆ MAXBINDTYPES

#define MAXBINDTYPES   32 /* keep last */

Definition at line 576 of file sybdb.h.

◆ MAXOPTTEXT

#define MAXOPTTEXT   32

Definition at line 450 of file sybdb.h.

◆ MONEYBIND

#define MONEYBIND   13

Definition at line 562 of file sybdb.h.

◆ MORE_ROWS

#define MORE_ROWS   -1

Definition at line 585 of file sybdb.h.

◆ NCBI_FTDS_RENAME_SYBDB

#define NCBI_FTDS_RENAME_SYBDB   1

Definition at line 34 of file sybdb.h.

◆ NO_MORE_RESULTS

#define NO_MORE_RESULTS   2

Definition at line 588 of file sybdb.h.

◆ NO_MORE_ROWS

#define NO_MORE_ROWS   -2

Definition at line 586 of file sybdb.h.

◆ NOSUCHOPTION

#define NOSUCHOPTION   2

Definition at line 448 of file sybdb.h.

◆ NTBSTRINGBIND

#define NTBSTRINGBIND   2

Definition at line 552 of file sybdb.h.

◆ NUMERICBIND

#define NUMERICBIND   17

Definition at line 566 of file sybdb.h.

◆ OFF

#define OFF   0

Definition at line 445 of file sybdb.h.

◆ ON

#define ON   1

Definition at line 446 of file sybdb.h.

◆ REALBIND

#define REALBIND   10

Definition at line 559 of file sybdb.h.

◆ REG_ROW

#define REG_ROW   -1

Definition at line 584 of file sybdb.h.

◆ SMALLBIND

#define SMALLBIND   7

Definition at line 556 of file sybdb.h.

◆ SMALLDATETIMEBIND

#define SMALLDATETIMEBIND   12

Definition at line 561 of file sybdb.h.

◆ SMALLMONEYBIND

#define SMALLMONEYBIND   14

Definition at line 563 of file sybdb.h.

◆ SRCDECIMALBIND

#define SRCDECIMALBIND   20

Definition at line 569 of file sybdb.h.

◆ SRCNUMERICBIND

#define SRCNUMERICBIND   19

Definition at line 568 of file sybdb.h.

◆ STRINGBIND

#define STRINGBIND   1

Definition at line 551 of file sybdb.h.

◆ SUCCEED

#define SUCCEED   1

Definition at line 589 of file sybdb.h.

◆ SYBAOPAVG

#define SYBAOPAVG   0x4f

Definition at line 238 of file sybdb.h.

◆ SYBAOPAVGU

#define SYBAOPAVGU   0x50

Definition at line 239 of file sybdb.h.

◆ SYBAOPCHECKSUM_AGG

#define SYBAOPCHECKSUM_AGG   0x72

Definition at line 249 of file sybdb.h.

◆ SYBAOPCNT

#define SYBAOPCNT   0x4b

Definition at line 234 of file sybdb.h.

◆ SYBAOPCNT_BIG

#define SYBAOPCNT_BIG   0x09

Definition at line 244 of file sybdb.h.

◆ SYBAOPCNTU

#define SYBAOPCNTU   0x4c

Definition at line 235 of file sybdb.h.

◆ SYBAOPMAX

#define SYBAOPMAX   0x52

Definition at line 241 of file sybdb.h.

◆ SYBAOPMIN

#define SYBAOPMIN   0x51

Definition at line 240 of file sybdb.h.

◆ SYBAOPSTDEV

#define SYBAOPSTDEV   0x30

Definition at line 245 of file sybdb.h.

◆ SYBAOPSTDEVP

#define SYBAOPSTDEVP   0x31

Definition at line 246 of file sybdb.h.

◆ SYBAOPSUM

#define SYBAOPSUM   0x4d

Definition at line 236 of file sybdb.h.

◆ SYBAOPSUMU

#define SYBAOPSUMU   0x4e

Definition at line 237 of file sybdb.h.

◆ SYBAOPVAR

#define SYBAOPVAR   0x32

Definition at line 247 of file sybdb.h.

◆ SYBAOPVARP

#define SYBAOPVARP   0x33

Definition at line 248 of file sybdb.h.

◆ SYBBIGDATETIME

#define SYBBIGDATETIME   SYBBIGDATETIME

Definition at line 221 of file sybdb.h.

◆ SYBBIGTIME

#define SYBBIGTIME   SYBBIGTIME

Definition at line 223 of file sybdb.h.

◆ SYBBINARY

#define SYBBINARY   SYBBINARY

Definition at line 199 of file sybdb.h.

◆ SYBBIT

#define SYBBIT   SYBBIT

Definition at line 181 of file sybdb.h.

◆ SYBBITN

#define SYBBITN   SYBBITN

Definition at line 183 of file sybdb.h.

◆ SYBCHAR

#define SYBCHAR   SYBCHAR

Definition at line 163 of file sybdb.h.

◆ SYBDATE

#define SYBDATE   SYBDATE

Definition at line 217 of file sybdb.h.

◆ SYBDATETIME

#define SYBDATETIME   SYBDATETIME

Definition at line 179 of file sybdb.h.

◆ SYBDATETIME4

#define SYBDATETIME4   SYBDATETIME4

Definition at line 195 of file sybdb.h.

◆ SYBDATETIMN

#define SYBDATETIMN   SYBDATETIMN

Definition at line 213 of file sybdb.h.

◆ SYBDECIMAL

#define SYBDECIMAL   SYBDECIMAL

Definition at line 207 of file sybdb.h.

◆ SYBEAAMT

#define SYBEAAMT   20035 /* User attempted a dbaltbind() with mismatched column and variable types. */

Definition at line 968 of file sybdb.h.

◆ SYBEABMT

#define SYBEABMT   20033 /* User attempted a dbbind() with mismatched column and variable types. */

Definition at line 966 of file sybdb.h.

◆ SYBEABNC

#define SYBEABNC   20032 /* Attempt to bind to a non-existent column. */

Definition at line 965 of file sybdb.h.

◆ SYBEABNP

#define SYBEABNP   20034 /* Attempt to bind using NULL pointers. */

Definition at line 967 of file sybdb.h.

◆ SYBEABNV

#define SYBEABNV   20046 /* Attempt to bind to a NULL program variable. */

Definition at line 979 of file sybdb.h.

◆ SYBEACNV

#define SYBEACNV   20148 /* Attemp to do conversion with NULL destination variable. */

Definition at line 1081 of file sybdb.h.

◆ SYBEADST

#define SYBEADST   20128 /* Error in attempting to determine the size of a pair of translation tables. */

Definition at line 1061 of file sybdb.h.

◆ SYBEAICF

#define SYBEAICF   20127 /* Error in attempting to install custom format. */

Definition at line 1060 of file sybdb.h.

◆ SYBEALTT

#define SYBEALTT   20129 /* Error in attempting to load a pair of translation tables. */

Definition at line 1062 of file sybdb.h.

◆ SYBEAOLF

#define SYBEAOLF   20133 /* Error in attempting to open a localization file. */

Definition at line 1066 of file sybdb.h.

◆ SYBEAPCT

#define SYBEAPCT   20130 /* Error in attempting to perform a character-set translation. */

Definition at line 1063 of file sybdb.h.

◆ SYBEAPUT

#define SYBEAPUT   20040 /* Attempt to print unknown token. */

Definition at line 973 of file sybdb.h.

◆ SYBEARDI

#define SYBEARDI   20134 /* Error in attempting to read datetime information from a localization file. */

Definition at line 1067 of file sybdb.h.

◆ SYBEARDL

#define SYBEARDL   20136 /* Error in attempting to read the dblib.loc localization file. */

Definition at line 1069 of file sybdb.h.

◆ SYBEASEC

#define SYBEASEC   20091 /* Attempt to send an empty command buffer to the SQL Server. */

Definition at line 1024 of file sybdb.h.

◆ SYBEASNL

#define SYBEASNL   20041 /* Attempt to set fields in a null loginrec. */

Definition at line 974 of file sybdb.h.

◆ SYBEASTF

#define SYBEASTF   20089 /* VMS: Unable to setmode for control_c ast. */

Definition at line 1022 of file sybdb.h.

◆ SYBEASTL

#define SYBEASTL   20197 /* Synchronous I/O attempted at AST level. */

Definition at line 1130 of file sybdb.h.

◆ SYBEASUL

#define SYBEASUL   20043 /* Attempt to set unknown loginrec field. */

Definition at line 976 of file sybdb.h.

◆ SYBEATTNACK

#define SYBEATTNACK   20296 /* Timed out waiting for server to acknowledge attention." */

Definition at line 1229 of file sybdb.h.

◆ SYBEAUTN

#define SYBEAUTN   20062 /* Attempt to update the timestamp of a table which has no timestamp column. */

Definition at line 995 of file sybdb.h.

◆ SYBEBADPK

#define SYBEBADPK   20201 /* Packet size of %1! not supported. -- size of %2! used instead. */

Definition at line 1134 of file sybdb.h.

◆ SYBEBADTYPE

#define SYBEBADTYPE   20254 /* Illegal value for type parameter given to %1!. */

Definition at line 1187 of file sybdb.h.

◆ SYBEBBCI

#define SYBEBBCI   20068 /* Batch successfully bulk-copied to SQL Server. */

Definition at line 1001 of file sybdb.h.

◆ SYBEBBFL

#define SYBEBBFL   20297 /* -001- Batch failed in bulk-copy to SQL Server */

Definition at line 1230 of file sybdb.h.

◆ SYBEBBL

#define SYBEBBL   20215 /* Bad bindlen parameter passed to dbsetnull() */

Definition at line 1148 of file sybdb.h.

◆ SYBEBCBC

#define SYBEBCBC   20081 /* bcp_columns() must be called before bcp_colfmt() and bcp_colfmt_ps(). */

Definition at line 1014 of file sybdb.h.

◆ SYBEBCBNPR

#define SYBEBCBNPR   20230 /* bcp_bind(): if varaddr is NULL, prefixlen must be 0 and no terminator should be specified. */

Definition at line 1163 of file sybdb.h.

◆ SYBEBCBNTYP

#define SYBEBCBNTYP   20231 /* 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. */

Definition at line 1164 of file sybdb.h.

◆ SYBEBCBPREF

#define SYBEBCBPREF   20236 /* Illegal prefix length. Legal values are 0, 1, 2 or 4. */

Definition at line 1169 of file sybdb.h.

◆ SYBEBCFO

#define SYBEBCFO   20082 /* Bcp host-files must contain at least one column. */

Definition at line 1015 of file sybdb.h.

◆ SYBEBCHLEN

#define SYBEBCHLEN   20235 /* host_collen should be greater than or equal to -1. */

Definition at line 1168 of file sybdb.h.

◆ SYBEBCIS

#define SYBEBCIS   20075 /* Attempt to bulk-copy an illegally-sized column value to the SQL Server. */

Definition at line 1008 of file sybdb.h.

◆ SYBEBCIT

#define SYBEBCIT   20107 /* It's illegal to use BCP terminators with program variables other than SYBCHAR, SYBBINARY, SYBTEXT, or SYBIMAGE. */

Definition at line 1040 of file sybdb.h.

◆ SYBEBCITBLEN

#define SYBEBCITBLEN   20239 /* bcp_init(): tblname parameter is too long. */

Definition at line 1172 of file sybdb.h.

◆ SYBEBCITBNM

#define SYBEBCITBNM   20238 /* bcp_init(): tblname parameter cannot be NULL. */

Definition at line 1171 of file sybdb.h.

◆ SYBEBCMTXT

#define SYBEBCMTXT   20228 /* bcp_moretext() may be used only when there is at least one text or image column in the server table. */

Definition at line 1161 of file sybdb.h.

◆ SYBEBCNL

#define SYBEBCNL   20105 /* Negative length-prefix found in BCP data-file. */

Definition at line 1038 of file sybdb.h.

◆ SYBEBCNN

#define SYBEBCNN   20073 /* Attempt to bulk-copy a NULL value into Server column %d, which does not accept NULL values. */

Definition at line 1006 of file sybdb.h.

◆ SYBEBCNT

#define SYBEBCNT   20064 /* Attempt to use Bulk Copy with a non-existent Server table. */

Definition at line 997 of file sybdb.h.

◆ SYBEBCOR

#define SYBEBCOR   20074 /* Attempt to bulk-copy an oversized row to the SQL Server. */

Definition at line 1007 of file sybdb.h.

◆ SYBEBCPB

#define SYBEBCPB   20078 /* bcp_bind(), bcp_moretext() and bcp_sendrow() may NOT be used after bcp_init() has been passed a non-NULL input file name. */

Definition at line 1011 of file sybdb.h.

◆ SYBEBCPCTYP

#define SYBEBCPCTYP   20233 /* bcp_colfmt(): If table_colnum is 0, host_type cannot be 0. */

Definition at line 1166 of file sybdb.h.

◆ SYBEBCPI

#define SYBEBCPI   20076 /* bcp_init() must be called before any other bcp routines. */

Definition at line 1009 of file sybdb.h.

◆ SYBEBCPN

#define SYBEBCPN   20077 /* 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. */

Definition at line 1010 of file sybdb.h.

◆ SYBEBCPOPT

#define SYBEBCPOPT   20294 /* The option cannot be called while a bulk copy operation is progress. */

Definition at line 1227 of file sybdb.h.

◆ SYBEBCPREC

#define SYBEBCPREC   20229 /* Column %1!: Illegal precision value encountered. */

Definition at line 1162 of file sybdb.h.

◆ SYBEBCPREF

#define SYBEBCPREF   20237 /* Illegal prefix length. Legal values are -1, 0, 1, 2 or 4. */

Definition at line 1170 of file sybdb.h.

◆ SYBEBCRE

#define SYBEBCRE   20070 /* I/O error while reading bcp data-file. */

Definition at line 1003 of file sybdb.h.

◆ SYBEBCRO

#define SYBEBCRO   20111 /* The BCP hostfile '%s' contains only %ld rows. It was impossible to read the requested %ld rows. */

Definition at line 1044 of file sybdb.h.

◆ SYBEBCSA

#define SYBEBCSA   20108 /* The BCP hostfile '%s' contains only %ld rows. Skipping all of these rows is not allowed. */

Definition at line 1041 of file sybdb.h.

◆ SYBEBCSET

#define SYBEBCSET   20221 /* Unknown character-set encountered." */

Definition at line 1154 of file sybdb.h.

◆ SYBEBCSI

#define SYBEBCSI   20106 /* Host-file columns may be skipped only when copying INto the Server. */

Definition at line 1039 of file sybdb.h.

◆ SYBEBCSNDROW

#define SYBEBCSNDROW   20240 /* bcp_sendrow() may NOT be called unless all text data for the previous row has been sent using bcp_moretext(). */

Definition at line 1173 of file sybdb.h.

◆ SYBEBCSNTYP

#define SYBEBCSNTYP   20232 /* 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. */

Definition at line 1165 of file sybdb.h.

◆ SYBEBCUC

#define SYBEBCUC   20085 /* Bcp: Unable to close host data-file. */

Definition at line 1018 of file sybdb.h.

◆ SYBEBCUO

#define SYBEBCUO   20084 /* Bcp: Unable to open host data-file. */

Definition at line 1017 of file sybdb.h.

◆ SYBEBCVH

#define SYBEBCVH   20083 /* bcp_exec() may be called only after bcp_init() has been passed a valid host file. */

Definition at line 1016 of file sybdb.h.

◆ SYBEBCVLEN

#define SYBEBCVLEN   20234 /* varlen should be greater than or equal to -1. */

Definition at line 1167 of file sybdb.h.

◆ SYBEBCWE

#define SYBEBCWE   20072 /* I/O error while writing bcp data-file. */

Definition at line 1005 of file sybdb.h.

◆ SYBEBDIO

#define SYBEBDIO   20063 /* Bad bulk-copy direction. Must be either IN or OUT. */

Definition at line 996 of file sybdb.h.

◆ SYBEBEOF

#define SYBEBEOF   20104 /* Unexpected EOF encountered in BCP data-file. */

Definition at line 1037 of file sybdb.h.

◆ SYBEBIHC

#define SYBEBIHC   20103 /* Incorrect host-column number found in bcp format-file. */

Definition at line 1036 of file sybdb.h.

◆ SYBEBIVI

#define SYBEBIVI   20080 /* bcp_columns(), bcp_colfmt() and bcp_colfmt_ps() may be used only after bcp_init() has been passed a valid input file. */

Definition at line 1013 of file sybdb.h.

◆ SYBEBNCR

#define SYBEBNCR   20024 /* Attempt to bind user variable to a non-existent compute row. */

Definition at line 957 of file sybdb.h.

◆ SYBEBNUM

#define SYBEBNUM   20214 /* Bad numbytes parameter passed to dbstrcpy() */

Definition at line 1147 of file sybdb.h.

◆ SYBEBOOL

#define SYBEBOOL   20293 /* Boolean parameters must be TRUE or FALSE. */

Definition at line 1226 of file sybdb.h.

◆ SYBEBPKS

#define SYBEBPKS   20193 /* In DBSETLPACKET(), the packet size parameter must be between 0 and 999999. */

Definition at line 1126 of file sybdb.h.

◆ SYBEBPREC

#define SYBEBPREC   20216 /* Illegal precision specified */

Definition at line 1149 of file sybdb.h.

◆ SYBEBPROBADDEF

#define SYBEBPROBADDEF   20249 /* bcp protocol error: illegal default column id received. */

Definition at line 1182 of file sybdb.h.

◆ SYBEBPROBADLEN

#define SYBEBPROBADLEN   20251 /* bcp protocol error: illegal datatype length received. */

Definition at line 1184 of file sybdb.h.

◆ SYBEBPROBADPREC

#define SYBEBPROBADPREC   20252 /* bcp protocol error: illegal precision value received. */

Definition at line 1185 of file sybdb.h.

◆ SYBEBPROBADSCL

#define SYBEBPROBADSCL   20253 /* bcp protocol error: illegal scale value received. */

Definition at line 1186 of file sybdb.h.

◆ SYBEBPROBADTYP

#define SYBEBPROBADTYP   20250 /* bcp protocol error: unknown column datatype. */

Definition at line 1183 of file sybdb.h.

◆ SYBEBPROCOL

#define SYBEBPROCOL   20241 /* bcp protocol error: returned column count differs from the actual number of columns received. */

Definition at line 1174 of file sybdb.h.

◆ SYBEBPRODEF

#define SYBEBPRODEF   20242 /* bcp protocol error: expected default information and got none. */

Definition at line 1175 of file sybdb.h.

◆ SYBEBPRODEFID

#define SYBEBPRODEFID   20244 /* bcp protocol error: default column id and actual column id are not same */

Definition at line 1177 of file sybdb.h.

◆ SYBEBPRODEFTYP

#define SYBEBPRODEFTYP   20246 /* bcp protocol error: default value datatype differs from column datatype. */

Definition at line 1179 of file sybdb.h.

◆ SYBEBPROEXTDEF

#define SYBEBPROEXTDEF   20247 /* bcp protocol error: more than one row of default information received. */

Definition at line 1180 of file sybdb.h.

◆ SYBEBPROEXTRES

#define SYBEBPROEXTRES   20248 /* bcp protocol error: unexpected set of results received. */

Definition at line 1181 of file sybdb.h.

◆ SYBEBPRONODEF

#define SYBEBPRONODEF   20245 /* bcp protocol error: default value received for column that does not have default. */

Definition at line 1178 of file sybdb.h.

◆ SYBEBPRONUMDEF

#define SYBEBPRONUMDEF   20243 /* bcp protocol error: expected number of defaults differs from the actual number of defaults received. */

Definition at line 1176 of file sybdb.h.

◆ SYBEBRFF

#define SYBEBRFF   20100 /* I/O error while reading bcp format-file. */

Definition at line 1033 of file sybdb.h.

◆ SYBEBSCALE

#define SYBEBSCALE   20217 /* Illegal scale specified */

Definition at line 1150 of file sybdb.h.

◆ SYBEBTMT

#define SYBEBTMT   20095 /* Attempt to send too much TEXT data via the bcp_moretext() call. */

Definition at line 1028 of file sybdb.h.

◆ SYBEBTOK

#define SYBEBTOK   20020 /* Bad token from SQL Server: Data-stream processing out of sync. */

Definition at line 953 of file sybdb.h.

◆ SYBEBTYP

#define SYBEBTYP   20023 /* Unknown bind type passed to DB-LIBRARY function. */

Definition at line 956 of file sybdb.h.

◆ SYBEBTYPSRV

#define SYBEBTYPSRV   20220 /* Datatype is not supported by the server. */

Definition at line 1153 of file sybdb.h.

◆ SYBEBUCE

#define SYBEBUCE   20087 /* Bcp: Unable to close error-file. */

Definition at line 1020 of file sybdb.h.

◆ SYBEBUCF

#define SYBEBUCF   20099 /* Bcp: Unable to close format-file. */

Definition at line 1032 of file sybdb.h.

◆ SYBEBUDF

#define SYBEBUDF   20102 /* Bcp: Unrecognized datatype found in format-file. */

Definition at line 1035 of file sybdb.h.

◆ SYBEBUFF

#define SYBEBUFF   20147 /* Bcp: Unable to create format-file. */

Definition at line 1080 of file sybdb.h.

◆ SYBEBUFL

#define SYBEBUFL   20005 /* DB-LIBRARY internal error - send buffer length corrupted. */

Definition at line 938 of file sybdb.h.

◆ SYBEBULKINSERT

#define SYBEBULKINSERT   20599 /* cannot build bulk insert statement */

Definition at line 1233 of file sybdb.h.

◆ SYBEBUOE

#define SYBEBUOE   20086 /* Bcp: Unable to open error-file. */

Definition at line 1019 of file sybdb.h.

◆ SYBEBUOF

#define SYBEBUOF   20098 /* Bcp: Unable to open format-file. */

Definition at line 1031 of file sybdb.h.

◆ SYBEBWEF

#define SYBEBWEF   20088 /* I/O error while writing bcp error-file. */

Definition at line 1021 of file sybdb.h.

◆ SYBEBWFF

#define SYBEBWFF   20101 /* I/O error while writing bcp format-file. */

Definition at line 1034 of file sybdb.h.

◆ SYBECAP

#define SYBECAP   20203 /* DB-Library capabilities not accepted by the Server. */

Definition at line 1136 of file sybdb.h.

◆ SYBECAPTYP

#define SYBECAPTYP   20213 /* Unexpected capability type in CAPABILITY datastream. */

Definition at line 1146 of file sybdb.h.

◆ SYBECDNS

#define SYBECDNS   20031 /* Datastream indicates that a compute column is derived from a non-existent select-list member. */

Definition at line 964 of file sybdb.h.

◆ SYBECDOMAIN

#define SYBECDOMAIN   20218 /* Source field value is not within the domain of legal values. */

Definition at line 1151 of file sybdb.h.

◆ SYBECINTERNAL

#define SYBECINTERNAL   20219 /* Internal Conversion error. */

Definition at line 1152 of file sybdb.h.

◆ SYBECLOS

#define SYBECLOS   20056 /* Error in closing network connection. */

Definition at line 989 of file sybdb.h.

◆ SYBECLOSEIN

#define SYBECLOSEIN   20292 /* Unable to close interface file. */

Definition at line 1225 of file sybdb.h.

◆ SYBECLPR

#define SYBECLPR   20051 /* Data-conversion resulted in loss of precision. */

Definition at line 984 of file sybdb.h.

◆ SYBECNOR

#define SYBECNOR   20026 /* Column number out of range. */

Definition at line 959 of file sybdb.h.

◆ SYBECNOV

#define SYBECNOV   20052 /* Attempt to set variable to NULL resulted in overflow. */

Definition at line 985 of file sybdb.h.

◆ SYBECOFL

#define SYBECOFL   20049 /* Data-conversion resulted in overflow. */

Definition at line 982 of file sybdb.h.

◆ SYBECOLSIZE

#define SYBECOLSIZE   22000 /* Invalid column information structure size */

Definition at line 1234 of file sybdb.h.

◆ SYBECONN

#define SYBECONN   20009 /* Unable to connect socket -- SQL Server is unavailable or does not exist. */

Definition at line 942 of file sybdb.h.

◆ SYBECRNC

#define SYBECRNC   20116 /* The current row is not a result of compute clause %d, so it is illegal to attempt to extract that data from this row. */

Definition at line 1049 of file sybdb.h.

◆ SYBECRSAGR

#define SYBECRSAGR   20263 /* Aggregate functions are not allowed in a cursor statement. */

Definition at line 1196 of file sybdb.h.

◆ SYBECRSBROL

#define SYBECRSBROL   20266 /* Backward scrolling cannot be used in a forward scrolling cursor. */

Definition at line 1199 of file sybdb.h.

◆ SYBECRSBSKEY

#define SYBECRSBSKEY   20268 /* Keyset cannot be scrolled backward in mixed cursors with a previous fetch type. */

Definition at line 1201 of file sybdb.h.

◆ SYBECRSBUFR

#define SYBECRSBUFR   20260 /* Row buffering should not be turned on when using cursor APIs. */

Definition at line 1193 of file sybdb.h.

◆ SYBECRSDIS

#define SYBECRSDIS   20262 /* Cursor statement contains one of the disallowed phrases 'compute', 'union', 'for browse', or 'select into'. */

Definition at line 1195 of file sybdb.h.

◆ SYBECRSFLAST

#define SYBECRSFLAST   20265 /* Fetch type LAST requires fully keyset driven cursors. */

Definition at line 1198 of file sybdb.h.

◆ SYBECRSFRAND

#define SYBECRSFRAND   20264 /* Fetch types RANDOM and RELATIVE can only be used within the keyset of keyset driven cursors. */

Definition at line 1197 of file sybdb.h.

◆ SYBECRSFROWN

#define SYBECRSFROWN   20267 /* Row number to be fetched is outside valid range. */

Definition at line 1200 of file sybdb.h.

◆ SYBECRSFTYPE

#define SYBECRSFTYPE   20280 /* Unknown fetch type. */

Definition at line 1213 of file sybdb.h.

◆ SYBECRSINV

#define SYBECRSINV   20277 /* Invalid cursor statement. */

Definition at line 1210 of file sybdb.h.

◆ SYBECRSINVALID

#define SYBECRSINVALID   20281 /* The cursor handle is invalid. */

Definition at line 1214 of file sybdb.h.

◆ SYBECRSMROWS

#define SYBECRSMROWS   20282 /* Multiple rows are returned, only one is expected. */

Definition at line 1215 of file sybdb.h.

◆ SYBECRSNOBIND

#define SYBECRSNOBIND   20279 /* Cursor bind must be called prior to updating cursor */

Definition at line 1212 of file sybdb.h.

◆ SYBECRSNOCOUNT

#define SYBECRSNOCOUNT   20270 /* The DBNOCOUNT option should not be turned on when doing updates or deletes with dbcursor(). */

Definition at line 1203 of file sybdb.h.

◆ SYBECRSNOFREE

#define SYBECRSNOFREE   20261 /* The DBNOAUTOFREE option should not be turned on when using cursor APIs. */

Definition at line 1194 of file sybdb.h.

◆ SYBECRSNOIND

#define SYBECRSNOIND   20256 /* One of the tables involved in the cursor statement does not have a unique index. */

Definition at line 1189 of file sybdb.h.

◆ SYBECRSNOKEYS

#define SYBECRSNOKEYS   20278 /* The entire keyset must be defined for KEYSET cursors. */

Definition at line 1211 of file sybdb.h.

◆ SYBECRSNOLEN

#define SYBECRSNOLEN   20284 /* No unique index found. */

Definition at line 1217 of file sybdb.h.

◆ SYBECRSNOPTCC

#define SYBECRSNOPTCC   20285 /* No OPTCC was found. */

Definition at line 1218 of file sybdb.h.

◆ SYBECRSNORDER

#define SYBECRSNORDER   20286 /* The order of clauses must be from, where, and order by. */

Definition at line 1219 of file sybdb.h.

◆ SYBECRSNORES

#define SYBECRSNORES   20255 /* Cursor statement generated no results. */

Definition at line 1188 of file sybdb.h.

◆ SYBECRSNOTABLE

#define SYBECRSNOTABLE   20287 /* Table name is NULL. */

Definition at line 1220 of file sybdb.h.

◆ SYBECRSNOUPD

#define SYBECRSNOUPD   20276 /* Update or delete operation did not affect any rows. */

Definition at line 1209 of file sybdb.h.

◆ SYBECRSNOWHERE

#define SYBECRSNOWHERE   20273 /* A WHERE clause is not allowed in a cursor update or insert. */

Definition at line 1206 of file sybdb.h.

◆ SYBECRSNROWS

#define SYBECRSNROWS   20283 /* No rows returned, at least one is expected. */

Definition at line 1216 of file sybdb.h.

◆ SYBECRSNUNIQUE

#define SYBECRSNUNIQUE   20288 /* No unique keys associated with this view. */

Definition at line 1221 of file sybdb.h.

◆ SYBECRSORD

#define SYBECRSORD   20259 /* Only fully keyset driven cursors can have 'order by', ' group by', or 'having' phrases. */

Definition at line 1192 of file sybdb.h.

◆ SYBECRSRO

#define SYBECRSRO   20269 /* Data locking or modifications cannot be made in a READONLY cursor. */

Definition at line 1202 of file sybdb.h.

◆ SYBECRSSET

#define SYBECRSSET   20274 /* A SET clause is required for a cursor update or insert. */

Definition at line 1207 of file sybdb.h.

◆ SYBECRSTAB

#define SYBECRSTAB   20271 /* Table name must be determined in operations involving data locking or modifications. */

Definition at line 1204 of file sybdb.h.

◆ SYBECRSUPDNB

#define SYBECRSUPDNB   20272 /* Update or insert operations cannot use bind variables when binding type is NOBIND. */

Definition at line 1205 of file sybdb.h.

◆ SYBECRSUPDTAB

#define SYBECRSUPDTAB   20275 /* Update or insert operations using bind variables require single table cursors. */

Definition at line 1208 of file sybdb.h.

◆ SYBECRSVAR

#define SYBECRSVAR   20289 /* There is no valid address associated with this bind. */

Definition at line 1222 of file sybdb.h.

◆ SYBECRSVIEW

#define SYBECRSVIEW   20257 /* A view cannot be joined with another table or a view in a cursor statement. */

Definition at line 1190 of file sybdb.h.

◆ SYBECRSVIIND

#define SYBECRSVIIND   20258 /* The view used in the cursor statement does not include all the unique index columns of the underlying tables. */

Definition at line 1191 of file sybdb.h.

◆ SYBECS

#define SYBECS   20299 /* -004- cs context Error */

Definition at line 1232 of file sybdb.h.

◆ SYBECSYN

#define SYBECSYN   20050 /* Attempt to convert data stopped by syntax error in source field. */

Definition at line 983 of file sybdb.h.

◆ SYBECUFL

#define SYBECUFL   20048 /* Data-conversion resulted in underflow. */

Definition at line 981 of file sybdb.h.

◆ SYBECWLL

#define SYBECWLL   20123 /* Attempt to set column width less than 1. */

Definition at line 1056 of file sybdb.h.

◆ SYBEDBPS

#define SYBEDBPS   20011 /* Maximum number of DBPROCESSes already allocated. */

Definition at line 944 of file sybdb.h.

◆ SYBEDCL

#define SYBEDCL   20298 /* -004- DCL Error */

Definition at line 1231 of file sybdb.h.

◆ SYBEDDNE

#define SYBEDDNE   20047 /* DBPROCESS is dead or not enabled. */

Definition at line 980 of file sybdb.h.

◆ SYBEDIVZ

#define SYBEDIVZ   20196 /* Attempt to divide by $0.00 in function %1!. */

Definition at line 1129 of file sybdb.h.

◆ SYBEDNTI

#define SYBEDNTI   20094 /* Attempt to use dbtxtsput() to put a new text-timestamp into a column whose datatype is neither SYBTEXT nor SYBIMAGE. */

Definition at line 1027 of file sybdb.h.

◆ SYBEDPOR

#define SYBEDPOR   20149 /* Out-of-range datepart constant. */

Definition at line 1082 of file sybdb.h.

◆ SYBEDVOR

#define SYBEDVOR   20152 /* Day values must be between 1 and 7. */

Definition at line 1085 of file sybdb.h.

◆ SYBEECAN

#define SYBEECAN   20184 /* Attempted to cancel unrequested event notification. */

Definition at line 1117 of file sybdb.h.

◆ SYBEECRT

#define SYBEECRT   20183 /* Must call dbregdefine() before dbregcreate(). */

Definition at line 1116 of file sybdb.h.

◆ SYBEEINI

#define SYBEEINI   20182 /* Must call dbreginit() before dbregraise(). */

Definition at line 1115 of file sybdb.h.

◆ SYBEEQVA

#define SYBEEQVA   20059 /* Error in queueing VMS AST routine. */

Definition at line 992 of file sybdb.h.

◆ SYBEERRLABEL

#define SYBEERRLABEL   20295 /* An illegal value was returned from the security label handler. */

Definition at line 1228 of file sybdb.h.

◆ SYBEESSL

#define SYBEESSL   20172 /* Login security level entered does not agree with operating system level */

Definition at line 1105 of file sybdb.h.

◆ SYBEETD

#define SYBEETD   20164 /* Failure to send the expected amount of TEXT or IMAGE data via dbmoretext(). */

Definition at line 1097 of file sybdb.h.

◆ SYBEEUNR

#define SYBEEUNR   20185 /* Unsolicited event notification received. */

Definition at line 1118 of file sybdb.h.

◆ SYBEEVOP

#define SYBEEVOP   20178 /* Called dbregwatch() with a bad options parameter. */

Definition at line 1111 of file sybdb.h.

◆ SYBEEVST

#define SYBEEVST   20181 /* Must initiate a transaction before calling dbregparam(). */

Definition at line 1114 of file sybdb.h.

◆ SYBEFCON

#define SYBEFCON   20002 /* SQL Server connection failed. */

Definition at line 935 of file sybdb.h.

◆ SYBEFENC

#define SYBEFENC   20222 /* Password Encryption failed." */

Definition at line 1155 of file sybdb.h.

◆ SYBEFGTL

#define SYBEFGTL   20122 /* Bcp: Row number of the first row to be copied cannot be greater than the row number for the last row to be copied. */

Definition at line 1055 of file sybdb.h.

◆ SYBEFMODE

#define SYBEFMODE   20167 /* Read/Write/Append mode denied on file. */

Definition at line 1100 of file sybdb.h.

◆ SYBEFRES

#define SYBEFRES   20223 /* Challenge-Response function failed.", */

Definition at line 1156 of file sybdb.h.

◆ SYBEFSHD

#define SYBEFSHD   20132 /* Error in attempting to find the Sybase home directory. */

Definition at line 1065 of file sybdb.h.

◆ SYBEFUNC

#define SYBEFUNC   20204 /* Functionality not supported at the specified version level. */

Definition at line 1137 of file sybdb.h.

◆ SYBEGENOS

#define SYBEGENOS   20161 /* General Operating System Error. */

Definition at line 1094 of file sybdb.h.

◆ SYBEICN

#define SYBEICN   20038 /* Invalid computeid or compute column number. */

Definition at line 971 of file sybdb.h.

◆ SYBEICONV2BIG

#define SYBEICONV2BIG   2404 /* Buffer overflow converting characters from client into server's character set.*/

Definition at line 929 of file sybdb.h.

◆ SYBEICONVAVAIL

#define SYBEICONVAVAIL   2401 /* Character set conversion is not available between client character set '%.*s' and server character set '%.*s'.*/

Definition at line 926 of file sybdb.h.

◆ SYBEICONVI

#define SYBEICONVI   2403 /* Some character(s) could not be converted into client's character set. Unconverted bytes were changed to question marks ('?').*/

Definition at line 928 of file sybdb.h.

◆ SYBEICONVIU

#define SYBEICONVIU   2400 /* Some character(s) could not be converted into client's character set. */

Definition at line 925 of file sybdb.h.

◆ SYBEICONVO

#define SYBEICONVO   2402 /* Error converting characters into server's character set. Some character(s) could not be converted.*/

Definition at line 927 of file sybdb.h.

◆ SYBEIDCL

#define SYBEIDCL   20143 /* Illegal datetime column length returned by DataServer. Legal datetime lengths are 4 and 8 bytes. */

Definition at line 1076 of file sybdb.h.

◆ SYBEIDECCL

#define SYBEIDECCL   20227 /* Invalid decimal column length returned by the server. */

Definition at line 1160 of file sybdb.h.

◆ SYBEIFCL

#define SYBEIFCL   20145 /* Illegal floating-point column length returned by DataServer. Legal floating-point lengths are 4 and 8 bytes. */

Definition at line 1078 of file sybdb.h.

◆ SYBEIFNB

#define SYBEIFNB   20065 /* Illegal field number passed to bcp_control(). */

Definition at line 998 of file sybdb.h.

◆ SYBEIICL

#define SYBEIICL   20025 /* Illegal integer column length returned by SQL Server. Legal integer lengths are 1, 2, and 4 bytes. */

Definition at line 958 of file sybdb.h.

◆ SYBEIMCL

#define SYBEIMCL   20144 /* Illegal money column length returned by DataServer. Legal money lengths are 4 and 8 bytes. */

Definition at line 1077 of file sybdb.h.

◆ SYBEINLN

#define SYBEINLN   20016 /* Interface file: unexpected end-of-line. */

Definition at line 949 of file sybdb.h.

◆ SYBEINTF

#define SYBEINTF   20012 /* Server name not found in interface file */

Definition at line 945 of file sybdb.h.

◆ SYBEINUMCL

#define SYBEINUMCL   20226 /* Invalid numeric column length returned by the server. */

Definition at line 1159 of file sybdb.h.

◆ SYBEIPV

#define SYBEIPV   20194 /* %1! is an illegal value for the %2! parameter of %3!. */

Definition at line 1127 of file sybdb.h.

◆ SYBEISOI

#define SYBEISOI   20142 /* Invalid sort-order information found. */

Definition at line 1075 of file sybdb.h.

◆ SYBEISRVPREC

#define SYBEISRVPREC   20224 /* Illegal precision value returned by the server. */

Definition at line 1157 of file sybdb.h.

◆ SYBEISRVSCL

#define SYBEISRVSCL   20225 /* Illegal scale value returned by the server. */

Definition at line 1158 of file sybdb.h.

◆ SYBEITIM

#define SYBEITIM   20021 /* Illegal timeout value specified. */

Definition at line 954 of file sybdb.h.

◆ SYBEIVERS

#define SYBEIVERS   20206 /* Illegal version level specified. */

Definition at line 1139 of file sybdb.h.

◆ SYBEKBCI

#define SYBEKBCI   20069 /* Bcp: 1000 rows sent to SQL Server. */

Definition at line 1002 of file sybdb.h.

◆ SYBEKBCO

#define SYBEKBCO   20067 /* 1000 rows successfully bulk-copied to host-file. */

Definition at line 1000 of file sybdb.h.

◆ SYBELBLEN

#define SYBELBLEN   20211 /* Security labels should be less than 256 characters long. */

Definition at line 1144 of file sybdb.h.

◆ SYBEMEM

#define SYBEMEM   20010 /* Unable to allocate sufficient memory */

Definition at line 943 of file sybdb.h.

◆ SYBEMOV

#define SYBEMOV   20195 /* Money arithmetic resulted in overflow in function %1!. */

Definition at line 1128 of file sybdb.h.

◆ SYBEMPLL

#define SYBEMPLL   20112 /* Attempt to set maximum number of DBPROCESSes lower than 1. */

Definition at line 1045 of file sybdb.h.

◆ SYBEMVOR

#define SYBEMVOR   20151 /* Month values must be between 1 and 12. */

Definition at line 1084 of file sybdb.h.

◆ SYBENBUF

#define SYBENBUF   20175 /* called dbsendpassthru() with a NULL buf pointer. */

Definition at line 1108 of file sybdb.h.

◆ SYBENBVP

#define SYBENBVP   20153 /* Cannot pass dbsetnull() a NULL bindval pointer. */

Definition at line 1086 of file sybdb.h.

◆ SYBENDC

#define SYBENDC   20150 /* Cannot have negative component in date in numeric form. */

Definition at line 1083 of file sybdb.h.

◆ SYBENDTP

#define SYBENDTP   20155 /* Called dbdatecrack() with a NULL datetime parameter. */

Definition at line 1088 of file sybdb.h.

◆ SYBENEG

#define SYBENEG   20210 /* Negotiated login attempt failed. */

Definition at line 1143 of file sybdb.h.

◆ SYBENEHA

#define SYBENEHA   20179 /* Called dbreghandle() with a NULL handler parameter. */

Definition at line 1112 of file sybdb.h.

◆ SYBENHAN

#define SYBENHAN   20174 /* called dbrecvpassthru() with a NULL handler parameter. */

Definition at line 1107 of file sybdb.h.

◆ SYBENLNL

#define SYBENLNL   20173 /* Program not linked with specified network library. */

Definition at line 1106 of file sybdb.h.

◆ SYBENMOB

#define SYBENMOB   20039 /* No such member of 'order by' clause. */

Definition at line 972 of file sybdb.h.

◆ SYBENOEV

#define SYBENOEV   20200 /* dbpoll() cannot be called if registered procedure notifications have been disabled. */

Definition at line 1133 of file sybdb.h.

◆ SYBENOTI

#define SYBENOTI   20177 /* No event handler installed. */

Definition at line 1110 of file sybdb.h.

◆ SYBENOVALUE

#define SYBENOVALUE   20290 /* Security labels require both a name and a value */

Definition at line 1223 of file sybdb.h.

◆ SYBENPRM

#define SYBENPRM   20027 /* NULL parameter not allowed for this dboption. */

Definition at line 960 of file sybdb.h.

◆ SYBENSIP

#define SYBENSIP   20045 /* Negative starting index passed to dbstrcpy(). */

Definition at line 978 of file sybdb.h.

◆ SYBENTLL

#define SYBENTLL   20042 /* Name too long for loginrec field. */

Definition at line 975 of file sybdb.h.

◆ SYBENTST

#define SYBENTST   20170 /* The file being opened must be a stream_lf. */

Definition at line 1103 of file sybdb.h.

◆ SYBENTTN

#define SYBENTTN   20093 /* Attempt to use dbtxtsput() to put a new text-timestamp into a non-existent data row. */

Definition at line 1026 of file sybdb.h.

◆ SYBENULL

#define SYBENULL   20109 /* NULL DBPROCESS pointer passed to DB-Library. */

Definition at line 1042 of file sybdb.h.

◆ SYBENULP

#define SYBENULP   20176 /* Called %s with a NULL %s parameter. */

Definition at line 1109 of file sybdb.h.

◆ SYBENUM

#define SYBENUM   20159 /* Incorrect number of arguments given to DB-Library. */

Definition at line 1092 of file sybdb.h.

◆ SYBENXID

#define SYBENXID   20036 /* The Server did not grant us a distributed-transaction ID. */

Definition at line 969 of file sybdb.h.

◆ SYBEONCE

#define SYBEONCE   20207 /* Function can be called only once. */

Definition at line 1140 of file sybdb.h.

◆ SYBEOOB

#define SYBEOOB   20022 /* Error in sending out-of-band data to SQL Server. */

Definition at line 955 of file sybdb.h.

◆ SYBEOPIN

#define SYBEOPIN   20015 /* Could not open interface file. */

Definition at line 948 of file sybdb.h.

◆ SYBEOPNA

#define SYBEOPNA   20121 /* The text/image facility is available only when using a SQL Server whose version number is 4.0 or greater. */

Definition at line 1054 of file sybdb.h.

◆ SYBEOPTNO

#define SYBEOPTNO   20163 /* Option is not allowed or is unreconized */

Definition at line 1096 of file sybdb.h.

◆ SYBEOREN

#define SYBEOREN   20141 /* Warning: an out-of-range error-number was encountered in dblib.loc. The maximum permissible error-number is defined as DBERRCOUNT in sybdb.h. */

Definition at line 1074 of file sybdb.h.

◆ SYBEORPF

#define SYBEORPF   20096 /* Attempt to set remote password would overflow the login-record's remote-password field. */

Definition at line 1029 of file sybdb.h.

◆ SYBEOSSL

#define SYBEOSSL   20171 /* Operating system login level not in range of Secure SQL Server */

Definition at line 1104 of file sybdb.h.

◆ SYBEPAGE

#define SYBEPAGE   20162 /* wrong resource type or length given for dbpage() operation. */

Definition at line 1095 of file sybdb.h.

◆ SYBEPOLL

#define SYBEPOLL   20199 /* Only one dbpoll() can be active at a time. */

Definition at line 1132 of file sybdb.h.

◆ SYBEPORT

#define SYBEPORT   2500 /* Both port and instance specified */

Definition at line 933 of file sybdb.h.

◆ SYBEPRTF

#define SYBEPRTF   20191 /* dbtracestring() may only be called from a printfunc(). */

Definition at line 1124 of file sybdb.h.

◆ SYBEPWD

#define SYBEPWD   20014 /* Incorrect password. */

Definition at line 947 of file sybdb.h.

◆ SYBERDCN

#define SYBERDCN   20053 /* Requested data-conversion does not exist. */

Definition at line 986 of file sybdb.h.

◆ SYBERDNR

#define SYBERDNR   20044 /* Attempt to retrieve data from a non-existent row. */

Definition at line 977 of file sybdb.h.

◆ SYBEREAD

#define SYBEREAD   20004 /* Read from SQL Server failed. */

Definition at line 937 of file sybdb.h.

◆ SYBERESP

#define SYBERESP   20205 /* Response function address passed to dbresponse() must be non-NULL. */

Definition at line 1138 of file sybdb.h.

◆ SYBERFILE

#define SYBERFILE   20166 /* "Can not open resource file." */

Definition at line 1099 of file sybdb.h.

◆ SYBERPCS

#define SYBERPCS   20186 /* Must call dbrpcinit() before dbrpcparam(). */

Definition at line 1119 of file sybdb.h.

◆ SYBERPIL

#define SYBERPIL   20113 /* It is illegal to pass -1 to dbrpcparam() for the datalen of parameters which are of type SYBCHAR, SYBVARCHAR, SYBBINARY, or SYBVARBINARY. */

Definition at line 1046 of file sybdb.h.

◆ SYBERPNA

#define SYBERPNA   20120 /* The RPC facility is available only when using a SQL Server whose version number is 4.0 or greater. */

Definition at line 1053 of file sybdb.h.

◆ SYBERPND

#define SYBERPND   20019 /* Attempt to initiate a new SQL Server operation with results pending. */

Definition at line 952 of file sybdb.h.

◆ SYBERPNULL

#define SYBERPNULL   20208 /* value parameter for dbprcparam() can be NULL, only if the datalen parameter is 0 */

Definition at line 1141 of file sybdb.h.

◆ SYBERPTXTIM

#define SYBERPTXTIM   20209 /* RPC parameters cannot be of type Text/Image. */

Definition at line 1142 of file sybdb.h.

◆ SYBERPUL

#define SYBERPUL   20114 /* 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. */

Definition at line 1047 of file sybdb.h.

◆ SYBERTCC

#define SYBERTCC   20117 /* dbreadtext() may not be used to receive the results of a query which contains a COMPUTE clause. */

Definition at line 1050 of file sybdb.h.

◆ SYBERTSC

#define SYBERTSC   20118 /* dbreadtext() may only be used to receive the results of a query which contains a single result column. */

Definition at line 1051 of file sybdb.h.

◆ SYBERTYPE

#define SYBERTYPE   20165 /* Invalid resource type given to DB-Library. */

Definition at line 1098 of file sybdb.h.

◆ SYBERXID

#define SYBERXID   20037 /* The Server did not recognize our distributed-transaction ID. */

Definition at line 970 of file sybdb.h.

◆ SYBESECURE

#define SYBESECURE   20202 /* Secure Server function not supported in this version. */

Definition at line 1135 of file sybdb.h.

◆ SYBESEFA

#define SYBESEFA   20198 /* DBSETNOTIFS cannot be called if connections are present. */

Definition at line 1131 of file sybdb.h.

◆ SYBESEOF

#define SYBESEOF   20017 /* Unexpected EOF from SQL Server. */

Definition at line 950 of file sybdb.h.

◆ SYBESFOV

#define SYBESFOV   20054 /* dbsafestr() overflowed its destination buffer. */

Definition at line 987 of file sybdb.h.

◆ SYBESLCT

#define SYBESLCT   20168 /* Could not select or copy field specified */

Definition at line 1101 of file sybdb.h.

◆ SYBESMSG

#define SYBESMSG   20018 /* General SQL Server error: Check messages from the SQL Server. */

Definition at line 951 of file sybdb.h.

◆ SYBESOCK

#define SYBESOCK   20008 /* Unable to open socket */

Definition at line 941 of file sybdb.h.

◆ SYBESPID

#define SYBESPID   20154 /* Called dbspid() with a NULL dbproc. */

Definition at line 1087 of file sybdb.h.

◆ SYBESYNC

#define SYBESYNC   20001 /* Read attempted while out of synchronization with SQL Server. */

Definition at line 934 of file sybdb.h.

◆ SYBETDSVER

#define SYBETDSVER   2410 /* Cannot bcp with TDSVER < 5.0 */

Definition at line 932 of file sybdb.h.

◆ SYBETEXS

#define SYBETEXS   20188 /* Called dbmoretext() with a bad size parameter. */

Definition at line 1121 of file sybdb.h.

◆ SYBETIME

#define SYBETIME   20003 /* SQL Server connection timed out. */

Definition at line 936 of file sybdb.h.

◆ SYBETMCF

#define SYBETMCF   20126 /* Attempt to install too many custom formats via dbfmtinstall(). */

Definition at line 1059 of file sybdb.h.

◆ SYBETMTD

#define SYBETMTD   20092 /* Attempt to send too much TEXT data via the dbmoretext() call. */

Definition at line 1025 of file sybdb.h.

◆ SYBETPAR

#define SYBETPAR   20187 /* No SYBTEXT or SYBIMAGE parameters were defined. */

Definition at line 1120 of file sybdb.h.

◆ SYBETPTN

#define SYBETPTN   20071 /* Syntax error: only two periods are permitted in table names. */

Definition at line 1004 of file sybdb.h.

◆ SYBETRAC

#define SYBETRAC   20189 /* Attempted to turn off a trace flag that was not on. */

Definition at line 1122 of file sybdb.h.

◆ SYBETRAN

#define SYBETRAN   20180 /* DBPROCESS is being used for another transaction. */

Definition at line 1113 of file sybdb.h.

◆ SYBETRAS

#define SYBETRAS   20190 /* DB-Library internal error - trace structure not found. */

Definition at line 1123 of file sybdb.h.

◆ SYBETRSN

#define SYBETRSN   20192 /* Bad numbytes parameter passed to dbtracestring(). */

Definition at line 1125 of file sybdb.h.

◆ SYBETSIT

#define SYBETSIT   20061 /* Attempt to call dbtsput() with an invalid timestamp. */

Definition at line 994 of file sybdb.h.

◆ SYBETTS

#define SYBETTS   20066 /* 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. */

Definition at line 999 of file sybdb.h.

◆ SYBETYPE

#define SYBETYPE   20160 /* Invalid argument type given to DB-Library. */

Definition at line 1093 of file sybdb.h.

◆ SYBEUACS

#define SYBEUACS   20090 /* VMS: Unable to assign channel to sys$command. */

Definition at line 1023 of file sybdb.h.

◆ SYBEUAVE

#define SYBEUAVE   20057 /* Unable to allocate VMS event flag. */

Definition at line 990 of file sybdb.h.

◆ SYBEUCPT

#define SYBEUCPT   20125 /* Unrecognized custom-format parameter-type encountered in dbstrbuild(). */

Definition at line 1058 of file sybdb.h.

◆ SYBEUCRR

#define SYBEUCRR   20119 /* Internal software error: Unknown connection result reported by * dbpasswd(). */

Definition at line 1052 of file sybdb.h.

◆ SYBEUDTY

#define SYBEUDTY   20060 /* Unknown datatype encountered. */

Definition at line 993 of file sybdb.h.

◆ SYBEUFDS

#define SYBEUFDS   20124 /* Unrecognized format encountered in dbstrbuild(). */

Definition at line 1057 of file sybdb.h.

◆ SYBEUFDT

#define SYBEUFDT   20029 /* Unknown fixed-length datatype encountered. */

Definition at line 962 of file sybdb.h.

◆ SYBEUHST

#define SYBEUHST   20013 /* Unknown host machine name */

Definition at line 946 of file sybdb.h.

◆ SYBEUMSG

#define SYBEUMSG   20212 /* Unknown message-id in MSG datastream. */

Definition at line 1145 of file sybdb.h.

◆ SYBEUNAM

#define SYBEUNAM   20110 /* Unable to get current username from operating system. */

Definition at line 1043 of file sybdb.h.

◆ SYBEUNOP

#define SYBEUNOP   20115 /* Unknown option passed to dbsetopt(). */

Definition at line 1048 of file sybdb.h.

◆ SYBEUNT

#define SYBEUNT   20055 /* Unknown network type found in interface file. */

Definition at line 988 of file sybdb.h.

◆ SYBEURCI

#define SYBEURCI   20135 /* Unable to read copyright information from the dblib localization file. */

Definition at line 1068 of file sybdb.h.

◆ SYBEUREI

#define SYBEUREI   20140 /* Unable to read error information from the dblib localization file. */

Definition at line 1073 of file sybdb.h.

◆ SYBEUREM

#define SYBEUREM   20138 /* Unable to read error mnemonic from the dblib localization file. */

Definition at line 1071 of file sybdb.h.

◆ SYBEURES

#define SYBEURES   20139 /* Unable to read error string from the dblib localization file. */

Definition at line 1072 of file sybdb.h.

◆ SYBEURMI

#define SYBEURMI   20137 /* Unable to read money-format information from the dblib localization file. */

Definition at line 1070 of file sybdb.h.

◆ SYBEUSCT

#define SYBEUSCT   20058 /* Unable to set communications timer. */

Definition at line 991 of file sybdb.h.

◆ SYBEUTDS

#define SYBEUTDS   20146 /* Unrecognized TDS version received from SQL Server. */

Definition at line 1079 of file sybdb.h.

◆ SYBEUVBF

#define SYBEUVBF   20097 /* Attempt to read an unknown version of BCP format-file. */

Definition at line 1030 of file sybdb.h.

◆ SYBEUVDT

#define SYBEUVDT   20028 /* Unknown variable-length datatype encountered. */

Definition at line 961 of file sybdb.h.

◆ SYBEVDPT

#define SYBEVDPT   20079 /* For bulk copy, all variable-length data must have either a length-prefix or a terminator specified. */

Definition at line 1012 of file sybdb.h.

◆ SYBEVERDOWN

#define SYBEVERDOWN   100 /* TDS version downgraded . */

Definition at line 924 of file sybdb.h.

◆ SYBEVMS

#define SYBEVMS   20007 /* Sendflush: VMS I/O error. */

Definition at line 940 of file sybdb.h.

◆ SYBEVOIDRET

#define SYBEVOIDRET   20291 /* Parameter of type SYBVOID cannot be a return parameter. */

Definition at line 1224 of file sybdb.h.

◆ SYBEWAID

#define SYBEWAID   20030 /* DB-LIBRARY internal error: ALTFMT following ALTNAME has wrong id. */

Definition at line 963 of file sybdb.h.

◆ SYBEWRIT

#define SYBEWRIT   20006 /* Write to SQL Server failed. */

Definition at line 939 of file sybdb.h.

◆ SYBEXOCI

#define SYBEXOCI   20131 /* A character-set translation overflowed its destination buffer while using bcp to copy data from a host-file to the SQL Server. */

Definition at line 1064 of file sybdb.h.

◆ SYBEXTDN

#define SYBEXTDN   20157 /* Warning: the xlt_todisp parameter to dbfree_xlate() was NULL. The space associated with the xlt_tosrv parameter has been freed. */

Definition at line 1090 of file sybdb.h.

◆ SYBEXTN

#define SYBEXTN   20156 /* The xlt_todisp and xlt_tosrv parameters to dbfree_xlate() were NULL. */

Definition at line 1089 of file sybdb.h.

◆ SYBEXTSN

#define SYBEXTSN   20158 /* Warning: the xlt_tosrv parameter to dbfree_xlate() was NULL. The space associated with the xlt_todisp parameter has been freed. */

Definition at line 1091 of file sybdb.h.

◆ SYBEZTXT

#define SYBEZTXT   20169 /* Attempt to send zero length TEXT or IMAGE to dataserver via dbwritetext(). */

Definition at line 1102 of file sybdb.h.

◆ SYBFLT8

#define SYBFLT8   SYBFLT8

Definition at line 177 of file sybdb.h.

◆ SYBFLTN

#define SYBFLTN   SYBFLTN

Definition at line 209 of file sybdb.h.

◆ SYBIMAGE

#define SYBIMAGE   SYBIMAGE

Definition at line 189 of file sybdb.h.

◆ SYBINT1

#define SYBINT1   SYBINT1

Definition at line 169 of file sybdb.h.

◆ SYBINT2

#define SYBINT2   SYBINT2

Definition at line 171 of file sybdb.h.

◆ SYBINT4

#define SYBINT4   SYBINT4

Definition at line 173 of file sybdb.h.

◆ SYBINT8

#define SYBINT8   SYBINT8

Definition at line 175 of file sybdb.h.

◆ SYBINTN

#define SYBINTN   SYBINTN

Definition at line 167 of file sybdb.h.

◆ SYBMONEY

#define SYBMONEY   SYBMONEY

Definition at line 193 of file sybdb.h.

◆ SYBMONEY4

#define SYBMONEY4   SYBMONEY4

Definition at line 191 of file sybdb.h.

◆ SYBMONEYN

#define SYBMONEYN   SYBMONEYN

Definition at line 211 of file sybdb.h.

◆ SYBMSDATE

#define SYBMSDATE   SYBMSDATE

Definition at line 225 of file sybdb.h.

◆ SYBMSDATETIME2

#define SYBMSDATETIME2   SYBMSDATETIME2

Definition at line 229 of file sybdb.h.

◆ SYBMSDATETIMEOFFSET

#define SYBMSDATETIMEOFFSET   SYBMSDATETIMEOFFSET

Definition at line 231 of file sybdb.h.

◆ SYBMSTIME

#define SYBMSTIME   SYBMSTIME

Definition at line 227 of file sybdb.h.

◆ SYBNTEXT

#define SYBNTEXT   SYBNTEXT

Definition at line 187 of file sybdb.h.

◆ SYBNUMERIC

#define SYBNUMERIC   SYBNUMERIC

Definition at line 205 of file sybdb.h.

◆ SYBNVARCHAR

#define SYBNVARCHAR   SYBNVARCHAR

Definition at line 215 of file sybdb.h.

◆ SYBREAL

#define SYBREAL   SYBREAL

Definition at line 197 of file sybdb.h.

◆ SYBTEXT

#define SYBTEXT   SYBTEXT

Definition at line 185 of file sybdb.h.

◆ SYBTIME

#define SYBTIME   SYBTIME

Definition at line 219 of file sybdb.h.

◆ SYBVARBINARY

#define SYBVARBINARY   SYBVARBINARY

Definition at line 203 of file sybdb.h.

◆ SYBVARCHAR

#define SYBVARCHAR   SYBVARCHAR

Definition at line 165 of file sybdb.h.

◆ SYBVOID

#define SYBVOID   SYBVOID

Definition at line 201 of file sybdb.h.

◆ TDS_STATIC_CAST

#define TDS_STATIC_CAST (   type,
  a 
)    ((type)(a))

Definition at line 47 of file sybdb.h.

◆ TIMEBIND

#define TIMEBIND   22

Definition at line 571 of file sybdb.h.

◆ TINYBIND

#define TINYBIND   6

Definition at line 555 of file sybdb.h.

◆ TRUE

#define TRUE   1

Definition at line 57 of file sybdb.h.

◆ VARYBINBIND

#define VARYBINBIND   4

Definition at line 554 of file sybdb.h.

◆ VARYCHARBIND

#define VARYCHARBIND   3

Definition at line 553 of file sybdb.h.

Typedef Documentation

◆ BOOL

typedef int BOOL

Definition at line 153 of file sybdb.h.

◆ BYTE

typedef unsigned char BYTE

Definition at line 337 of file sybdb.h.

◆ DB_DBBUSY_FUNC

typedef DBWAITFUNC(* DB_DBBUSY_FUNC) (void *dbproc)

Definition at line 135 of file sybdb.h.

◆ DB_DBCHKINTR_FUNC

typedef int(* DB_DBCHKINTR_FUNC) (void *dbproc)

Definition at line 137 of file sybdb.h.

◆ DB_DBHNDLINTR_FUNC

typedef int(* DB_DBHNDLINTR_FUNC) (void *dbproc)

Definition at line 138 of file sybdb.h.

◆ DB_DBIDLE_FUNC

typedef void(* DB_DBIDLE_FUNC) (DBWAITFUNC dfunc, void *dbproc)

Definition at line 136 of file sybdb.h.

◆ DBBIGINT

typedef int64_t DBBIGINT

Definition at line 259 of file sybdb.h.

◆ DBBINARY

typedef unsigned char DBBINARY

Definition at line 260 of file sybdb.h.

◆ DBBIT

typedef unsigned char DBBIT

Definition at line 255 of file sybdb.h.

◆ DBBOOL

typedef unsigned char DBBOOL

Definition at line 253 of file sybdb.h.

◆ DBCHAR

typedef char DBCHAR

Definition at line 254 of file sybdb.h.

◆ DBCURSOR

typedef void DBCURSOR

Definition at line 126 of file sybdb.h.

◆ DBDATEREC

Definition at line 337 of file sybdb.h.

◆ DBDATEREC2

Definition at line 337 of file sybdb.h.

◆ DBDECIMAL

Definition at line 286 of file sybdb.h.

◆ DBFLT8

typedef double DBFLT8

Definition at line 262 of file sybdb.h.

◆ DBINT

typedef int32_t DBINT

Definition at line 258 of file sybdb.h.

◆ DBLOGINFO

typedef void DBLOGINFO

Definition at line 129 of file sybdb.h.

◆ DBPIVOT_FUNC

typedef void(* DBPIVOT_FUNC) (struct col_t *output, const struct col_t *input)

Definition at line 846 of file sybdb.h.

◆ DBPROCESS

Definition at line 337 of file sybdb.h.

◆ DBREAL

typedef float DBREAL

Definition at line 261 of file sybdb.h.

◆ DBSMALLINT

Definition at line 257 of file sybdb.h.

◆ DBSORTORDER

typedef void DBSORTORDER

Definition at line 128 of file sybdb.h.

◆ DBSTRING

typedef struct dbstring DBSTRING

Definition at line 337 of file sybdb.h.

◆ DBTINYINT

typedef unsigned char DBTINYINT

Definition at line 256 of file sybdb.h.

◆ DBTYPEINFO

typedef struct dbtypeinfo DBTYPEINFO

◆ DBUBIGINT

Definition at line 265 of file sybdb.h.

◆ DBUINT

typedef uint32_t DBUINT

Definition at line 264 of file sybdb.h.

◆ DBUSMALLINT

Definition at line 263 of file sybdb.h.

◆ DBVOIDPTR

typedef void* DBVOIDPTR

Definition at line 130 of file sybdb.h.

◆ DBWAITFUNC

typedef int(* DBWAITFUNC) (void)

Definition at line 134 of file sybdb.h.

◆ DBXLATE

typedef void DBXLATE

Definition at line 127 of file sybdb.h.

◆ EHANDLEFUNC

typedef int(* EHANDLEFUNC) (DBPROCESS *dbproc, int severity, int dberr, int oserr, char *dberrstr, char *oserrstr)

Definition at line 535 of file sybdb.h.

◆ INTFUNCPTR

typedef int(* INTFUNCPTR) (void *,...)

Definition at line 133 of file sybdb.h.

◆ LOGINREC

typedef struct tds_dblib_loginrec LOGINREC

Definition at line 286 of file sybdb.h.

◆ MHANDLEFUNC

typedef int(* MHANDLEFUNC) (DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity, char *msgtext, char *srvname, char *proc, int line)

Definition at line 537 of file sybdb.h.

◆ RETCODE

typedef int RETCODE

Definition at line 124 of file sybdb.h.

◆ SHORT

typedef short SHORT

Definition at line 131 of file sybdb.h.

◆ STATUS

typedef int STATUS

Definition at line 151 of file sybdb.h.

◆ USHORT

typedef unsigned short USHORT

Definition at line 132 of file sybdb.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SYBCHAR 
SYBCHAR 
SYBVARCHAR 
SYBVARCHAR 
SYBINTN 
SYBINTN 
SYBINT1 
SYBINT1 
SYBINT2 
SYBINT2 
SYBINT4 
SYBINT4 
SYBINT8 
SYBINT8 
SYBFLT8 
SYBFLT8 
SYBDATETIME 
SYBDATETIME 
SYBBIT 
SYBBIT 
SYBBITN 
SYBBITN 
SYBTEXT 
SYBTEXT 
SYBNTEXT 
SYBNTEXT 
SYBIMAGE 
SYBIMAGE 
SYBMONEY4 
SYBMONEY4 
SYBMONEY 
SYBMONEY 
SYBDATETIME4 
SYBDATETIME4 
SYBREAL 
SYBREAL 
SYBBINARY 
SYBBINARY 
SYBVOID 
SYBVOID 
SYBVARBINARY 
SYBVARBINARY 
SYBNUMERIC 
SYBNUMERIC 
SYBDECIMAL 
SYBDECIMAL 
SYBFLTN 
SYBFLTN 
SYBMONEYN 
SYBMONEYN 
SYBDATETIMN 
SYBDATETIMN 
SYBNVARCHAR 
SYBNVARCHAR 
SYBDATE 
SYBDATE 
SYBTIME 
SYBTIME 
SYBBIGDATETIME 
SYBBIGDATETIME 
SYBBIGTIME 
SYBBIGTIME 
SYBMSDATE 
SYBMSDATE 
SYBMSTIME 
SYBMSTIME 
SYBMSDATETIME2 
SYBMSDATETIME2 
SYBMSDATETIMEOFFSET 
SYBMSDATETIMEOFFSET 

Definition at line 160 of file sybdb.h.

◆ anonymous enum

anonymous enum
Enumerator
MAXCOLNAMELEN 

Definition at line 355 of file sybdb.h.

◆ CI_TYPE

enum CI_TYPE
Enumerator
CI_REGULAR 
CI_ALTERNATE 
CI_CURSOR 
CI_REGULAR 
CI_ALTERNATE 
CI_CURSOR 

Definition at line 357 of file sybdb.h.

Function Documentation

◆ bcp_batch_ver14()

DBINT bcp_batch_ver14 ( DBPROCESS dbproc)

◆ bcp_bind_ver14()

RETCODE bcp_bind_ver14 ( DBPROCESS dbproc,
BYTE varaddr,
int  prefixlen,
DBINT  varlen,
BYTE terminator,
int  termlen,
int  type,
int  table_column 
)

◆ bcp_colfmt_ps_ver14()

RETCODE bcp_colfmt_ps_ver14 ( DBPROCESS dbproc,
int  host_column,
int  host_type,
int  host_prefixlen,
DBINT  host_collen,
BYTE host_term,
int  host_termlen,
int  colnum,
DBTYPEINFO typeinfo 
)

◆ bcp_colfmt_ver14()

RETCODE bcp_colfmt_ver14 ( DBPROCESS dbproc,
int  host_column,
int  host_type,
int  host_prefixlen,
DBINT  host_collen,
const BYTE host_term,
int  host_termlen,
int  colnum 
)

◆ bcp_collen_ver14()

RETCODE bcp_collen_ver14 ( DBPROCESS dbproc,
DBINT  varlen,
int  table_column 
)

◆ bcp_colptr_ver14()

RETCODE bcp_colptr_ver14 ( DBPROCESS dbproc,
BYTE colptr,
int  table_column 
)

◆ bcp_columns_ver14()

RETCODE bcp_columns_ver14 ( DBPROCESS dbproc,
int  host_colcount 
)

◆ bcp_control_ver14()

RETCODE bcp_control_ver14 ( DBPROCESS dbproc,
int  field,
DBINT  value 
)

◆ bcp_done_ver14()

DBINT bcp_done_ver14 ( DBPROCESS dbproc)

◆ bcp_exec_ver14()

RETCODE bcp_exec_ver14 ( DBPROCESS dbproc,
DBINT rows_copied 
)

◆ bcp_getbatchsize_ver14()

int bcp_getbatchsize_ver14 ( DBPROCESS dbproc)

◆ bcp_getl_ver14()

DBBOOL bcp_getl_ver14 ( LOGINREC login)

◆ bcp_init_ver14()

RETCODE bcp_init_ver14 ( DBPROCESS dbproc,
const char *  tblname,
const char *  hfile,
const char *  errfile,
int  direction 
)

◆ bcp_options_ver14()

RETCODE bcp_options_ver14 ( DBPROCESS dbproc,
int  option,
BYTE value,
int  valuelen 
)

◆ bcp_readfmt_ver14()

RETCODE bcp_readfmt_ver14 ( DBPROCESS dbproc,
const char  filename[] 
)

◆ bcp_sendrow_ver14()

RETCODE bcp_sendrow_ver14 ( DBPROCESS dbproc)

◆ dbacolname_ver14()

const char* dbacolname_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbadata_ver14()

BYTE* dbadata_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbadlen_ver14()

DBINT dbadlen_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbaltbind_ps()

RETCODE dbaltbind_ps ( DBPROCESS dbprocess,
int  computeid,
int  column,
int  vartype,
DBINT  varlen,
BYTE varaddr,
DBTYPEINFO typeinfo 
)

◆ dbaltbind_ver14()

RETCODE dbaltbind_ver14 ( DBPROCESS dbprocess,
int  computeid,
int  column,
int  vartype,
DBINT  varlen,
BYTE varaddr 
)

◆ dbaltcolid_ver14()

int dbaltcolid_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbaltlen_ver14()

DBINT dbaltlen_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbaltop_ver14()

int dbaltop_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbalttype_ver14()

int dbalttype_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbaltutype_ver14()

DBINT dbaltutype_ver14 ( DBPROCESS dbproc,
int  computeid,
int  column 
)

◆ dbanullbind_ver14()

RETCODE dbanullbind_ver14 ( DBPROCESS dbprocess,
int  computeid,
int  column,
DBINT indicator 
)

◆ dbanydatecrack_ver14()

RETCODE dbanydatecrack_ver14 ( DBPROCESS dbproc,
DBDATEREC2 di,
int  type,
const void *  data 
)

◆ dbbind_ps()

RETCODE dbbind_ps ( DBPROCESS dbprocess,
int  column,
int  vartype,
DBINT  varlen,
BYTE varaddr,
DBTYPEINFO typeinfo 
)

◆ dbbind_ver14()

RETCODE dbbind_ver14 ( DBPROCESS dbproc,
int  column,
int  vartype,
DBINT  varlen,
BYTE varaddr 
)

◆ dbbufsize()

int dbbufsize ( DBPROCESS dbprocess)

◆ dbbylist_ver14()

BYTE* dbbylist_ver14 ( DBPROCESS dbproc,
int  computeid,
int size 
)

◆ dbcancel_ver14()

RETCODE dbcancel_ver14 ( DBPROCESS dbproc)

◆ dbcanquery_ver14()

RETCODE dbcanquery_ver14 ( DBPROCESS dbproc)

◆ dbchange_ver14()

char* dbchange_ver14 ( DBPROCESS dbprocess)

◆ dbcharsetconv()

DBBOOL dbcharsetconv ( DBPROCESS dbprocess)

◆ dbclose_ver14()

void dbclose_ver14 ( DBPROCESS dbproc)

◆ dbclrbuf_ver14()

void dbclrbuf_ver14 ( DBPROCESS dbproc,
DBINT  n 
)

◆ dbclropt_ver14()

RETCODE dbclropt_ver14 ( DBPROCESS dbproc,
int  option,
const char  param[] 
)

◆ dbcmd_ver14()

RETCODE dbcmd_ver14 ( DBPROCESS dbproc,
const char  cmdstring[] 
)

◆ dbcmdrow_ver14()

RETCODE dbcmdrow_ver14 ( DBPROCESS dbproc)

◆ dbcolinfo_ver14()

RETCODE dbcolinfo_ver14 ( DBPROCESS dbproc,
CI_TYPE  type,
DBINT  column,
DBINT  computeid,
DBCOL pdbcol 
)

◆ dbcollen_ver14()

DBINT dbcollen_ver14 ( DBPROCESS dbproc,
int  column 
)

◆ dbcolname_ver14()

char* dbcolname_ver14 ( DBPROCESS dbproc,
int  column 
)

◆ dbcolsource_ver14()

char* dbcolsource_ver14 ( DBPROCESS dbproc,
int  colnum 
)

◆ dbcoltype_ver14()

int dbcoltype_ver14 ( DBPROCESS dbproc,
int  column 
)

◆ dbcoltypeinfo_ver14()

DBTYPEINFO* dbcoltypeinfo_ver14 ( DBPROCESS dbproc,
int  column 
)

◆ dbcolutype_ver14()

DBINT dbcolutype_ver14 ( DBPROCESS dbprocess,
int  column 
)

◆ dbconvert_ps_ver14()

DBINT dbconvert_ps_ver14 ( DBPROCESS dbprocess,
int  srctype,
const BYTE src,
DBINT  srclen,
int  desttype,
BYTE dest,