home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / sqlsvr / ptk / mips / odbcmsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-09  |  6.8 KB  |  146 lines

  1. /*****************************************************************
  2. ** ODBCMSG.H - This is the standard error message file.
  3. **
  4. ** (C) Copyright 1993 - 1995 By Microsoft Corp.
  5. *********************************************************************/
  6.  
  7.  
  8. //    Localize the standard error messages
  9. #define ET_00000 "Success"
  10. #define ET_01000 "General warning"
  11. #define ET_01002 "Disconnect error"
  12. #define ET_01004 "Data truncated"
  13. #define ET_01006 "Privilege not revoked"
  14. #define ET_01S00 "Invalid connection string attribute"
  15. #define ET_01S01 "Error in row"
  16. #define ET_01S02 "Option value changed"
  17. #define ET_01S03 "No rows updated or deleted"
  18. #define ET_01S04 "More than one row updated or deleted"
  19. #define ET_01S05 "Cancel treated as FreeStmt/Close"
  20. #define ET_01S06 "Attempt to fetch before the result returned the first rowset"
  21. #define ET_07001 "Wrong number of parameters"
  22. #define ET_07006 "Restricted data type attribute violation"
  23. #define ET_07S01 "Invalid use of default parameter"
  24. #define ET_08001 "Unable to connect to data source"
  25. #define ET_08002 "Connection in use"
  26. #define ET_08003 "Connection not open"
  27. #define ET_08004 "Data source rejected establishment of connection"
  28. #define ET_08007 "Connection failure during transaction"
  29. #define ET_08S01 "Communication link failure"
  30. #define ET_21S01 "Insert value list does not match column list"
  31. #define ET_21S02 "Degree of derived table does not match column list"
  32. #define ET_22001 "String data right truncation"
  33. #define ET_22002 "Indicator variable required but not supplied"
  34. #define ET_22003 "Numeric value out of range"
  35. #define ET_22005 "Error in assignment"
  36. #define ET_22008 "Datetime field overflow"
  37. #define ET_22012 "Division by zero"
  38. #define ET_22026 "String data, length mismatch"
  39. #define ET_23000 "Integrity constraint violation"
  40. #define ET_24000 "Invalid cursor state"
  41. #define ET_25000 "Invalid transaction state"
  42. #define ET_28000 "Invalid authorization specification"
  43. #define ET_34000 "Invalid cursor name"
  44. #define ET_37000 "Syntax error or access violation"
  45. #define ET_3C000 "Duplicate cursor name"
  46. #define ET_40001 "Serialization failure"
  47. #define ET_42000 "Syntax error or access violation"
  48. #define ET_70100 "Operation aborted"
  49. #define ET_IM001 "Driver does not support this function"
  50. #define ET_IM002 "Data source name not found and no default driver specified"
  51. #define ET_IM003 "Specified driver could not be loaded"
  52. #define ET_IM004 "Driver's SQLAllocEnv failed"
  53. #define ET_IM005 "Driver's SQLAllocConnect failed"
  54. #define ET_IM006 "Driver's SQLSetConnectOption failed"
  55. #define ET_IM007 "No data source or driver specified; dialog prohibited"
  56. #define ET_IM008 "Dialog failed"
  57. #define ET_IM009 "Unable to load translation DLL"
  58. #define ET_IM010 "Data source name too long"
  59. #define ET_IM011 "Driver name too long"
  60. #define ET_IM012 "DRIVER keyword syntax error"
  61. #define ET_IM013 "Trace file error"
  62. #define ET_S0001 "Base table or view already exists"
  63. #define ET_S0002 "Base table not found"
  64. #define ET_S0011 "Index already exists"
  65. #define ET_S0012 "Index not found"
  66. #define ET_S0021 "Column already exists"
  67. #define ET_S0022 "Column not found"
  68. #define ET_S0023 "No default for column"
  69. #define ET_S1000 "General error"
  70. #define ET_S1001 "Memory allocation failure"
  71. #define ET_S1002 "Invalid column number"
  72. #define ET_S1003 "Program type out of range"
  73. #define ET_S1004 "SQL data type out of range"
  74. #define ET_S1008 "Operation canceled"
  75. #define ET_S1009 "Invalid argument value"
  76. #define ET_S1010 "Function sequence error"
  77. #define ET_S1011 "Operation invalid at this time"
  78. #define ET_S1012 "Invalid transaction operation code specified"
  79. #define ET_S1015 "No cursor name available"
  80. #define ET_S1090 "Invalid string or buffer length"
  81. #define ET_S1091 "Descriptor type out of range"
  82. #define ET_S1092 "Option type out of range"
  83. #define ET_S1093 "Invalid parameter number"
  84. #define ET_S1094 "Invalid scale value"
  85. #define ET_S1095 "Function type out of range"
  86. #define ET_S1096 "Information type out of range"
  87. #define ET_S1097 "Column type out of range"
  88. #define ET_S1098 "Scope type out of range"
  89. #define ET_S1099 "Nullable type out of range"
  90. #define ET_S1100 "Uniqueness option type out of range"
  91. #define ET_S1101 "Accuracy option type out of range"
  92. #define ET_S1103 "Direction option out of range"
  93. #define ET_S1104 "Invalid precision value"
  94. #define ET_S1105 "Invalid parameter type"
  95. #define ET_S1106 "Fetch type out of range"
  96. #define ET_S1107 "Row value out of range"
  97. #define ET_S1108 "Concurrency option out of range"
  98. #define ET_S1109 "Invalid cursor position"
  99. #define ET_S1110 "Invalid driver completion"
  100. #define ET_S1111 "Invalid bookmark value"
  101. #define ET_S1C00 "Driver not capable"
  102. #define ET_S1DE0 "No data at execution values pending"
  103. #define ET_S1T00 "Timeout expired"
  104.  
  105. //    Add the appropriate entries to the following tables for a new language
  106. #define USENGLISH_ANSI        "040904E4"    // String of 0x0409 and 1252
  107. #define FRENCH_ANSI         "040C04E4"    // String of 0x040C and 1252
  108. #define GERMAN_ANSI         "040704E4"    // String of 0x0407 and 1252
  109. #define ITALIAN_ANSI        "041004E4"    // String of 0x0410 and 1252
  110. #define PORTUGUESE_ANSI     "041604E4"    // String of 0x0416 and 1252
  111. #define SWEDISH_ANSI        "041D04E4"    // String of 0x041D and 1252
  112. #define SPANISH_ANSI        "040A04E4"    // String of 0x040A and 1252
  113. #define DANISH_ANSI            "040604E4"    // String of 0x0406 and 1252
  114. #define FINNISH_ANSI        "040B04E4"    // String of 0x040B and 1252
  115. #define DUTCH_ANSI            "041304E4"    // String of 0x0413 and 1252
  116. #define NORWEGIAN_ANSI        "041404E4"    // String of 0x0414 and 1252
  117. #define CHINESE_TRAD_ANSI    "040404E4"    // String of 0x0404 and 1252
  118. #define CHINESE_SIMP_ANSI    "080404E4"    // String of 0x0804 and 1252
  119.  
  120. #define USENGLISH_TRANS     0x0409, 1252  // 0x0409 and 1252
  121. #define FRENCH_TRANS        0x040C, 1252  // 0x040C and 1252
  122. #define GERMAN_TRANS        0x0407, 1252  // 0x0407 and 1252
  123. #define ITALIAN_TRANS        0x0410, 1252  // 0x0410 and 1252
  124. #define PORTUGUESE_TRANS    0x0416, 1252  // 0x0416 and 1252
  125. #define SWEDISH_TRANS        0x041D, 1252  // 0x041D and 1252
  126. #define SPANISH_TRANS        0x040A, 1252  // 0x040A and 1252
  127. #define DANISH_TRANS        0x0406, 1252  // 0x0406 and 1252
  128. #define FINNISH_TRANS        0x040B, 1252  // 0x040B and 1252
  129. #define DUTCH_TRANS         0x0413, 1252  // 0x0413 and 1252
  130. #define NORWEGIAN_TRANS     0x0414, 1252  // 0x0414 and 1252
  131. #define CHINESE_TRAD_TRANS    0x0404, 1252  // 0x0404 and 1252
  132. #define CHINESE_SIMP_TRANS    0x0804, 1252  // 0x0804 and 1252
  133.  
  134. //    Replace the USENGLISH with the correct language
  135. #define LANGUAGE_ANSI    USENGLISH_ANSI
  136. #define LANGUAGE_TRANS    USENGLISH_TRANS
  137.  
  138. //    Localize the legal strings
  139. #define VER_LEGALTRADEMARKS_STR "Windows(TM) and ODBC(TM) are trademarks of Microsoft Corporation.  Microsoft\256 is a registered trademark of Microsoft Corporation.\0"
  140.  
  141. //    Localize the diskette label
  142. #define DISKETTE_LABEL_STR        "ODBC Drivers Setup"
  143.  
  144. //    Localize the SETUP.exe program name
  145. #define SETUP_PROG_STR            "setup.exe"
  146.