Re: some ct_options / ct_diag questions
"James K. Lowden" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
James K. Lowden wrote: > 1. Bring TDS_OPTION into line with Sybase's definition, so that the > enumerated type can be passed directly into the datastream. For example, see attached. --jkl _______________________________________________ FreeTDS mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds
tds_options.h
(application/octet-stream, 3.3 KB)
typedef enum _TDS_OPTION
{ TDS_OPT_UNUSED = 0 /* 0x00 Used to specify no option. */
, TDS_OPT_DATEFIRST = 1 /* 0x01 Set first day of week.*/
, TDS_OPT_TEXTSIZE = 2 /* 0x02 Set maximum text size. */
, TDS_OPT_STAT_TIME = 3 /* 0x03 Return server time statistics. */
, TDS_OPT_STAT_IO = 4 /* 0x04 Return server I/O statistics. */
, TDS_OPT_ROWCOUNT = 5 /* 0x05 Set maximum row count to return. */
, TDS_OPT_NATLANG = 6 /* 0x06 Change national language. */
, TDS_OPT_DATEFORMAT = 7 /* 0x07 Set date format. */
, TDS_OPT_ISOLATION = 8 /* 0x08 Transaction isolation level. */
, TDS_OPT_AUTHON = 9 /* 0x09 Set authority level on. */
, TDS_OPT_CHARSET = 10 /* 0x0a Change character set. */
, TDS_OPT_SHOWPLAN = 13 /* 0x0d Show execution plan. */
, TDS_OPT_NOEXEC = 14 /* 0x0e Do not execute query. */
, TDS_OPT_ARITHIGNOREON = 15 /* 0x0f Set arithmetic exception handling. */
, TDS_OPT_ARITHABORTON = 17 /* 0x11 Set arithmetic abort handling. */
, TDS_OPT_PARSEONLY = 18 /* 0x12 Parse the query only. Return error messages. */
, TDS_OPT_GETDATA = 20 /* 0x14 Return trigger data. */
, TDS_OPT_NOCOUNT = 21 /* 0x15 Do not return done count. */
, TDS_OPT_FORCEPLAN = 23 /* 0x17 Forces substitution order for joins in the order of the tables provided in this option.*/
, TDS_OPT_FORMATONLY = 24 /* 0x18 Send format information only. */
, TDS_OPT_CHAINXACTS = 25 /* 0x19 Set chained transaction mode. */
, TDS_OPT_CURCLOSEONXACT = 26 /* 0x1a Close all open cursors at end of transaction. */
, TDS_OPT_FIPSFLAG = 27 /* 0x1b Enable FIPs flagging.*/
, TDS_OPT_RESTREES = 28 /* 0x1c Return resolution trees. */
, TDS_OPT_IDENTITYON = 29 /* 0x1d Turn on explicit identity. */
, TDS_OPT_CURREAD = 30 /* 0x1e Set session label @@curread. */
, TDS_OPT_CURWRITE = 31 /* 0x1f Set session label @@curwrite. */
, TDS_OPT_IDENTITYOFF = 32 /* 0x20 Turn off explicit identity. */
, TDS_OPT_AUTHOFF = 33 /* 0x21 Turn authority off. */
, TDS_OPT_ANSINULL = 34 /* 0x22 Support ANSI null data. */
, TDS_OPT_QUOTED_IDENT = 35 /* 0x23 Quoted identifiers. */
, TDS_OPT_ANSIPERM = 36 /* 0x24 Check permissions on search columns for update clause.*/
, TDS_OPT_STR_RTRUNC = 37 /* 0x25 ANSI string right trunc. */
, TDS_OPT_SORTMERGE = 38 /* 0x26 Set Sort-Merge for session. */
, TDS_OPT_JTC = 39 /* 0x27 Set JTC for session */
, TDS_OPT_CLIENTREALNAME = 40 /* 0x28 Set Client Real Name */
, TDS_OPT_CLIENTHOSTNAME = 41 /* 0x29 Set Client Host Name */
, TDS_OPT_CLIENTAPPLNAME = 42 /* 0x2a Set Client Application Name */
, TDS_OPT_IDENTITYUPD_ON = 43 /* 0x2b Turn on explicit update identity on table */
, TDS_OPT_IDENTITYUPD_OFF = 44 /* 0x2c Turn off explicit update identity on table */
, TDS_OPT_NODATA = 45 /* 0x2d Turn on/off "nodata"option */
, TDS_OPT_CIPHERTEXT = 46 /* 0x2e Turn on/off ciphertext (column encryption) */
, TDS_OPT_SHOW_FI = 47 /* 0x2f Expose Functional Indexes */
, TDS_OPT_HIDE_VCC = 48 /* 0x30 Hide/Show Virtual Computed Columns* The table below summarizes the option arguments. It includes the defined argument length and defined values for the option value.*/
} TDS_OPTION;
tds_options.booleans
(application/octet-stream, 400 B) - not displayed