home *** CD-ROM | disk | FTP | other *** search
- /*
- ** IDMSOOPT.H
- **
- **
- ** IDMS specific connection and statement options:
- **
- ** Note: these can also be set in the CADSI.INI file using the
- ** configuration utility.
- **
- ** (C) Copyright 1994 by
- ** Computer Associates International,Inc.
- ** 1 Computer Associates Plaza
- ** Islandia, L.I. NY
- **
- */
-
- #ifndef _INC_IDMSOOPT
- #define _INC_IDMSOOPT
-
- /*
- ** As of 11/29/93 the IDMS specific option numbers were NOT registered
- ** with Microsoft. As a result it is possile that they could conflict
- ** with those used by other vendors. These will be registered by the
- ** time the CA-IDMS Server 2.0 is ESP. The range of option numbers
- ** assigned by Microsoft will probably be different than that currently
- ** used, which will require thay applications using them be recompiled.
- */
- #define IDMS_BASE SQL_CONNECT_OPT_DRVR_START + 6600
-
- /*---------------------------------------------------------------------------*/
- /* */
- /* IDMS Connect Options: */
- /* */
- /*---------------------------------------------------------------------------*/
-
- #define IDMS_TRACE IDMS_BASE + 1 /* IDMS ODBC driver trace flags: */
- /* */
- #define TRACE_ODBCCALL 0x0001 /* Trace exported functions */
- #define TRACE_INTLCALL 0x0002 /* Trace internal functions */
- #define SNAP_SQL 0x0010 /* Snap SQL syntax */
- #define SNAP_ENV 0x0100 /* Snap environment block */
- #define SNAP_DBC 0x0200 /* Snap connection block */
- #define SNAP_STMT 0x0400 /* Snap statement block */
- #define SNAP_SQLDA 0x0800 /* Snap SQLDA */
-
- #define IDMS_ACCESSIBLE IDMS_BASE + 2 /* Use ACCESSIBLE_TABLES view */
- /* for SQLTables: */
- /* vParam = 0 off
- /* vParam = 1 on */
- #define OPT_ACCESSIBLE_DFLT 1
-
- #define IDMS_CAT_TABLE IDMS_BASE + 3 /* Specify name of */
- /* ACCESSIBLE_TABLES */
- /* view for SQLTables if */
- /* IDMS_ACCESSIBLE is on */
- /* vParam-->table name, */
- /* SYSCA.ACCESSIBLE_TABLES */
- #define OPT_CAT_TABLE_DFLT "SYSCA.ACCESSIBLE_TABLES"
-
- #define IDMS_CAT_COLUMN IDMS_BASE + 4 /* Reserved */
-
- #define IDMS_CACHE IDMS_BASE + 5 /* Cache SQLTables result set */
- /* vParam = 0 off */
- /* vParam = 1 on */
- #define OPT_CACHE_DFLT 0
-
-
- #define IDMS_COMMIT_BEHAVIOR IDMS_BASE + 10 /* Set cursor behavior on */
- /* commit and rollback: */
- #define OPT_CLOSE_DELETE 0 /* COMMIT WORK, delete syntax */
- #define OPT_CLOSE 1 /* COMMIT WORK, keep syntax */
- #define OPT_PRESERVE 2 /* COMMIT WORK CONTINUE */
- #define OPT_COMMIT_DFLT OPT_PRESERVE
-
-
- /*---------------------------------------------------------------------------*/
- /* */
- /* IDMS Statement Options: */
- /* */
- /*---------------------------------------------------------------------------*/
-
- #define IDMS_FETCH_ROWS IDMS_BASE + 20 /* # rows for bulk fetch */
- /* vParam = # rows */
- #define OPT_FETCH_ROWS_DFLT 100
-
- #define IDMS_FETCH_DOUBLE IDMS_BASE + 21 /* Fetch REAL as DOUBLE */
- /* vParam = 0 off (default) */
- /* vParam = 1 on */
- #define OPT_FETCH_DOUBLE_DFLT 0
-
-
- #endif
-