home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1995 September / Image.iso / visualob / install / odbc / idms / idmsoopt._ / idmsoopt.
Encoding:
Text File  |  1994-08-16  |  4.5 KB  |  93 lines

  1. /*
  2. **  IDMSOOPT.H
  3. **
  4. **
  5. **  IDMS specific connection and statement options:
  6. **
  7. **  Note: these can also be set in the CADSI.INI file using the
  8. **        configuration utility.
  9. **
  10. **  (C) Copyright 1994 by
  11. **  Computer Associates International,Inc.
  12. **  1 Computer Associates Plaza
  13. **  Islandia, L.I. NY
  14. **
  15. */
  16.  
  17. #ifndef _INC_IDMSOOPT
  18. #define _INC_IDMSOOPT
  19.  
  20. /*
  21. **  As of 11/29/93 the IDMS specific option numbers were NOT registered
  22. **  with Microsoft.  As a result it is possile that they could conflict
  23. **  with those used by other vendors.  These will be registered by the
  24. **  time the CA-IDMS Server 2.0 is ESP.  The range of option numbers
  25. **  assigned by Microsoft will probably be different than that currently
  26. **  used, which will require thay applications using them be recompiled.
  27. */
  28. #define IDMS_BASE SQL_CONNECT_OPT_DRVR_START + 6600
  29.  
  30. /*---------------------------------------------------------------------------*/
  31. /*                                                                           */
  32. /*                       IDMS Connect Options:                               */
  33. /*                                                                           */
  34. /*---------------------------------------------------------------------------*/
  35.  
  36. #define IDMS_TRACE           IDMS_BASE + 1  /* IDMS ODBC driver trace flags: */
  37.                                             /*                               */
  38. #define TRACE_ODBCCALL      0x0001          /*   Trace exported functions    */
  39. #define TRACE_INTLCALL      0x0002          /*   Trace internal functions    */
  40. #define SNAP_SQL            0x0010          /*   Snap SQL syntax             */
  41. #define SNAP_ENV            0x0100          /*   Snap environment block      */
  42. #define SNAP_DBC            0x0200          /*   Snap connection block       */
  43. #define SNAP_STMT           0x0400          /*   Snap statement block        */
  44. #define SNAP_SQLDA          0x0800          /*   Snap SQLDA                  */
  45.  
  46. #define IDMS_ACCESSIBLE      IDMS_BASE + 2  /* Use ACCESSIBLE_TABLES view    */
  47.                                             /* for SQLTables:                */
  48.                                             /*   vParam = 0 off
  49.                                             /*   vParam = 1 on               */
  50. #define OPT_ACCESSIBLE_DFLT     1
  51.  
  52. #define IDMS_CAT_TABLE       IDMS_BASE + 3  /* Specify name of               */
  53.                                             /* ACCESSIBLE_TABLES             */
  54.                                             /* view for SQLTables if         */
  55.                                             /* IDMS_ACCESSIBLE is on         */
  56.                                             /* vParam-->table name,          */
  57.                                             /* SYSCA.ACCESSIBLE_TABLES       */
  58. #define OPT_CAT_TABLE_DFLT  "SYSCA.ACCESSIBLE_TABLES"
  59.  
  60. #define IDMS_CAT_COLUMN      IDMS_BASE + 4  /* Reserved                      */
  61.  
  62. #define IDMS_CACHE           IDMS_BASE + 5  /* Cache SQLTables result set    */
  63.                                             /*   vParam = 0 off              */
  64.                                             /*   vParam = 1 on               */
  65. #define OPT_CACHE_DFLT          0
  66.  
  67.  
  68. #define IDMS_COMMIT_BEHAVIOR IDMS_BASE + 10 /* Set cursor behavior on        */
  69.                                             /* commit and rollback:          */
  70. #define OPT_CLOSE_DELETE        0           /*   COMMIT WORK, delete syntax  */
  71. #define OPT_CLOSE               1           /*   COMMIT WORK, keep syntax    */
  72. #define OPT_PRESERVE            2           /*   COMMIT WORK CONTINUE        */
  73. #define OPT_COMMIT_DFLT         OPT_PRESERVE
  74.  
  75.  
  76. /*---------------------------------------------------------------------------*/
  77. /*                                                                           */
  78. /*                      IDMS Statement Options:                              */
  79. /*                                                                           */
  80. /*---------------------------------------------------------------------------*/
  81.  
  82. #define IDMS_FETCH_ROWS    IDMS_BASE + 20   /* # rows for bulk fetch         */
  83.                                             /* vParam = # rows               */
  84. #define OPT_FETCH_ROWS_DFLT     100
  85.  
  86. #define IDMS_FETCH_DOUBLE  IDMS_BASE + 21   /* Fetch REAL as DOUBLE          */
  87.                                             /* vParam = 0 off (default)      */
  88.                                             /* vParam = 1 on                 */
  89. #define OPT_FETCH_DOUBLE_DFLT   0
  90.  
  91.  
  92. #endif
  93.