1 | ' api_sqlext.sbp
|
---|
2 |
|
---|
3 |
|
---|
4 | #ifndef _INC_SQLEXT
|
---|
5 | #define _INC_SQLEXT
|
---|
6 |
|
---|
7 | #ifndef _INC_SQL
|
---|
8 | #include <api_sql.sbp>
|
---|
9 | #endif
|
---|
10 |
|
---|
11 |
|
---|
12 | /* generally useful constants */
|
---|
13 | Const SQL_SPEC_MAJOR = 3 /* Major version of specification */
|
---|
14 | Const SQL_SPEC_MINOR = 52 /* Minor version of specification */
|
---|
15 | Const SQL_SPEC_STRING = "03.52" /* String constant for version */
|
---|
16 |
|
---|
17 | Const SQL_SQLSTATE_SIZE = 5 /* size of SQLSTATE */
|
---|
18 | Const SQL_MAX_DSN_LENGTH = 32 /* maximum data source name size */
|
---|
19 |
|
---|
20 | Const SQL_MAX_OPTION_STRING_LENGTH = 256
|
---|
21 |
|
---|
22 | /* return code SQL_NO_DATA_FOUND is the same as SQL_NO_DATA */
|
---|
23 | Const SQL_NO_DATA_FOUND = SQL_NO_DATA
|
---|
24 |
|
---|
25 | /* an end handle type */
|
---|
26 | Const SQL_HANDLE_SENV = 5
|
---|
27 |
|
---|
28 |
|
---|
29 | /* env attribute */
|
---|
30 | Const SQL_ATTR_ODBC_VERSION = 200
|
---|
31 | Const SQL_ATTR_CONNECTION_POOLING = 201
|
---|
32 | Const SQL_ATTR_CP_MATCH = 202
|
---|
33 |
|
---|
34 |
|
---|
35 | /* values for SQL_ATTR_CONNECTION_POOLING */
|
---|
36 | Const SQL_CP_OFF = 0
|
---|
37 | Const SQL_CP_ONE_PER_DRIVER = 1
|
---|
38 | Const SQL_CP_ONE_PER_HENV = 2
|
---|
39 | Const SQL_CP_DEFAULT = SQL_CP_OFF
|
---|
40 |
|
---|
41 | /* values for SQL_ATTR_CP_MATCH */
|
---|
42 | Const SQL_CP_STRICT_MATCH = 0
|
---|
43 | Const SQL_CP_RELAXED_MATCH = 1
|
---|
44 | Const SQL_CP_MATCH_DEFAULT = SQL_CP_STRICT_MATCH
|
---|
45 |
|
---|
46 | /* values for SQL_ATTR_ODBC_VERSION */
|
---|
47 | Const SQL_OV_ODBC2 = 2
|
---|
48 | Const SQL_OV_ODBC3 = 3
|
---|
49 |
|
---|
50 |
|
---|
51 | /* connection attributes */
|
---|
52 | Const SQL_ACCESS_MODE = 101
|
---|
53 | Const SQL_AUTOCOMMIT = 102
|
---|
54 | Const SQL_LOGIN_TIMEOUT = 103
|
---|
55 | Const SQL_OPT_TRACE = 104
|
---|
56 | Const SQL_OPT_TRACEFILE = 105
|
---|
57 | Const SQL_TRANSLATE_DLL = 106
|
---|
58 | Const SQL_TRANSLATE_OPTION = 107
|
---|
59 | Const SQL_TXN_ISOLATION = 108
|
---|
60 | Const SQL_CURRENT_QUALIFIER = 109
|
---|
61 | Const SQL_ODBC_CURSORS = 110
|
---|
62 | Const SQL_QUIET_MODE = 111
|
---|
63 | Const SQL_PACKET_SIZE = 112
|
---|
64 |
|
---|
65 | /* connection attributes with new names */
|
---|
66 | Const SQL_ATTR_ACCESS_MODE = SQL_ACCESS_MODE
|
---|
67 | Const SQL_ATTR_AUTOCOMMIT = SQL_AUTOCOMMIT
|
---|
68 | Const SQL_ATTR_CONNECTION_TIMEOUT = 113
|
---|
69 | Const SQL_ATTR_CURRENT_CATALOG = SQL_CURRENT_QUALIFIER
|
---|
70 | Const SQL_ATTR_DISCONNECT_BEHAVIOR = 114
|
---|
71 | Const SQL_ATTR_ENLIST_IN_DTC = 1207
|
---|
72 | Const SQL_ATTR_ENLIST_IN_XA = 1208
|
---|
73 | Const SQL_ATTR_LOGIN_TIMEOUT = SQL_LOGIN_TIMEOUT
|
---|
74 | Const SQL_ATTR_ODBC_CURSORS = SQL_ODBC_CURSORS
|
---|
75 | Const SQL_ATTR_PACKET_SIZE = SQL_PACKET_SIZE
|
---|
76 | Const SQL_ATTR_QUIET_MODE = SQL_QUIET_MODE
|
---|
77 | Const SQL_ATTR_TRACE = SQL_OPT_TRACE
|
---|
78 | Const SQL_ATTR_TRACEFILE = SQL_OPT_TRACEFILE
|
---|
79 | Const SQL_ATTR_TRANSLATE_LIB = SQL_TRANSLATE_DLL
|
---|
80 | Const SQL_ATTR_TRANSLATE_OPTION = SQL_TRANSLATE_OPTION
|
---|
81 | Const SQL_ATTR_TXN_ISOLATION = SQL_TXN_ISOLATION
|
---|
82 |
|
---|
83 |
|
---|
84 | Const SQL_ATTR_CONNECTION_DEAD = 1209 /* GetConnectAttr only */
|
---|
85 |
|
---|
86 | /* ODBC Driver Manager sets this connection attribute to a unicode driver
|
---|
87 | (which supports SQLConnectW) when the application is an ANSI application
|
---|
88 | (which calls SQLConnect, SQLDriverConnect, or SQLBrowseConnect).
|
---|
89 | This is SetConnectAttr only and application does not set this attribute
|
---|
90 | This attribute was introduced because some unicode driver's some APIs may
|
---|
91 | need to behave differently on ANSI or Unicode applications. A unicode
|
---|
92 | driver, which has same behavior for both ANSI or Unicode applications,
|
---|
93 | should return SQL_ERROR when the driver manager sets this connection
|
---|
94 | attribute. When a unicode driver returns SQL_SUCCESS on this attribute,
|
---|
95 | the driver manager treates ANSI and Unicode connections differently in
|
---|
96 | connection pooling.
|
---|
97 | */
|
---|
98 | Const SQL_ATTR_ANSI_APP = 115
|
---|
99 |
|
---|
100 |
|
---|
101 | /* SQL_ACCESS_MODE options */
|
---|
102 | Const SQL_MODE_READ_WRITE = 0
|
---|
103 | Const SQL_MODE_READ_ONLY = 1
|
---|
104 | Const SQL_MODE_DEFAULT = SQL_MODE_READ_WRITE
|
---|
105 |
|
---|
106 | /* SQL_AUTOCOMMIT options */
|
---|
107 | Const SQL_AUTOCOMMIT_OFF = 0
|
---|
108 | Const SQL_AUTOCOMMIT_ON = 1
|
---|
109 | Const SQL_AUTOCOMMIT_DEFAULT = SQL_AUTOCOMMIT_ON
|
---|
110 |
|
---|
111 | /* SQL_LOGIN_TIMEOUT options */
|
---|
112 | Const SQL_LOGIN_TIMEOUT_DEFAULT = 15
|
---|
113 |
|
---|
114 | /* SQL_OPT_TRACE options */
|
---|
115 | Const SQL_OPT_TRACE_OFF = 0
|
---|
116 | Const SQL_OPT_TRACE_ON = 1
|
---|
117 | Const SQL_OPT_TRACE_DEFAULT = SQL_OPT_TRACE_OFF
|
---|
118 | Const SQL_OPT_TRACE_FILE_DEFAULT = "\SQL.LOG"
|
---|
119 |
|
---|
120 | /* SQL_ODBC_CURSORS options */
|
---|
121 | Const SQL_CUR_USE_IF_NEEDED = 0
|
---|
122 | Const SQL_CUR_USE_ODBC = 1
|
---|
123 | Const SQL_CUR_USE_DRIVER = 2
|
---|
124 | Const SQL_CUR_DEFAULT = SQL_CUR_USE_DRIVER
|
---|
125 |
|
---|
126 | /* values for SQL_ATTR_DISCONNECT_BEHAVIOR */
|
---|
127 | Const SQL_DB_RETURN_TO_POOL = 0
|
---|
128 | Const SQL_DB_DISCONNECT = 1
|
---|
129 | Const SQL_DB_DEFAULT = SQL_DB_RETURN_TO_POOL
|
---|
130 |
|
---|
131 | /* values for SQL_ATTR_ENLIST_IN_DTC */
|
---|
132 | Const SQL_DTC_DONE = 0
|
---|
133 |
|
---|
134 |
|
---|
135 | /* values for SQL_ATTR_CONNECTION_DEAD */
|
---|
136 | Const SQL_CD_TRUE = 1 /* Connection is closed/dead */
|
---|
137 | Const SQL_CD_FALSE = 0 /* Connection is open/available */
|
---|
138 |
|
---|
139 | /* values for SQL_ATTR_ANSI_APP */
|
---|
140 | Const SQL_AA_TRUE = 1 /* the application is an ANSI app */
|
---|
141 | Const SQL_AA_FALSE = 0 /* the application is a Unicode app */
|
---|
142 |
|
---|
143 | /* statement attributes */
|
---|
144 | Const SQL_QUERY_TIMEOUT = 0
|
---|
145 | Const SQL_MAX_ROWS = 1
|
---|
146 | Const SQL_NOSCAN = 2
|
---|
147 | Const SQL_MAX_LENGTH = 3
|
---|
148 | Const SQL_ASYNC_ENABLE = 4 /* same as SQL_ATTR_ASYNC_ENABLE */
|
---|
149 | Const SQL_BIND_TYPE = 5
|
---|
150 | Const SQL_CURSOR_TYPE = 6
|
---|
151 | Const SQL_CONCURRENCY = 7
|
---|
152 | Const SQL_KEYSET_SIZE = 8
|
---|
153 | Const SQL_ROWSET_SIZE = 9
|
---|
154 | Const SQL_SIMULATE_CURSOR = 10
|
---|
155 | Const SQL_RETRIEVE_DATA = 11
|
---|
156 | Const SQL_USE_BOOKMARKS = 12
|
---|
157 | Const SQL_GET_BOOKMARK = 13 /* GetStmtOption Only */
|
---|
158 | Const SQL_ROW_NUMBER = 14 /* GetStmtOption Only */
|
---|
159 |
|
---|
160 | /* statement attributes for ODBC 3.0 */
|
---|
161 | Const SQL_ATTR_ASYNC_ENABLE = 4
|
---|
162 | Const SQL_ATTR_CONCURRENCY = SQL_CONCURRENCY
|
---|
163 | Const SQL_ATTR_CURSOR_TYPE = SQL_CURSOR_TYPE
|
---|
164 | Const SQL_ATTR_ENABLE_AUTO_IPD = 15
|
---|
165 | Const SQL_ATTR_FETCH_BOOKMARK_PTR = 16
|
---|
166 | Const SQL_ATTR_KEYSET_SIZE = SQL_KEYSET_SIZE
|
---|
167 | Const SQL_ATTR_MAX_LENGTH = SQL_MAX_LENGTH
|
---|
168 | Const SQL_ATTR_MAX_ROWS = SQL_MAX_ROWS
|
---|
169 | Const SQL_ATTR_NOSCAN = SQL_NOSCAN
|
---|
170 | Const SQL_ATTR_PARAM_BIND_OFFSET_PTR = 17
|
---|
171 | Const SQL_ATTR_PARAM_BIND_TYPE = 18
|
---|
172 | Const SQL_ATTR_PARAM_OPERATION_PTR = 19
|
---|
173 | Const SQL_ATTR_PARAM_STATUS_PTR = 20
|
---|
174 | Const SQL_ATTR_PARAMS_PROCESSED_PTR = 21
|
---|
175 | Const SQL_ATTR_PARAMSET_SIZE = 22
|
---|
176 | Const SQL_ATTR_QUERY_TIMEOUT = SQL_QUERY_TIMEOUT
|
---|
177 | Const SQL_ATTR_RETRIEVE_DATA = SQL_RETRIEVE_DATA
|
---|
178 | Const SQL_ATTR_ROW_BIND_OFFSET_PTR = 23
|
---|
179 | Const SQL_ATTR_ROW_BIND_TYPE = SQL_BIND_TYPE
|
---|
180 | Const SQL_ATTR_ROW_NUMBER = SQL_ROW_NUMBER /*GetStmtAttr*/
|
---|
181 | Const SQL_ATTR_ROW_OPERATION_PTR = 24
|
---|
182 | Const SQL_ATTR_ROW_STATUS_PTR = 25
|
---|
183 | Const SQL_ATTR_ROWS_FETCHED_PTR = 26
|
---|
184 | Const SQL_ATTR_ROW_ARRAY_SIZE = 27
|
---|
185 | Const SQL_ATTR_SIMULATE_CURSOR = SQL_SIMULATE_CURSOR
|
---|
186 | Const SQL_ATTR_USE_BOOKMARKS = SQL_USE_BOOKMARKS
|
---|
187 |
|
---|
188 |
|
---|
189 |
|
---|
190 |
|
---|
191 | /* whether an attribute is a pointer or not */
|
---|
192 | Const SQL_IS_POINTER = (-4)
|
---|
193 | Const SQL_IS_UINTEGER = (-5)
|
---|
194 | Const SQL_IS_INTEGER = (-6)
|
---|
195 | Const SQL_IS_USMALLINT = (-7)
|
---|
196 | Const SQL_IS_SMALLINT = (-8)
|
---|
197 |
|
---|
198 |
|
---|
199 | /* the value of SQL_ATTR_PARAM_BIND_TYPE */
|
---|
200 | Const SQL_PARAM_BIND_BY_COLUMN = 0
|
---|
201 | Const SQL_PARAM_BIND_TYPE_DEFAULT = SQL_PARAM_BIND_BY_COLUMN
|
---|
202 |
|
---|
203 |
|
---|
204 | /* SQL_QUERY_TIMEOUT options */
|
---|
205 | Const SQL_QUERY_TIMEOUT_DEFAULT = 0
|
---|
206 |
|
---|
207 | /* SQL_MAX_ROWS options */
|
---|
208 | Const SQL_MAX_ROWS_DEFAULT = 0
|
---|
209 |
|
---|
210 | /* SQL_NOSCAN options */
|
---|
211 | Const SQL_NOSCAN_OFF = 0 /* 1.0 FALSE */
|
---|
212 | Const SQL_NOSCAN_ON = 1 /* 1.0 TRUE */
|
---|
213 | Const SQL_NOSCAN_DEFAULT = SQL_NOSCAN_OFF
|
---|
214 |
|
---|
215 | /* SQL_MAX_LENGTH options */
|
---|
216 | Const SQL_MAX_LENGTH_DEFAULT = 0
|
---|
217 |
|
---|
218 | /* values for SQL_ATTR_ASYNC_ENABLE */
|
---|
219 | Const SQL_ASYNC_ENABLE_OFF = 0
|
---|
220 | Const SQL_ASYNC_ENABLE_ON = 1
|
---|
221 | Const SQL_ASYNC_ENABLE_DEFAULT = SQL_ASYNC_ENABLE_OFF
|
---|
222 |
|
---|
223 | /* SQL_BIND_TYPE options */
|
---|
224 | Const SQL_BIND_BY_COLUMN = 0
|
---|
225 | Const SQL_BIND_TYPE_DEFAULT = SQL_BIND_BY_COLUMN /* Default value */
|
---|
226 |
|
---|
227 | /* SQL_CONCURRENCY options */
|
---|
228 | Const SQL_CONCUR_READ_ONLY = 1
|
---|
229 | Const SQL_CONCUR_LOCK = 2
|
---|
230 | Const SQL_CONCUR_ROWVER = 3
|
---|
231 | Const SQL_CONCUR_VALUES = 4
|
---|
232 | Const SQL_CONCUR_DEFAULT = SQL_CONCUR_READ_ONLY /* Default value */
|
---|
233 |
|
---|
234 | /* SQL_CURSOR_TYPE options */
|
---|
235 | Const SQL_CURSOR_FORWARD_ONLY = 0
|
---|
236 | Const SQL_CURSOR_KEYSET_DRIVEN = 1
|
---|
237 | Const SQL_CURSOR_DYNAMIC = 2
|
---|
238 | Const SQL_CURSOR_STATIC = 3
|
---|
239 | Const SQL_CURSOR_TYPE_DEFAULT = SQL_CURSOR_FORWARD_ONLY /* Default value */
|
---|
240 |
|
---|
241 | /* SQL_ROWSET_SIZE options */
|
---|
242 | Const SQL_ROWSET_SIZE_DEFAULT = 1
|
---|
243 |
|
---|
244 | /* SQL_KEYSET_SIZE options */
|
---|
245 | Const SQL_KEYSET_SIZE_DEFAULT = 0
|
---|
246 |
|
---|
247 | /* SQL_SIMULATE_CURSOR options */
|
---|
248 | Const SQL_SC_NON_UNIQUE = 0
|
---|
249 | Const SQL_SC_TRY_UNIQUE = 1
|
---|
250 | Const SQL_SC_UNIQUE = 2
|
---|
251 |
|
---|
252 | /* SQL_RETRIEVE_DATA options */
|
---|
253 | Const SQL_RD_OFF = 0
|
---|
254 | Const SQL_RD_ON = 1
|
---|
255 | Const SQL_RD_DEFAULT = SQL_RD_ON
|
---|
256 |
|
---|
257 | /* SQL_USE_BOOKMARKS options */
|
---|
258 | Const SQL_UB_OFF = 0
|
---|
259 | Const SQL_UB_ON = 01
|
---|
260 | Const SQL_UB_DEFAULT = SQL_UB_OFF
|
---|
261 |
|
---|
262 | /* New values for SQL_USE_BOOKMARKS attribute */
|
---|
263 | Const SQL_UB_FIXED = SQL_UB_ON
|
---|
264 | Const SQL_UB_VARIABLE = 2
|
---|
265 |
|
---|
266 |
|
---|
267 | /* SQLColAttributes defines */
|
---|
268 | Const SQL_COLUMN_COUNT = 0
|
---|
269 | Const SQL_COLUMN_NAME = 1
|
---|
270 | Const SQL_COLUMN_TYPE = 2
|
---|
271 | Const SQL_COLUMN_LENGTH = 3
|
---|
272 | Const SQL_COLUMN_PRECISION = 4
|
---|
273 | Const SQL_COLUMN_SCALE = 5
|
---|
274 | Const SQL_COLUMN_DISPLAY_SIZE = 6
|
---|
275 | Const SQL_COLUMN_NULLABLE = 7
|
---|
276 | Const SQL_COLUMN_UNSIGNED = 8
|
---|
277 | Const SQL_COLUMN_MONEY = 9
|
---|
278 | Const SQL_COLUMN_UPDATABLE = 10
|
---|
279 | Const SQL_COLUMN_AUTO_INCREMENT = 11
|
---|
280 | Const SQL_COLUMN_CASE_SENSITIVE = 12
|
---|
281 | Const SQL_COLUMN_SEARCHABLE = 13
|
---|
282 | Const SQL_COLUMN_TYPE_NAME = 14
|
---|
283 | Const SQL_COLUMN_TABLE_NAME = 15
|
---|
284 | Const SQL_COLUMN_OWNER_NAME = 16
|
---|
285 | Const SQL_COLUMN_QUALIFIER_NAME = 17
|
---|
286 | Const SQL_COLUMN_LABEL = 18
|
---|
287 | Const SQL_COLATT_OPT_MAX = SQL_COLUMN_LABEL
|
---|
288 |
|
---|
289 |
|
---|
290 | /* extended descriptor field */
|
---|
291 | Const SQL_DESC_ARRAY_SIZE = 20
|
---|
292 | Const SQL_DESC_ARRAY_STATUS_PTR = 21
|
---|
293 | Const SQL_DESC_AUTO_UNIQUE_VALUE = SQL_COLUMN_AUTO_INCREMENT
|
---|
294 | Const SQL_DESC_BASE_COLUMN_NAME = 22
|
---|
295 | Const SQL_DESC_BASE_TABLE_NAME = 23
|
---|
296 | Const SQL_DESC_BIND_OFFSET_PTR = 24
|
---|
297 | Const SQL_DESC_BIND_TYPE = 25
|
---|
298 | Const SQL_DESC_CASE_SENSITIVE = SQL_COLUMN_CASE_SENSITIVE
|
---|
299 | Const SQL_DESC_CATALOG_NAME = SQL_COLUMN_QUALIFIER_NAME
|
---|
300 | Const SQL_DESC_CONCISE_TYPE = SQL_COLUMN_TYPE
|
---|
301 | Const SQL_DESC_DATETIME_INTERVAL_PRECISION = 26
|
---|
302 | Const SQL_DESC_DISPLAY_SIZE = SQL_COLUMN_DISPLAY_SIZE
|
---|
303 | Const SQL_DESC_FIXED_PREC_SCALE = SQL_COLUMN_MONEY
|
---|
304 | Const SQL_DESC_LABEL = SQL_COLUMN_LABEL
|
---|
305 | Const SQL_DESC_LITERAL_PREFIX = 27
|
---|
306 | Const SQL_DESC_LITERAL_SUFFIX = 28
|
---|
307 | Const SQL_DESC_LOCAL_TYPE_NAME = 29
|
---|
308 | Const SQL_DESC_MAXIMUM_SCALE = 30
|
---|
309 | Const SQL_DESC_MINIMUM_SCALE = 31
|
---|
310 | Const SQL_DESC_NUM_PREC_RADIX = 32
|
---|
311 | Const SQL_DESC_PARAMETER_TYPE = 33
|
---|
312 | Const SQL_DESC_ROWS_PROCESSED_PTR = 34
|
---|
313 | Const SQL_DESC_ROWVER = 35
|
---|
314 | Const SQL_DESC_SCHEMA_NAME = SQL_COLUMN_OWNER_NAME
|
---|
315 | Const SQL_DESC_SEARCHABLE = SQL_COLUMN_SEARCHABLE
|
---|
316 | Const SQL_DESC_TYPE_NAME = SQL_COLUMN_TYPE_NAME
|
---|
317 | Const SQL_DESC_TABLE_NAME = SQL_COLUMN_TABLE_NAME
|
---|
318 | Const SQL_DESC_UNSIGNED = SQL_COLUMN_UNSIGNED
|
---|
319 | Const SQL_DESC_UPDATABLE = SQL_COLUMN_UPDATABLE
|
---|
320 |
|
---|
321 |
|
---|
322 | /* defines for diagnostics fields */
|
---|
323 | Const SQL_DIAG_CURSOR_ROW_COUNT = (-1249)
|
---|
324 | Const SQL_DIAG_ROW_NUMBER = (-1248)
|
---|
325 | Const SQL_DIAG_COLUMN_NUMBER = (-1247)
|
---|
326 |
|
---|
327 | /* SQL extended datatypes */
|
---|
328 | Const SQL_DATE = 9
|
---|
329 | Const SQL_INTERVAL = 10
|
---|
330 |
|
---|
331 | Const SQL_TIME = 10
|
---|
332 | Const SQL_TIMESTAMP = 11
|
---|
333 | Const SQL_LONGVARCHAR = (-1)
|
---|
334 | Const SQL_BINARY = (-2)
|
---|
335 | Const SQL_VARBINARY = (-3)
|
---|
336 | Const SQL_LONGVARBINARY = (-4)
|
---|
337 | Const SQL_BIGINT = (-5)
|
---|
338 | Const SQL_TINYINT = (-6)
|
---|
339 | Const SQL_BIT = (-7)
|
---|
340 | Const SQL_GUID = (-11)
|
---|
341 |
|
---|
342 | /* interval code */
|
---|
343 | Const SQL_CODE_YEAR = 1
|
---|
344 | Const SQL_CODE_MONTH = 2
|
---|
345 | Const SQL_CODE_DAY = 3
|
---|
346 | Const SQL_CODE_HOUR = 4
|
---|
347 | Const SQL_CODE_MINUTE = 5
|
---|
348 | Const SQL_CODE_SECOND = 6
|
---|
349 | Const SQL_CODE_YEAR_TO_MONTH = 7
|
---|
350 | Const SQL_CODE_DAY_TO_HOUR = 8
|
---|
351 | Const SQL_CODE_DAY_TO_MINUTE = 9
|
---|
352 | Const SQL_CODE_DAY_TO_SECOND = 10
|
---|
353 | Const SQL_CODE_HOUR_TO_MINUTE = 11
|
---|
354 | Const SQL_CODE_HOUR_TO_SECOND = 12
|
---|
355 | Const SQL_CODE_MINUTE_TO_SECOND = 13
|
---|
356 |
|
---|
357 | Const SQL_INTERVAL_YEAR = (100 + SQL_CODE_YEAR)
|
---|
358 | Const SQL_INTERVAL_MONTH = (100 + SQL_CODE_MONTH)
|
---|
359 | Const SQL_INTERVAL_DAY = (100 + SQL_CODE_DAY)
|
---|
360 | Const SQL_INTERVAL_HOUR = (100 + SQL_CODE_HOUR)
|
---|
361 | Const SQL_INTERVAL_MINUTE = (100 + SQL_CODE_MINUTE)
|
---|
362 | Const SQL_INTERVAL_SECOND = (100 + SQL_CODE_SECOND)
|
---|
363 | Const SQL_INTERVAL_YEAR_TO_MONTH = (100 + SQL_CODE_YEAR_TO_MONTH)
|
---|
364 | Const SQL_INTERVAL_DAY_TO_HOUR = (100 + SQL_CODE_DAY_TO_HOUR)
|
---|
365 | Const SQL_INTERVAL_DAY_TO_MINUTE = (100 + SQL_CODE_DAY_TO_MINUTE)
|
---|
366 | Const SQL_INTERVAL_DAY_TO_SECOND = (100 + SQL_CODE_DAY_TO_SECOND)
|
---|
367 | Const SQL_INTERVAL_HOUR_TO_MINUTE = (100 + SQL_CODE_HOUR_TO_MINUTE)
|
---|
368 | Const SQL_INTERVAL_HOUR_TO_SECOND = (100 + SQL_CODE_HOUR_TO_SECOND)
|
---|
369 | Const SQL_INTERVAL_MINUTE_TO_SECOND = (100 + SQL_CODE_MINUTE_TO_SECOND)
|
---|
370 |
|
---|
371 |
|
---|
372 |
|
---|
373 | /* C datatype to SQL datatype mapping SQL types
|
---|
374 | ------------------- */
|
---|
375 | Const SQL_C_CHAR = SQL_CHAR /* CHAR, VARCHAR, DECIMAL, NUMERIC */
|
---|
376 | Const SQL_C_LONG = SQL_INTEGER /* INTEGER */
|
---|
377 | Const SQL_C_SHORT = SQL_SMALLINT /* SMALLINT */
|
---|
378 | Const SQL_C_FLOAT = SQL_REAL /* REAL */
|
---|
379 | Const SQL_C_DOUBLE = SQL_DOUBLE /* FLOAT, DOUBLE */
|
---|
380 | Const SQL_C_NUMERIC = SQL_NUMERIC
|
---|
381 |
|
---|
382 | Const SQL_C_DEFAULT = 99
|
---|
383 |
|
---|
384 | Const SQL_SIGNED_OFFSET = (-20)
|
---|
385 | Const SQL_UNSIGNED_OFFSET = (-22)
|
---|
386 |
|
---|
387 | /* C datatype to SQL datatype mapping */
|
---|
388 | Const SQL_C_DATE = SQL_DATE
|
---|
389 | Const SQL_C_TIME = SQL_TIME
|
---|
390 | Const SQL_C_TIMESTAMP = SQL_TIMESTAMP
|
---|
391 | Const SQL_C_TYPE_DATE = SQL_TYPE_DATE
|
---|
392 | Const SQL_C_TYPE_TIME = SQL_TYPE_TIME
|
---|
393 | Const SQL_C_TYPE_TIMESTAMP = SQL_TYPE_TIMESTAMP
|
---|
394 | Const SQL_C_INTERVAL_YEAR = SQL_INTERVAL_YEAR
|
---|
395 | Const SQL_C_INTERVAL_MONTH = SQL_INTERVAL_MONTH
|
---|
396 | Const SQL_C_INTERVAL_DAY = SQL_INTERVAL_DAY
|
---|
397 | Const SQL_C_INTERVAL_HOUR = SQL_INTERVAL_HOUR
|
---|
398 | Const SQL_C_INTERVAL_MINUTE = SQL_INTERVAL_MINUTE
|
---|
399 | Const SQL_C_INTERVAL_SECOND = SQL_INTERVAL_SECOND
|
---|
400 | Const SQL_C_INTERVAL_YEAR_TO_MONTH = SQL_INTERVAL_YEAR_TO_MONTH
|
---|
401 | Const SQL_C_INTERVAL_DAY_TO_HOUR = SQL_INTERVAL_DAY_TO_HOUR
|
---|
402 | Const SQL_C_INTERVAL_DAY_TO_MINUTE = SQL_INTERVAL_DAY_TO_MINUTE
|
---|
403 | Const SQL_C_INTERVAL_DAY_TO_SECOND = SQL_INTERVAL_DAY_TO_SECOND
|
---|
404 | Const SQL_C_INTERVAL_HOUR_TO_MINUTE = SQL_INTERVAL_HOUR_TO_MINUTE
|
---|
405 | Const SQL_C_INTERVAL_HOUR_TO_SECOND = SQL_INTERVAL_HOUR_TO_SECOND
|
---|
406 | Const SQL_C_INTERVAL_MINUTE_TO_SECOND = SQL_INTERVAL_MINUTE_TO_SECOND
|
---|
407 |
|
---|
408 | Const SQL_C_BINARY = SQL_BINARY
|
---|
409 | Const SQL_C_BIT = SQL_BIT
|
---|
410 | Const SQL_C_SBIGINT = (SQL_BIGINT+SQL_SIGNED_OFFSET) /* SIGNED BIGINT */
|
---|
411 | Const SQL_C_UBIGINT = (SQL_BIGINT+SQL_UNSIGNED_OFFSET) /* UNSIGNED BIGINT */
|
---|
412 |
|
---|
413 | Const SQL_C_TINYINT = SQL_TINYINT
|
---|
414 | Const SQL_C_SLONG = (SQL_C_LONG+SQL_SIGNED_OFFSET) /* SIGNED INTEGER */
|
---|
415 | Const SQL_C_SSHORT = (SQL_C_SHORT+SQL_SIGNED_OFFSET) /* SIGNED SMALLINT */
|
---|
416 | Const SQL_C_STINYINT = (SQL_TINYINT+SQL_SIGNED_OFFSET) /* SIGNED TINYINT */
|
---|
417 | Const SQL_C_ULONG = (SQL_C_LONG+SQL_UNSIGNED_OFFSET) /* UNSIGNED INTEGER*/
|
---|
418 | Const SQL_C_USHORT = (SQL_C_SHORT+SQL_UNSIGNED_OFFSET) /* UNSIGNED SMALLINT*/
|
---|
419 | Const SQL_C_UTINYINT = (SQL_TINYINT+SQL_UNSIGNED_OFFSET) /* UNSIGNED TINYINT*/
|
---|
420 |
|
---|
421 | #ifdef _WIN64
|
---|
422 | Const SQL_C_BOOKMARK = SQL_C_UBIGINT /* BOOKMARK */
|
---|
423 | #else
|
---|
424 | Const SQL_C_BOOKMARK = SQL_C_ULONG /* BOOKMARK */
|
---|
425 | #endif
|
---|
426 |
|
---|
427 |
|
---|
428 | Const SQL_TYPE_NULL = 0
|
---|
429 |
|
---|
430 | Const SQL_C_VARBOOKMARK = SQL_C_BINARY
|
---|
431 |
|
---|
432 |
|
---|
433 | /* define for SQL_DIAG_ROW_NUMBER and SQL_DIAG_COLUMN_NUMBER */
|
---|
434 | Const SQL_NO_ROW_NUMBER = (-1)
|
---|
435 | Const SQL_NO_COLUMN_NUMBER = (-1)
|
---|
436 | Const SQL_ROW_NUMBER_UNKNOWN = (-2)
|
---|
437 | Const SQL_COLUMN_NUMBER_UNKNOWN = (-2)
|
---|
438 |
|
---|
439 | /* SQLBindParameter extensions */
|
---|
440 | Const SQL_DEFAULT_PARAM = (-5)
|
---|
441 | Const SQL_IGNORE = (-6)
|
---|
442 | Const SQL_COLUMN_IGNORE = SQL_IGNORE
|
---|
443 |
|
---|
444 | Const SQL_LEN_DATA_AT_EXEC_OFFSET = (-100)
|
---|
445 | #define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET)
|
---|
446 |
|
---|
447 | /* binary length for driver specific attributes */
|
---|
448 | Const SQL_LEN_BINARY_ATTR_OFFSET = (-100)
|
---|
449 | #define SQL_LEN_BINARY_ATTR(length) (-(length)+SQL_LEN_BINARY_ATTR_OFFSET)
|
---|
450 |
|
---|
451 | /* Defines for SQLBindParameter and
|
---|
452 | SQLProcedureColumns (returned in the result set) */
|
---|
453 | Const SQL_PARAM_TYPE_UNKNOWN = 0
|
---|
454 | Const SQL_PARAM_INPUT = 1
|
---|
455 | Const SQL_PARAM_INPUT_OUTPUT = 2
|
---|
456 | Const SQL_RESULT_COL = 3
|
---|
457 | Const SQL_PARAM_OUTPUT = 4
|
---|
458 | Const SQL_RETURN_VALUE = 5
|
---|
459 |
|
---|
460 | /* Defines used by Driver Manager when mapping SQLSetParam to SQLBindParameter
|
---|
461 | */
|
---|
462 | Const SQL_PARAM_TYPE_DEFAULT = SQL_PARAM_INPUT_OUTPUT
|
---|
463 | Const SQL_SETPARAM_VALUE_MAX = (-1)
|
---|
464 |
|
---|
465 |
|
---|
466 | Const SQL_COLATT_OPT_MIN = SQL_COLUMN_COUNT
|
---|
467 |
|
---|
468 | /* SQLColAttributes subdefines for SQL_COLUMN_UPDATABLE */
|
---|
469 | Const SQL_ATTR_READONLY = 0
|
---|
470 | Const SQL_ATTR_WRITE = 1
|
---|
471 | Const SQL_ATTR_READWRITE_UNKNOWN = 2
|
---|
472 |
|
---|
473 | /* SQLColAttributes subdefines for SQL_COLUMN_SEARCHABLE */
|
---|
474 | /* These are also used by SQLGetInfo */
|
---|
475 | Const SQL_UNSEARCHABLE = 0
|
---|
476 | Const SQL_LIKE_ONLY = 1
|
---|
477 | Const SQL_ALL_EXCEPT_LIKE = 2
|
---|
478 | Const SQL_SEARCHABLE = 3
|
---|
479 | Const SQL_PRED_SEARCHABLE = SQL_SEARCHABLE
|
---|
480 |
|
---|
481 |
|
---|
482 | /* Special return values for SQLGetData */
|
---|
483 | Const SQL_NO_TOTAL = (-4)
|
---|
484 |
|
---|
485 | /********************************************/
|
---|
486 | /* SQLGetFunctions: additional values for */
|
---|
487 | /* fFunction to represent functions that */
|
---|
488 | /* are not in the X/Open spec. */
|
---|
489 | /********************************************/
|
---|
490 |
|
---|
491 | Const SQL_API_SQLALLOCHANDLESTD = 73
|
---|
492 | Const SQL_API_SQLBULKOPERATIONS = 24
|
---|
493 | Const SQL_API_SQLBINDPARAMETER = 72
|
---|
494 | Const SQL_API_SQLBROWSECONNECT = 55
|
---|
495 | Const SQL_API_SQLCOLATTRIBUTES = 6
|
---|
496 | Const SQL_API_SQLCOLUMNPRIVILEGES = 56
|
---|
497 | Const SQL_API_SQLDESCRIBEPARAM = 58
|
---|
498 | Const SQL_API_SQLDRIVERCONNECT = 41
|
---|
499 | Const SQL_API_SQLDRIVERS = 71
|
---|
500 | Const SQL_API_SQLEXTENDEDFETCH = 59
|
---|
501 | Const SQL_API_SQLFOREIGNKEYS = 60
|
---|
502 | Const SQL_API_SQLMORERESULTS = 61
|
---|
503 | Const SQL_API_SQLNATIVESQL = 62
|
---|
504 | Const SQL_API_SQLNUMPARAMS = 63
|
---|
505 | Const SQL_API_SQLPARAMOPTIONS = 64
|
---|
506 | Const SQL_API_SQLPRIMARYKEYS = 65
|
---|
507 | Const SQL_API_SQLPROCEDURECOLUMNS = 66
|
---|
508 | Const SQL_API_SQLPROCEDURES = 67
|
---|
509 | Const SQL_API_SQLSETPOS = 68
|
---|
510 | Const SQL_API_SQLSETSCROLLOPTIONS = 69
|
---|
511 | Const SQL_API_SQLTABLEPRIVILEGES = 70
|
---|
512 |
|
---|
513 |
|
---|
514 | /*--------------------------------------------*/
|
---|
515 | /* SQL_API_ALL_FUNCTIONS returns an array */
|
---|
516 | /* of 'booleans' representing whether a */
|
---|
517 | /* function is implemented by the driver. */
|
---|
518 | /* */
|
---|
519 | /* CAUTION: Only functions defined in ODBC */
|
---|
520 | /* version 2.0 and earlier are returned, the */
|
---|
521 | /* new high-range function numbers defined by */
|
---|
522 | /* X/Open break this scheme. See the new */
|
---|
523 | /* method -- SQL_API_ODBC3_ALL_FUNCTIONS */
|
---|
524 | /*--------------------------------------------*/
|
---|
525 |
|
---|
526 | Const SQL_API_ALL_FUNCTIONS = 0 /* See CAUTION above */
|
---|
527 |
|
---|
528 | /*----------------------------------------------*/
|
---|
529 | /* 2.X drivers export a dummy function with */
|
---|
530 | /* ordinal number SQL_API_LOADBYORDINAL to speed*/
|
---|
531 | /* loading under the windows operating system. */
|
---|
532 | /* */
|
---|
533 | /* CAUTION: Loading by ordinal is not supported */
|
---|
534 | /* for 3.0 and above drivers. */
|
---|
535 | /*----------------------------------------------*/
|
---|
536 |
|
---|
537 | Const SQL_API_LOADBYORDINAL = 199 /* See CAUTION above */
|
---|
538 |
|
---|
539 | /*----------------------------------------------*/
|
---|
540 | /* SQL_API_ODBC3_ALL_FUNCTIONS */
|
---|
541 | /* This returns a bitmap, which allows us to */
|
---|
542 | /* handle the higher-valued function numbers. */
|
---|
543 | /* Use SQL_FUNC_EXISTS(bitmap,function_number) */
|
---|
544 | /* to determine if the function exists. */
|
---|
545 | /*----------------------------------------------*/
|
---|
546 |
|
---|
547 |
|
---|
548 | Const SQL_API_ODBC3_ALL_FUNCTIONS = 999
|
---|
549 | Const SQL_API_ODBC3_ALL_FUNCTIONS_SIZE = 250 /* array of 250 words */
|
---|
550 |
|
---|
551 |
|
---|
552 |
|
---|
553 | /************************************************/
|
---|
554 | /* Extended definitions for SQLGetInfo */
|
---|
555 | /************************************************/
|
---|
556 |
|
---|
557 | /*---------------------------------*/
|
---|
558 | /* Values in ODBC 2.0 that are not */
|
---|
559 | /* in the X/Open spec */
|
---|
560 | /*---------------------------------*/
|
---|
561 |
|
---|
562 | Const SQL_INFO_FIRST = 0
|
---|
563 | Const SQL_ACTIVE_CONNECTIONS = 0 /* MAX_DRIVER_CONNECTIONS */
|
---|
564 | Const SQL_ACTIVE_STATEMENTS = 1 /* MAX_CONCURRENT_ACTIVITIES */
|
---|
565 | Const SQL_DRIVER_HDBC = 3
|
---|
566 | Const SQL_DRIVER_HENV = 4
|
---|
567 | Const SQL_DRIVER_HSTMT = 5
|
---|
568 | Const SQL_DRIVER_NAME = 6
|
---|
569 | Const SQL_DRIVER_VER = 7
|
---|
570 | Const SQL_ODBC_API_CONFORMANCE = 9
|
---|
571 | Const SQL_ODBC_VER = 10
|
---|
572 | Const SQL_ROW_UPDATES = 11
|
---|
573 | Const SQL_ODBC_SAG_CLI_CONFORMANCE = 12
|
---|
574 | Const SQL_ODBC_SQL_CONFORMANCE = 15
|
---|
575 | Const SQL_PROCEDURES = 21
|
---|
576 | Const SQL_CONCAT_NULL_BEHAVIOR = 22
|
---|
577 | Const SQL_CURSOR_ROLLBACK_BEHAVIOR = 24
|
---|
578 | Const SQL_EXPRESSIONS_IN_ORDERBY = 27
|
---|
579 | Const SQL_MAX_OWNER_NAME_LEN = 32 /* MAX_SCHEMA_NAME_LEN */
|
---|
580 | Const SQL_MAX_PROCEDURE_NAME_LEN = 33
|
---|
581 | Const SQL_MAX_QUALIFIER_NAME_LEN = 34 /* MAX_CATALOG_NAME_LEN */
|
---|
582 | Const SQL_MULT_RESULT_SETS = 36
|
---|
583 | Const SQL_MULTIPLE_ACTIVE_TXN = 37
|
---|
584 | Const SQL_OUTER_JOINS = 38
|
---|
585 | Const SQL_OWNER_TERM = 39
|
---|
586 | Const SQL_PROCEDURE_TERM = 40
|
---|
587 | Const SQL_QUALIFIER_NAME_SEPARATOR = 41
|
---|
588 | Const SQL_QUALIFIER_TERM = 42
|
---|
589 | Const SQL_SCROLL_OPTIONS = 44
|
---|
590 | Const SQL_TABLE_TERM = 45
|
---|
591 | Const SQL_CONVERT_FUNCTIONS = 48
|
---|
592 | Const SQL_NUMERIC_FUNCTIONS = 49
|
---|
593 | Const SQL_STRING_FUNCTIONS = 50
|
---|
594 | Const SQL_SYSTEM_FUNCTIONS = 51
|
---|
595 | Const SQL_TIMEDATE_FUNCTIONS = 52
|
---|
596 | Const SQL_CONVERT_BIGINT = 53
|
---|
597 | Const SQL_CONVERT_BINARY = 54
|
---|
598 | Const SQL_CONVERT_BIT = 55
|
---|
599 | Const SQL_CONVERT_CHAR = 56
|
---|
600 | Const SQL_CONVERT_DATE = 57
|
---|
601 | Const SQL_CONVERT_DECIMAL = 58
|
---|
602 | Const SQL_CONVERT_DOUBLE = 59
|
---|
603 | Const SQL_CONVERT_FLOAT = 60
|
---|
604 | Const SQL_CONVERT_INTEGER = 61
|
---|
605 | Const SQL_CONVERT_LONGVARCHAR = 62
|
---|
606 | Const SQL_CONVERT_NUMERIC = 63
|
---|
607 | Const SQL_CONVERT_REAL = 64
|
---|
608 | Const SQL_CONVERT_SMALLINT = 65
|
---|
609 | Const SQL_CONVERT_TIME = 66
|
---|
610 | Const SQL_CONVERT_TIMESTAMP = 67
|
---|
611 | Const SQL_CONVERT_TINYINT = 68
|
---|
612 | Const SQL_CONVERT_VARBINARY = 69
|
---|
613 | Const SQL_CONVERT_VARCHAR = 70
|
---|
614 | Const SQL_CONVERT_LONGVARBINARY = 71
|
---|
615 | Const SQL_ODBC_SQL_OPT_IEF = 73 /* SQL_INTEGRITY */
|
---|
616 | Const SQL_CORRELATION_NAME = 74
|
---|
617 | Const SQL_NON_NULLABLE_COLUMNS = 75
|
---|
618 | Const SQL_DRIVER_HLIB = 76
|
---|
619 | Const SQL_DRIVER_ODBC_VER = 77
|
---|
620 | Const SQL_LOCK_TYPES = 78
|
---|
621 | Const SQL_POS_OPERATIONS = 79
|
---|
622 | Const SQL_POSITIONED_STATEMENTS = 80
|
---|
623 | Const SQL_BOOKMARK_PERSISTENCE = 82
|
---|
624 | Const SQL_STATIC_SENSITIVITY = 83
|
---|
625 | Const SQL_FILE_USAGE = 84
|
---|
626 | Const SQL_COLUMN_ALIAS = 87
|
---|
627 | Const SQL_GROUP_BY = 88
|
---|
628 | Const SQL_KEYWORDS = 89
|
---|
629 | Const SQL_OWNER_USAGE = 91
|
---|
630 | Const SQL_QUALIFIER_USAGE = 92
|
---|
631 | Const SQL_QUOTED_IDENTIFIER_CASE = 93
|
---|
632 | Const SQL_SUBQUERIES = 95
|
---|
633 | Const SQL_UNION = 96
|
---|
634 | Const SQL_MAX_ROW_SIZE_INCLUDES_LONG = 103
|
---|
635 | Const SQL_MAX_CHAR_LITERAL_LEN = 108
|
---|
636 | Const SQL_TIMEDATE_ADD_INTERVALS = 109
|
---|
637 | Const SQL_TIMEDATE_DIFF_INTERVALS = 110
|
---|
638 | Const SQL_NEED_LONG_DATA_LEN = 111
|
---|
639 | Const SQL_MAX_BINARY_LITERAL_LEN = 112
|
---|
640 | Const SQL_LIKE_ESCAPE_CLAUSE = 113
|
---|
641 | Const SQL_QUALIFIER_LOCATION = 114
|
---|
642 |
|
---|
643 |
|
---|
644 |
|
---|
645 | /*-----------------------------------------------*/
|
---|
646 | /* ODBC 3.0 SQLGetInfo values that are not part */
|
---|
647 | /* of the X/Open standard at this time. X/Open */
|
---|
648 | /* standard values are in sql.h. */
|
---|
649 | /*-----------------------------------------------*/
|
---|
650 |
|
---|
651 | Const SQL_ACTIVE_ENVIRONMENTS = 116
|
---|
652 | Const SQL_ALTER_DOMAIN = 117
|
---|
653 |
|
---|
654 | Const SQL_SQL_CONFORMANCE = 118
|
---|
655 | Const SQL_DATETIME_LITERALS = 119
|
---|
656 |
|
---|
657 | Const SQL_ASYNC_MODE = 10021 /* new X/Open spec */
|
---|
658 | Const SQL_BATCH_ROW_COUNT = 120
|
---|
659 | Const SQL_BATCH_SUPPORT = 121
|
---|
660 | Const SQL_CATALOG_LOCATION = SQL_QUALIFIER_LOCATION
|
---|
661 | Const SQL_CATALOG_NAME_SEPARATOR = SQL_QUALIFIER_NAME_SEPARATOR
|
---|
662 | Const SQL_CATALOG_TERM = SQL_QUALIFIER_TERM
|
---|
663 | Const SQL_CATALOG_USAGE = SQL_QUALIFIER_USAGE
|
---|
664 | Const SQL_CONVERT_WCHAR = 122
|
---|
665 | Const SQL_CONVERT_INTERVAL_DAY_TIME = 123
|
---|
666 | Const SQL_CONVERT_INTERVAL_YEAR_MONTH = 124
|
---|
667 | Const SQL_CONVERT_WLONGVARCHAR = 125
|
---|
668 | Const SQL_CONVERT_WVARCHAR = 126
|
---|
669 | Const SQL_CREATE_ASSERTION = 127
|
---|
670 | Const SQL_CREATE_CHARACTER_SET = 128
|
---|
671 | Const SQL_CREATE_COLLATION = 129
|
---|
672 | Const SQL_CREATE_DOMAIN = 130
|
---|
673 | Const SQL_CREATE_SCHEMA = 131
|
---|
674 | Const SQL_CREATE_TABLE = 132
|
---|
675 | Const SQL_CREATE_TRANSLATION = 133
|
---|
676 | Const SQL_CREATE_VIEW = 134
|
---|
677 | Const SQL_DRIVER_HDESC = 135
|
---|
678 | Const SQL_DROP_ASSERTION = 136
|
---|
679 | Const SQL_DROP_CHARACTER_SET = 137
|
---|
680 | Const SQL_DROP_COLLATION = 138
|
---|
681 | Const SQL_DROP_DOMAIN = 139
|
---|
682 | Const SQL_DROP_SCHEMA = 140
|
---|
683 | Const SQL_DROP_TABLE = 141
|
---|
684 | Const SQL_DROP_TRANSLATION = 142
|
---|
685 | Const SQL_DROP_VIEW = 143
|
---|
686 | Const SQL_DYNAMIC_CURSOR_ATTRIBUTES1 = 144
|
---|
687 | Const SQL_DYNAMIC_CURSOR_ATTRIBUTES2 = 145
|
---|
688 | Const SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1 = 146
|
---|
689 | Const SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2 = 147
|
---|
690 | Const SQL_INDEX_KEYWORDS = 148
|
---|
691 | Const SQL_INFO_SCHEMA_VIEWS = 149
|
---|
692 | Const SQL_KEYSET_CURSOR_ATTRIBUTES1 = 150
|
---|
693 | Const SQL_KEYSET_CURSOR_ATTRIBUTES2 = 151
|
---|
694 | Const SQL_MAX_ASYNC_CONCURRENT_STATEMENTS = 10022 /* new X/Open spec */
|
---|
695 | Const SQL_ODBC_INTERFACE_CONFORMANCE = 152
|
---|
696 | Const SQL_PARAM_ARRAY_ROW_COUNTS = 153
|
---|
697 | Const SQL_PARAM_ARRAY_SELECTS = 154
|
---|
698 | Const SQL_SCHEMA_TERM = SQL_OWNER_TERM
|
---|
699 | Const SQL_SCHEMA_USAGE = SQL_OWNER_USAGE
|
---|
700 | Const SQL_SQL92_DATETIME_FUNCTIONS = 155
|
---|
701 | Const SQL_SQL92_FOREIGN_KEY_DELETE_RULE = 156
|
---|
702 | Const SQL_SQL92_FOREIGN_KEY_UPDATE_RULE = 157
|
---|
703 | Const SQL_SQL92_GRANT = 158
|
---|
704 | Const SQL_SQL92_NUMERIC_VALUE_FUNCTIONS = 159
|
---|
705 | Const SQL_SQL92_PREDICATES = 160
|
---|
706 | Const SQL_SQL92_RELATIONAL_JOIN_OPERATORS = 161
|
---|
707 | Const SQL_SQL92_REVOKE = 162
|
---|
708 | Const SQL_SQL92_ROW_VALUE_CONSTRUCTOR = 163
|
---|
709 | Const SQL_SQL92_STRING_FUNCTIONS = 164
|
---|
710 | Const SQL_SQL92_VALUE_EXPRESSIONS = 165
|
---|
711 | Const SQL_STANDARD_CLI_CONFORMANCE = 166
|
---|
712 | Const SQL_STATIC_CURSOR_ATTRIBUTES1 = 167
|
---|
713 | Const SQL_STATIC_CURSOR_ATTRIBUTES2 = 168
|
---|
714 |
|
---|
715 | Const SQL_AGGREGATE_FUNCTIONS = 169
|
---|
716 | Const SQL_DDL_INDEX = 170
|
---|
717 | Const SQL_DM_VER = 171
|
---|
718 | Const SQL_INSERT_STATEMENT = 172
|
---|
719 | Const SQL_CONVERT_GUID = 173
|
---|
720 | Const SQL_UNION_STATEMENT = SQL_UNION
|
---|
721 |
|
---|
722 |
|
---|
723 | Const SQL_DTC_TRANSITION_COST = 1750
|
---|
724 |
|
---|
725 | /* SQL_ALTER_TABLE bitmasks */
|
---|
726 | /* the following 5 bitmasks are defined in sql.h
|
---|
727 | *Const SQL_AT_ADD_COLUMN = &H00000001
|
---|
728 | *Const SQL_AT_DROP_COLUMN = &H00000002
|
---|
729 | *Const SQL_AT_ADD_CONSTRAINT = &H00000008
|
---|
730 | */
|
---|
731 | Const SQL_AT_ADD_COLUMN_SINGLE = &H00000020
|
---|
732 | Const SQL_AT_ADD_COLUMN_DEFAULT = &H00000040
|
---|
733 | Const SQL_AT_ADD_COLUMN_COLLATION = &H00000080
|
---|
734 | Const SQL_AT_SET_COLUMN_DEFAULT = &H00000100
|
---|
735 | Const SQL_AT_DROP_COLUMN_DEFAULT = &H00000200
|
---|
736 | Const SQL_AT_DROP_COLUMN_CASCADE = &H00000400
|
---|
737 | Const SQL_AT_DROP_COLUMN_RESTRICT = &H00000800
|
---|
738 | Const SQL_AT_ADD_TABLE_CONSTRAINT = &H00001000
|
---|
739 | Const SQL_AT_DROP_TABLE_CONSTRAINT_CASCADE = &H00002000
|
---|
740 | Const SQL_AT_DROP_TABLE_CONSTRAINT_RESTRICT = &H00004000
|
---|
741 | Const SQL_AT_CONSTRAINT_NAME_DEFINITION = &H00008000
|
---|
742 | Const SQL_AT_CONSTRAINT_INITIALLY_DEFERRED = &H00010000
|
---|
743 | Const SQL_AT_CONSTRAINT_INITIALLY_IMMEDIATE = &H00020000
|
---|
744 | Const SQL_AT_CONSTRAINT_DEFERRABLE = &H00040000
|
---|
745 | Const SQL_AT_CONSTRAINT_NON_DEFERRABLE = &H00080000
|
---|
746 |
|
---|
747 | /* SQL_CONVERT_* return value bitmasks */
|
---|
748 |
|
---|
749 | Const SQL_CVT_CHAR = &H00000001
|
---|
750 | Const SQL_CVT_NUMERIC = &H00000002
|
---|
751 | Const SQL_CVT_DECIMAL = &H00000004
|
---|
752 | Const SQL_CVT_INTEGER = &H00000008
|
---|
753 | Const SQL_CVT_SMALLINT = &H00000010
|
---|
754 | Const SQL_CVT_FLOAT = &H00000020
|
---|
755 | Const SQL_CVT_REAL = &H00000040
|
---|
756 | Const SQL_CVT_DOUBLE = &H00000080
|
---|
757 | Const SQL_CVT_VARCHAR = &H00000100
|
---|
758 | Const SQL_CVT_LONGVARCHAR = &H00000200
|
---|
759 | Const SQL_CVT_BINARY = &H00000400
|
---|
760 | Const SQL_CVT_VARBINARY = &H00000800
|
---|
761 | Const SQL_CVT_BIT = &H00001000
|
---|
762 | Const SQL_CVT_TINYINT = &H00002000
|
---|
763 | Const SQL_CVT_BIGINT = &H00004000
|
---|
764 | Const SQL_CVT_DATE = &H00008000
|
---|
765 | Const SQL_CVT_TIME = &H00010000
|
---|
766 | Const SQL_CVT_TIMESTAMP = &H00020000
|
---|
767 | Const SQL_CVT_LONGVARBINARY = &H00040000
|
---|
768 | Const SQL_CVT_INTERVAL_YEAR_MONTH = &H00080000
|
---|
769 | Const SQL_CVT_INTERVAL_DAY_TIME = &H00100000
|
---|
770 | Const SQL_CVT_WCHAR = &H00200000
|
---|
771 | Const SQL_CVT_WLONGVARCHAR = &H00400000
|
---|
772 | Const SQL_CVT_WVARCHAR = &H00800000
|
---|
773 | Const SQL_CVT_GUID = &H01000000
|
---|
774 |
|
---|
775 |
|
---|
776 |
|
---|
777 |
|
---|
778 | /* SQL_CONVERT_FUNCTIONS functions */
|
---|
779 | Const SQL_FN_CVT_CONVERT = &H00000001
|
---|
780 | Const SQL_FN_CVT_CAST = &H00000002
|
---|
781 |
|
---|
782 |
|
---|
783 |
|
---|
784 | /* SQL_STRING_FUNCTIONS functions */
|
---|
785 |
|
---|
786 | Const SQL_FN_STR_CONCAT = &H00000001
|
---|
787 | Const SQL_FN_STR_INSERT = &H00000002
|
---|
788 | Const SQL_FN_STR_LEFT = &H00000004
|
---|
789 | Const SQL_FN_STR_LTRIM = &H00000008
|
---|
790 | Const SQL_FN_STR_LENGTH = &H00000010
|
---|
791 | Const SQL_FN_STR_LOCATE = &H00000020
|
---|
792 | Const SQL_FN_STR_LCASE = &H00000040
|
---|
793 | Const SQL_FN_STR_REPEAT = &H00000080
|
---|
794 | Const SQL_FN_STR_REPLACE = &H00000100
|
---|
795 | Const SQL_FN_STR_RIGHT = &H00000200
|
---|
796 | Const SQL_FN_STR_RTRIM = &H00000400
|
---|
797 | Const SQL_FN_STR_SUBSTRING = &H00000800
|
---|
798 | Const SQL_FN_STR_UCASE = &H00001000
|
---|
799 | Const SQL_FN_STR_ASCII = &H00002000
|
---|
800 | Const SQL_FN_STR_CHAR = &H00004000
|
---|
801 | Const SQL_FN_STR_DIFFERENCE = &H00008000
|
---|
802 | Const SQL_FN_STR_LOCATE_2 = &H00010000
|
---|
803 | Const SQL_FN_STR_SOUNDEX = &H00020000
|
---|
804 | Const SQL_FN_STR_SPACE = &H00040000
|
---|
805 | Const SQL_FN_STR_BIT_LENGTH = &H00080000
|
---|
806 | Const SQL_FN_STR_CHAR_LENGTH = &H00100000
|
---|
807 | Const SQL_FN_STR_CHARACTER_LENGTH = &H00200000
|
---|
808 | Const SQL_FN_STR_OCTET_LENGTH = &H00400000
|
---|
809 | Const SQL_FN_STR_POSITION = &H00800000
|
---|
810 |
|
---|
811 |
|
---|
812 | /* SQL_SQL92_STRING_FUNCTIONS */
|
---|
813 | Const SQL_SSF_CONVERT = &H00000001
|
---|
814 | Const SQL_SSF_LOWER = &H00000002
|
---|
815 | Const SQL_SSF_UPPER = &H00000004
|
---|
816 | Const SQL_SSF_SUBSTRING = &H00000008
|
---|
817 | Const SQL_SSF_TRANSLATE = &H00000010
|
---|
818 | Const SQL_SSF_TRIM_BOTH = &H00000020
|
---|
819 | Const SQL_SSF_TRIM_LEADING = &H00000040
|
---|
820 | Const SQL_SSF_TRIM_TRAILING = &H00000080
|
---|
821 |
|
---|
822 | /* SQL_NUMERIC_FUNCTIONS functions */
|
---|
823 |
|
---|
824 | Const SQL_FN_NUM_ABS = &H00000001
|
---|
825 | Const SQL_FN_NUM_ACOS = &H00000002
|
---|
826 | Const SQL_FN_NUM_ASIN = &H00000004
|
---|
827 | Const SQL_FN_NUM_ATAN = &H00000008
|
---|
828 | Const SQL_FN_NUM_ATAN2 = &H00000010
|
---|
829 | Const SQL_FN_NUM_CEILING = &H00000020
|
---|
830 | Const SQL_FN_NUM_COS = &H00000040
|
---|
831 | Const SQL_FN_NUM_COT = &H00000080
|
---|
832 | Const SQL_FN_NUM_EXP = &H00000100
|
---|
833 | Const SQL_FN_NUM_FLOOR = &H00000200
|
---|
834 | Const SQL_FN_NUM_LOG = &H00000400
|
---|
835 | Const SQL_FN_NUM_MOD = &H00000800
|
---|
836 | Const SQL_FN_NUM_SIGN = &H00001000
|
---|
837 | Const SQL_FN_NUM_SIN = &H00002000
|
---|
838 | Const SQL_FN_NUM_SQRT = &H00004000
|
---|
839 | Const SQL_FN_NUM_TAN = &H00008000
|
---|
840 | Const SQL_FN_NUM_PI = &H00010000
|
---|
841 | Const SQL_FN_NUM_RAND = &H00020000
|
---|
842 | Const SQL_FN_NUM_DEGREES = &H00040000
|
---|
843 | Const SQL_FN_NUM_LOG10 = &H00080000
|
---|
844 | Const SQL_FN_NUM_POWER = &H00100000
|
---|
845 | Const SQL_FN_NUM_RADIANS = &H00200000
|
---|
846 | Const SQL_FN_NUM_ROUND = &H00400000
|
---|
847 | Const SQL_FN_NUM_TRUNCATE = &H00800000
|
---|
848 |
|
---|
849 | /* SQL_SQL92_NUMERIC_VALUE_FUNCTIONS */
|
---|
850 | Const SQL_SNVF_BIT_LENGTH = &H00000001
|
---|
851 | Const SQL_SNVF_CHAR_LENGTH = &H00000002
|
---|
852 | Const SQL_SNVF_CHARACTER_LENGTH = &H00000004
|
---|
853 | Const SQL_SNVF_EXTRACT = &H00000008
|
---|
854 | Const SQL_SNVF_OCTET_LENGTH = &H00000010
|
---|
855 | Const SQL_SNVF_POSITION = &H00000020
|
---|
856 |
|
---|
857 |
|
---|
858 | /* SQL_TIMEDATE_FUNCTIONS functions */
|
---|
859 |
|
---|
860 | Const SQL_FN_TD_NOW = &H00000001
|
---|
861 | Const SQL_FN_TD_CURDATE = &H00000002
|
---|
862 | Const SQL_FN_TD_DAYOFMONTH = &H00000004
|
---|
863 | Const SQL_FN_TD_DAYOFWEEK = &H00000008
|
---|
864 | Const SQL_FN_TD_DAYOFYEAR = &H00000010
|
---|
865 | Const SQL_FN_TD_MONTH = &H00000020
|
---|
866 | Const SQL_FN_TD_QUARTER = &H00000040
|
---|
867 | Const SQL_FN_TD_WEEK = &H00000080
|
---|
868 | Const SQL_FN_TD_YEAR = &H00000100
|
---|
869 | Const SQL_FN_TD_CURTIME = &H00000200
|
---|
870 | Const SQL_FN_TD_HOUR = &H00000400
|
---|
871 | Const SQL_FN_TD_MINUTE = &H00000800
|
---|
872 | Const SQL_FN_TD_SECOND = &H00001000
|
---|
873 | Const SQL_FN_TD_TIMESTAMPADD = &H00002000
|
---|
874 | Const SQL_FN_TD_TIMESTAMPDIFF = &H00004000
|
---|
875 | Const SQL_FN_TD_DAYNAME = &H00008000
|
---|
876 | Const SQL_FN_TD_MONTHNAME = &H00010000
|
---|
877 | Const SQL_FN_TD_CURRENT_DATE = &H00020000
|
---|
878 | Const SQL_FN_TD_CURRENT_TIME = &H00040000
|
---|
879 | Const SQL_FN_TD_CURRENT_TIMESTAMP = &H00080000
|
---|
880 | Const SQL_FN_TD_EXTRACT = &H00100000
|
---|
881 |
|
---|
882 |
|
---|
883 | /* SQL_SQL92_DATETIME_FUNCTIONS */
|
---|
884 | Const SQL_SDF_CURRENT_DATE = &H00000001
|
---|
885 | Const SQL_SDF_CURRENT_TIME = &H00000002
|
---|
886 | Const SQL_SDF_CURRENT_TIMESTAMP = &H00000004
|
---|
887 |
|
---|
888 | /* SQL_SYSTEM_FUNCTIONS functions */
|
---|
889 |
|
---|
890 | Const SQL_FN_SYS_USERNAME = &H00000001
|
---|
891 | Const SQL_FN_SYS_DBNAME = &H00000002
|
---|
892 | Const SQL_FN_SYS_IFNULL = &H00000004
|
---|
893 |
|
---|
894 | /* SQL_TIMEDATE_ADD_INTERVALS and SQL_TIMEDATE_DIFF_INTERVALS functions */
|
---|
895 |
|
---|
896 | Const SQL_FN_TSI_FRAC_SECOND = &H00000001
|
---|
897 | Const SQL_FN_TSI_SECOND = &H00000002
|
---|
898 | Const SQL_FN_TSI_MINUTE = &H00000004
|
---|
899 | Const SQL_FN_TSI_HOUR = &H00000008
|
---|
900 | Const SQL_FN_TSI_DAY = &H00000010
|
---|
901 | Const SQL_FN_TSI_WEEK = &H00000020
|
---|
902 | Const SQL_FN_TSI_MONTH = &H00000040
|
---|
903 | Const SQL_FN_TSI_QUARTER = &H00000080
|
---|
904 | Const SQL_FN_TSI_YEAR = &H00000100
|
---|
905 |
|
---|
906 | /* bitmasks for SQL_DYNAMIC_CURSOR_ATTRIBUTES1,
|
---|
907 | * SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1,
|
---|
908 | * SQL_KEYSET_CURSOR_ATTRIBUTES1, and SQL_STATIC_CURSOR_ATTRIBUTES1
|
---|
909 | */
|
---|
910 | /* supported SQLFetchScroll FetchOrientation's */
|
---|
911 | Const SQL_CA1_NEXT = &H00000001
|
---|
912 | Const SQL_CA1_ABSOLUTE = &H00000002
|
---|
913 | Const SQL_CA1_RELATIVE = &H00000004
|
---|
914 | Const SQL_CA1_BOOKMARK = &H00000008
|
---|
915 |
|
---|
916 | /* supported SQLSetPos LockType's */
|
---|
917 | Const SQL_CA1_LOCK_NO_CHANGE = &H00000040
|
---|
918 | Const SQL_CA1_LOCK_EXCLUSIVE = &H00000080
|
---|
919 | Const SQL_CA1_LOCK_UNLOCK = &H00000100
|
---|
920 |
|
---|
921 | /* supported SQLSetPos Operations */
|
---|
922 | Const SQL_CA1_POS_POSITION = &H00000200
|
---|
923 | Const SQL_CA1_POS_UPDATE = &H00000400
|
---|
924 | Const SQL_CA1_POS_DELETE = &H00000800
|
---|
925 | Const SQL_CA1_POS_REFRESH = &H00001000
|
---|
926 |
|
---|
927 | /* positioned updates and deletes */
|
---|
928 | Const SQL_CA1_POSITIONED_UPDATE = &H00002000
|
---|
929 | Const SQL_CA1_POSITIONED_DELETE = &H00004000
|
---|
930 | Const SQL_CA1_SELECT_FOR_UPDATE = &H00008000
|
---|
931 |
|
---|
932 | /* supported SQLBulkOperations operations */
|
---|
933 | Const SQL_CA1_BULK_ADD = &H00010000
|
---|
934 | Const SQL_CA1_BULK_UPDATE_BY_BOOKMARK = &H00020000
|
---|
935 | Const SQL_CA1_BULK_DELETE_BY_BOOKMARK = &H00040000
|
---|
936 | Const SQL_CA1_BULK_FETCH_BY_BOOKMARK = &H00080000
|
---|
937 |
|
---|
938 |
|
---|
939 | /* bitmasks for SQL_DYNAMIC_CURSOR_ATTRIBUTES2,
|
---|
940 | * SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2,
|
---|
941 | * SQL_KEYSET_CURSOR_ATTRIBUTES2, and SQL_STATIC_CURSOR_ATTRIBUTES2
|
---|
942 | */
|
---|
943 | /* supported values for SQL_ATTR_SCROLL_CONCURRENCY */
|
---|
944 | Const SQL_CA2_READ_ONLY_CONCURRENCY = &H00000001
|
---|
945 | Const SQL_CA2_LOCK_CONCURRENCY = &H00000002
|
---|
946 | Const SQL_CA2_OPT_ROWVER_CONCURRENCY = &H00000004
|
---|
947 | Const SQL_CA2_OPT_VALUES_CONCURRENCY = &H00000008
|
---|
948 |
|
---|
949 | /* sensitivity of the cursor to its own inserts, deletes, and updates */
|
---|
950 | Const SQL_CA2_SENSITIVITY_ADDITIONS = &H00000010
|
---|
951 | Const SQL_CA2_SENSITIVITY_DELETIONS = &H00000020
|
---|
952 | Const SQL_CA2_SENSITIVITY_UPDATES = &H00000040
|
---|
953 |
|
---|
954 | /* semantics of SQL_ATTR_MAX_ROWS */
|
---|
955 | Const SQL_CA2_MAX_ROWS_SELECT = &H00000080
|
---|
956 | Const SQL_CA2_MAX_ROWS_INSERT = &H00000100
|
---|
957 | Const SQL_CA2_MAX_ROWS_DELETE = &H00000200
|
---|
958 | Const SQL_CA2_MAX_ROWS_UPDATE = &H00000400
|
---|
959 | Const SQL_CA2_MAX_ROWS_CATALOG = &H00000800
|
---|
960 | Const SQL_CA2_MAX_ROWS_AFFECTS_ALL = (SQL_CA2_MAX_ROWS_SELECT or _
|
---|
961 | SQL_CA2_MAX_ROWS_INSERT or SQL_CA2_MAX_ROWS_DELETE or _
|
---|
962 | SQL_CA2_MAX_ROWS_UPDATE or SQL_CA2_MAX_ROWS_CATALOG)
|
---|
963 |
|
---|
964 | /* semantics of SQL_DIAG_CURSOR_ROW_COUNT */
|
---|
965 | Const SQL_CA2_CRC_EXACT = &H00001000
|
---|
966 | Const SQL_CA2_CRC_APPROXIMATE = &H00002000
|
---|
967 |
|
---|
968 | /* the kinds of positioned statements that can be simulated */
|
---|
969 | Const SQL_CA2_SIMULATE_NON_UNIQUE = &H00004000
|
---|
970 | Const SQL_CA2_SIMULATE_TRY_UNIQUE = &H00008000
|
---|
971 | Const SQL_CA2_SIMULATE_UNIQUE = &H00010000
|
---|
972 |
|
---|
973 |
|
---|
974 | /* SQL_ODBC_API_CONFORMANCE values */
|
---|
975 |
|
---|
976 | Const SQL_OAC_NONE = &H0000
|
---|
977 | Const SQL_OAC_LEVEL1 = &H0001
|
---|
978 | Const SQL_OAC_LEVEL2 = &H0002
|
---|
979 |
|
---|
980 | /* SQL_ODBC_SAG_CLI_CONFORMANCE values */
|
---|
981 |
|
---|
982 | Const SQL_OSCC_NOT_COMPLIANT = &H0000
|
---|
983 | Const SQL_OSCC_COMPLIANT = &H0001
|
---|
984 |
|
---|
985 | /* SQL_ODBC_SQL_CONFORMANCE values */
|
---|
986 |
|
---|
987 | Const SQL_OSC_MINIMUM = &H0000
|
---|
988 | Const SQL_OSC_CORE = &H0001
|
---|
989 | Const SQL_OSC_EXTENDED = &H0002
|
---|
990 |
|
---|
991 |
|
---|
992 | /* SQL_CONCAT_NULL_BEHAVIOR values */
|
---|
993 |
|
---|
994 | Const SQL_CB_NULL = &H0000
|
---|
995 | Const SQL_CB_NON_NULL = &H0001
|
---|
996 |
|
---|
997 | /* SQL_SCROLL_OPTIONS masks */
|
---|
998 |
|
---|
999 | Const SQL_SO_FORWARD_ONLY = &H00000001
|
---|
1000 | Const SQL_SO_KEYSET_DRIVEN = &H00000002
|
---|
1001 | Const SQL_SO_DYNAMIC = &H00000004
|
---|
1002 | Const SQL_SO_MIXED = &H00000008
|
---|
1003 | Const SQL_SO_STATIC = &H00000010
|
---|
1004 |
|
---|
1005 | /* SQL_FETCH_DIRECTION masks */
|
---|
1006 |
|
---|
1007 | /* SQL_FETCH_RESUME is no longer supported
|
---|
1008 | Const SQL_FD_FETCH_RESUME = &H00000040
|
---|
1009 | */
|
---|
1010 | Const SQL_FD_FETCH_BOOKMARK = &H00000080
|
---|
1011 |
|
---|
1012 | /* SQL_TXN_ISOLATION_OPTION masks */
|
---|
1013 | /* SQL_TXN_VERSIONING is no longer supported
|
---|
1014 | Const SQL_TXN_VERSIONING = &H00000010
|
---|
1015 | */
|
---|
1016 |
|
---|
1017 | /* SQL_CORRELATION_NAME values */
|
---|
1018 |
|
---|
1019 | Const SQL_CN_NONE = &H0000
|
---|
1020 | Const SQL_CN_DIFFERENT = &H0001
|
---|
1021 | Const SQL_CN_ANY = &H0002
|
---|
1022 |
|
---|
1023 | /* SQL_NON_NULLABLE_COLUMNS values */
|
---|
1024 |
|
---|
1025 | Const SQL_NNC_NULL = &H0000
|
---|
1026 | Const SQL_NNC_NON_NULL = &H0001
|
---|
1027 |
|
---|
1028 | /* SQL_NULL_COLLATION values */
|
---|
1029 |
|
---|
1030 | Const SQL_NC_START = &H0002
|
---|
1031 | Const SQL_NC_END = &H0004
|
---|
1032 |
|
---|
1033 | /* SQL_FILE_USAGE values */
|
---|
1034 |
|
---|
1035 | Const SQL_FILE_NOT_SUPPORTED = &H0000
|
---|
1036 | Const SQL_FILE_TABLE = &H0001
|
---|
1037 | Const SQL_FILE_QUALIFIER = &H0002
|
---|
1038 | Const SQL_FILE_CATALOG = SQL_FILE_QUALIFIER ' ODBC 3.0
|
---|
1039 |
|
---|
1040 |
|
---|
1041 | /* SQL_GETDATA_EXTENSIONS values */
|
---|
1042 |
|
---|
1043 | Const SQL_GD_BLOCK = &H00000004
|
---|
1044 | Const SQL_GD_BOUND = &H00000008
|
---|
1045 |
|
---|
1046 | /* SQL_POSITIONED_STATEMENTS masks */
|
---|
1047 |
|
---|
1048 | Const SQL_PS_POSITIONED_DELETE = &H00000001
|
---|
1049 | Const SQL_PS_POSITIONED_UPDATE = &H00000002
|
---|
1050 | Const SQL_PS_SELECT_FOR_UPDATE = &H00000004
|
---|
1051 |
|
---|
1052 | /* SQL_GROUP_BY values */
|
---|
1053 |
|
---|
1054 | Const SQL_GB_NOT_SUPPORTED = &H0000
|
---|
1055 | Const SQL_GB_GROUP_BY_EQUALS_SELECT = &H0001
|
---|
1056 | Const SQL_GB_GROUP_BY_CONTAINS_SELECT = &H0002
|
---|
1057 | Const SQL_GB_NO_RELATION = &H0003
|
---|
1058 | Const SQL_GB_COLLATE = &H0004
|
---|
1059 |
|
---|
1060 |
|
---|
1061 |
|
---|
1062 | /* SQL_OWNER_USAGE masks */
|
---|
1063 |
|
---|
1064 | Const SQL_OU_DML_STATEMENTS = &H00000001
|
---|
1065 | Const SQL_OU_PROCEDURE_INVOCATION = &H00000002
|
---|
1066 | Const SQL_OU_TABLE_DEFINITION = &H00000004
|
---|
1067 | Const SQL_OU_INDEX_DEFINITION = &H00000008
|
---|
1068 | Const SQL_OU_PRIVILEGE_DEFINITION = &H00000010
|
---|
1069 |
|
---|
1070 | /* SQL_SCHEMA_USAGE masks */
|
---|
1071 | Const SQL_SU_DML_STATEMENTS = SQL_OU_DML_STATEMENTS
|
---|
1072 | Const SQL_SU_PROCEDURE_INVOCATION = SQL_OU_PROCEDURE_INVOCATION
|
---|
1073 | Const SQL_SU_TABLE_DEFINITION = SQL_OU_TABLE_DEFINITION
|
---|
1074 | Const SQL_SU_INDEX_DEFINITION = SQL_OU_INDEX_DEFINITION
|
---|
1075 | Const SQL_SU_PRIVILEGE_DEFINITION = SQL_OU_PRIVILEGE_DEFINITION
|
---|
1076 |
|
---|
1077 |
|
---|
1078 | /* SQL_QUALIFIER_USAGE masks */
|
---|
1079 |
|
---|
1080 | Const SQL_QU_DML_STATEMENTS = &H00000001
|
---|
1081 | Const SQL_QU_PROCEDURE_INVOCATION = &H00000002
|
---|
1082 | Const SQL_QU_TABLE_DEFINITION = &H00000004
|
---|
1083 | Const SQL_QU_INDEX_DEFINITION = &H00000008
|
---|
1084 | Const SQL_QU_PRIVILEGE_DEFINITION = &H00000010
|
---|
1085 |
|
---|
1086 | /* SQL_CATALOG_USAGE masks */
|
---|
1087 | Const SQL_CU_DML_STATEMENTS = SQL_QU_DML_STATEMENTS
|
---|
1088 | Const SQL_CU_PROCEDURE_INVOCATION = SQL_QU_PROCEDURE_INVOCATION
|
---|
1089 | Const SQL_CU_TABLE_DEFINITION = SQL_QU_TABLE_DEFINITION
|
---|
1090 | Const SQL_CU_INDEX_DEFINITION = SQL_QU_INDEX_DEFINITION
|
---|
1091 | Const SQL_CU_PRIVILEGE_DEFINITION = SQL_QU_PRIVILEGE_DEFINITION
|
---|
1092 |
|
---|
1093 |
|
---|
1094 | /* SQL_SUBQUERIES masks */
|
---|
1095 |
|
---|
1096 | Const SQL_SQ_COMPARISON = &H00000001
|
---|
1097 | Const SQL_SQ_EXISTS = &H00000002
|
---|
1098 | Const SQL_SQ_IN = &H00000004
|
---|
1099 | Const SQL_SQ_QUANTIFIED = &H00000008
|
---|
1100 | Const SQL_SQ_CORRELATED_SUBQUERIES = &H00000010
|
---|
1101 |
|
---|
1102 | /* SQL_UNION masks */
|
---|
1103 |
|
---|
1104 | Const SQL_U_UNION = &H00000001
|
---|
1105 | Const SQL_U_UNION_ALL = &H00000002
|
---|
1106 |
|
---|
1107 | /* SQL_BOOKMARK_PERSISTENCE values */
|
---|
1108 |
|
---|
1109 | Const SQL_BP_CLOSE = &H00000001
|
---|
1110 | Const SQL_BP_DELETE = &H00000002
|
---|
1111 | Const SQL_BP_DROP = &H00000004
|
---|
1112 | Const SQL_BP_TRANSACTION = &H00000008
|
---|
1113 | Const SQL_BP_UPDATE = &H00000010
|
---|
1114 | Const SQL_BP_OTHER_HSTMT = &H00000020
|
---|
1115 | Const SQL_BP_SCROLL = &H00000040
|
---|
1116 |
|
---|
1117 | /* SQL_STATIC_SENSITIVITY values */
|
---|
1118 |
|
---|
1119 | Const SQL_SS_ADDITIONS = &H00000001
|
---|
1120 | Const SQL_SS_DELETIONS = &H00000002
|
---|
1121 | Const SQL_SS_UPDATES = &H00000004
|
---|
1122 |
|
---|
1123 | /* SQL_VIEW values */
|
---|
1124 | Const SQL_CV_CREATE_VIEW = &H00000001
|
---|
1125 | Const SQL_CV_CHECK_OPTION = &H00000002
|
---|
1126 | Const SQL_CV_CASCADED = &H00000004
|
---|
1127 | Const SQL_CV_LOCAL = &H00000008
|
---|
1128 |
|
---|
1129 | /* SQL_LOCK_TYPES masks */
|
---|
1130 |
|
---|
1131 | Const SQL_LCK_NO_CHANGE = &H00000001
|
---|
1132 | Const SQL_LCK_EXCLUSIVE = &H00000002
|
---|
1133 | Const SQL_LCK_UNLOCK = &H00000004
|
---|
1134 |
|
---|
1135 | /* SQL_POS_OPERATIONS masks */
|
---|
1136 |
|
---|
1137 | Const SQL_POS_POSITION = &H00000001
|
---|
1138 | Const SQL_POS_REFRESH = &H00000002
|
---|
1139 | Const SQL_POS_UPDATE = &H00000004
|
---|
1140 | Const SQL_POS_DELETE = &H00000008
|
---|
1141 | Const SQL_POS_ADD = &H00000010
|
---|
1142 |
|
---|
1143 | /* SQL_QUALIFIER_LOCATION values */
|
---|
1144 |
|
---|
1145 | Const SQL_QL_START = &H0001
|
---|
1146 | Const SQL_QL_END = &H0002
|
---|
1147 |
|
---|
1148 | /* Here start return values for ODBC 3.0 SQLGetInfo */
|
---|
1149 |
|
---|
1150 | /* SQL_AGGREGATE_FUNCTIONS bitmasks */
|
---|
1151 | Const SQL_AF_AVG = &H00000001
|
---|
1152 | Const SQL_AF_COUNT = &H00000002
|
---|
1153 | Const SQL_AF_MAX = &H00000004
|
---|
1154 | Const SQL_AF_MIN = &H00000008
|
---|
1155 | Const SQL_AF_SUM = &H00000010
|
---|
1156 | Const SQL_AF_DISTINCT = &H00000020
|
---|
1157 | Const SQL_AF_ALL = &H00000040
|
---|
1158 |
|
---|
1159 | /* SQL_SQL_CONFORMANCE bit masks */
|
---|
1160 | Const SQL_SC_SQL92_ENTRY = &H00000001
|
---|
1161 | Const SQL_SC_FIPS127_2_TRANSITIONAL = &H00000002
|
---|
1162 | Const SQL_SC_SQL92_INTERMEDIATE = &H00000004
|
---|
1163 | Const SQL_SC_SQL92_FULL = &H00000008
|
---|
1164 |
|
---|
1165 | /* SQL_DATETIME_LITERALS masks */
|
---|
1166 | Const SQL_DL_SQL92_DATE = &H00000001
|
---|
1167 | Const SQL_DL_SQL92_TIME = &H00000002
|
---|
1168 | Const SQL_DL_SQL92_TIMESTAMP = &H00000004
|
---|
1169 | Const SQL_DL_SQL92_INTERVAL_YEAR = &H00000008
|
---|
1170 | Const SQL_DL_SQL92_INTERVAL_MONTH = &H00000010
|
---|
1171 | Const SQL_DL_SQL92_INTERVAL_DAY = &H00000020
|
---|
1172 | Const SQL_DL_SQL92_INTERVAL_HOUR = &H00000040
|
---|
1173 | Const SQL_DL_SQL92_INTERVAL_MINUTE = &H00000080
|
---|
1174 | Const SQL_DL_SQL92_INTERVAL_SECOND = &H00000100
|
---|
1175 | Const SQL_DL_SQL92_INTERVAL_YEAR_TO_MONTH = &H00000200
|
---|
1176 | Const SQL_DL_SQL92_INTERVAL_DAY_TO_HOUR = &H00000400
|
---|
1177 | Const SQL_DL_SQL92_INTERVAL_DAY_TO_MINUTE = &H00000800
|
---|
1178 | Const SQL_DL_SQL92_INTERVAL_DAY_TO_SECOND = &H00001000
|
---|
1179 | Const SQL_DL_SQL92_INTERVAL_HOUR_TO_MINUTE = &H00002000
|
---|
1180 | Const SQL_DL_SQL92_INTERVAL_HOUR_TO_SECOND = &H00004000
|
---|
1181 | Const SQL_DL_SQL92_INTERVAL_MINUTE_TO_SECOND = &H00008000
|
---|
1182 |
|
---|
1183 | /* SQL_CATALOG_LOCATION values */
|
---|
1184 | Const SQL_CL_START = SQL_QL_START
|
---|
1185 | Const SQL_CL_END = SQL_QL_END
|
---|
1186 |
|
---|
1187 | /* values for SQL_BATCH_ROW_COUNT */
|
---|
1188 | Const SQL_BRC_PROCEDURES = &H0000001
|
---|
1189 | Const SQL_BRC_EXPLICIT = &H0000002
|
---|
1190 | Const SQL_BRC_ROLLED_UP = &H0000004
|
---|
1191 |
|
---|
1192 | /* bitmasks for SQL_BATCH_SUPPORT */
|
---|
1193 | Const SQL_BS_SELECT_EXPLICIT = &H00000001
|
---|
1194 | Const SQL_BS_ROW_COUNT_EXPLICIT = &H00000002
|
---|
1195 | Const SQL_BS_SELECT_PROC = &H00000004
|
---|
1196 | Const SQL_BS_ROW_COUNT_PROC = &H00000008
|
---|
1197 |
|
---|
1198 | /* Values for SQL_PARAM_ARRAY_ROW_COUNTS getinfo */
|
---|
1199 | Const SQL_PARC_BATCH = 1
|
---|
1200 | Const SQL_PARC_NO_BATCH = 2
|
---|
1201 |
|
---|
1202 | /* values for SQL_PARAM_ARRAY_SELECTS */
|
---|
1203 | Const SQL_PAS_BATCH = 1
|
---|
1204 | Const SQL_PAS_NO_BATCH = 2
|
---|
1205 | Const SQL_PAS_NO_SELECT = 3
|
---|
1206 |
|
---|
1207 | /* Bitmasks for SQL_INDEX_KEYWORDS */
|
---|
1208 | Const SQL_IK_NONE = &H00000000
|
---|
1209 | Const SQL_IK_ASC = &H00000001
|
---|
1210 | Const SQL_IK_DESC = &H00000002
|
---|
1211 | Const SQL_IK_ALL = (SQL_IK_ASC or SQL_IK_DESC)
|
---|
1212 |
|
---|
1213 | /* Bitmasks for SQL_INFO_SCHEMA_VIEWS */
|
---|
1214 |
|
---|
1215 | Const SQL_ISV_ASSERTIONS = &H00000001
|
---|
1216 | Const SQL_ISV_CHARACTER_SETS = &H00000002
|
---|
1217 | Const SQL_ISV_CHECK_CONSTRAINTS = &H00000004
|
---|
1218 | Const SQL_ISV_COLLATIONS = &H00000008
|
---|
1219 | Const SQL_ISV_COLUMN_DOMAIN_USAGE = &H00000010
|
---|
1220 | Const SQL_ISV_COLUMN_PRIVILEGES = &H00000020
|
---|
1221 | Const SQL_ISV_COLUMNS = &H00000040
|
---|
1222 | Const SQL_ISV_CONSTRAINT_COLUMN_USAGE = &H00000080
|
---|
1223 | Const SQL_ISV_CONSTRAINT_TABLE_USAGE = &H00000100
|
---|
1224 | Const SQL_ISV_DOMAIN_CONSTRAINTS = &H00000200
|
---|
1225 | Const SQL_ISV_DOMAINS = &H00000400
|
---|
1226 | Const SQL_ISV_KEY_COLUMN_USAGE = &H00000800
|
---|
1227 | Const SQL_ISV_REFERENTIAL_CONSTRAINTS = &H00001000
|
---|
1228 | Const SQL_ISV_SCHEMATA = &H00002000
|
---|
1229 | Const SQL_ISV_SQL_LANGUAGES = &H00004000
|
---|
1230 | Const SQL_ISV_TABLE_CONSTRAINTS = &H00008000
|
---|
1231 | Const SQL_ISV_TABLE_PRIVILEGES = &H00010000
|
---|
1232 | Const SQL_ISV_TABLES = &H00020000
|
---|
1233 | Const SQL_ISV_TRANSLATIONS = &H00040000
|
---|
1234 | Const SQL_ISV_USAGE_PRIVILEGES = &H00080000
|
---|
1235 | Const SQL_ISV_VIEW_COLUMN_USAGE = &H00100000
|
---|
1236 | Const SQL_ISV_VIEW_TABLE_USAGE = &H00200000
|
---|
1237 | Const SQL_ISV_VIEWS = &H00400000
|
---|
1238 |
|
---|
1239 |
|
---|
1240 | /* Bitmasks for SQL_ALTER_DOMAIN */
|
---|
1241 | Const SQL_AD_CONSTRAINT_NAME_DEFINITION = &H00000001
|
---|
1242 | Const SQL_AD_ADD_DOMAIN_CONSTRAINT = &H00000002
|
---|
1243 | Const SQL_AD_DROP_DOMAIN_CONSTRAINT = &H00000004
|
---|
1244 | Const SQL_AD_ADD_DOMAIN_DEFAULT = &H00000008
|
---|
1245 | Const SQL_AD_DROP_DOMAIN_DEFAULT = &H00000010
|
---|
1246 | Const SQL_AD_ADD_CONSTRAINT_INITIALLY_DEFERRED = &H00000020
|
---|
1247 | Const SQL_AD_ADD_CONSTRAINT_INITIALLY_IMMEDIATE = &H00000040
|
---|
1248 | Const SQL_AD_ADD_CONSTRAINT_DEFERRABLE = &H00000080
|
---|
1249 | Const SQL_AD_ADD_CONSTRAINT_NON_DEFERRABLE = &H00000100
|
---|
1250 |
|
---|
1251 |
|
---|
1252 | /* SQL_CREATE_SCHEMA bitmasks */
|
---|
1253 | Const SQL_CS_CREATE_SCHEMA = &H00000001
|
---|
1254 | Const SQL_CS_AUTHORIZATION = &H00000002
|
---|
1255 | Const SQL_CS_DEFAULT_CHARACTER_SET = &H00000004
|
---|
1256 |
|
---|
1257 | /* SQL_CREATE_TRANSLATION bitmasks */
|
---|
1258 | Const SQL_CTR_CREATE_TRANSLATION = &H00000001
|
---|
1259 |
|
---|
1260 | /* SQL_CREATE_ASSERTION bitmasks */
|
---|
1261 | Const SQL_CA_CREATE_ASSERTION = &H00000001
|
---|
1262 | Const SQL_CA_CONSTRAINT_INITIALLY_DEFERRED = &H00000010
|
---|
1263 | Const SQL_CA_CONSTRAINT_INITIALLY_IMMEDIATE = &H00000020
|
---|
1264 | Const SQL_CA_CONSTRAINT_DEFERRABLE = &H00000040
|
---|
1265 | Const SQL_CA_CONSTRAINT_NON_DEFERRABLE = &H00000080
|
---|
1266 |
|
---|
1267 | /* SQL_CREATE_CHARACTER_SET bitmasks */
|
---|
1268 | Const SQL_CCS_CREATE_CHARACTER_SET = &H00000001
|
---|
1269 | Const SQL_CCS_COLLATE_CLAUSE = &H00000002
|
---|
1270 | Const SQL_CCS_LIMITED_COLLATION = &H00000004
|
---|
1271 |
|
---|
1272 | /* SQL_CREATE_COLLATION bitmasks */
|
---|
1273 | Const SQL_CCOL_CREATE_COLLATION = &H00000001
|
---|
1274 |
|
---|
1275 | /* SQL_CREATE_DOMAIN bitmasks */
|
---|
1276 | Const SQL_CDO_CREATE_DOMAIN = &H00000001
|
---|
1277 | Const SQL_CDO_DEFAULT = &H00000002
|
---|
1278 | Const SQL_CDO_CONSTRAINT = &H00000004
|
---|
1279 | Const SQL_CDO_COLLATION = &H00000008
|
---|
1280 | Const SQL_CDO_CONSTRAINT_NAME_DEFINITION = &H00000010
|
---|
1281 | Const SQL_CDO_CONSTRAINT_INITIALLY_DEFERRED = &H00000020
|
---|
1282 | Const SQL_CDO_CONSTRAINT_INITIALLY_IMMEDIATE = &H00000040
|
---|
1283 | Const SQL_CDO_CONSTRAINT_DEFERRABLE = &H00000080
|
---|
1284 | Const SQL_CDO_CONSTRAINT_NON_DEFERRABLE = &H00000100
|
---|
1285 |
|
---|
1286 | /* SQL_CREATE_TABLE bitmasks */
|
---|
1287 | Const SQL_CT_CREATE_TABLE = &H00000001
|
---|
1288 | Const SQL_CT_COMMIT_PRESERVE = &H00000002
|
---|
1289 | Const SQL_CT_COMMIT_DELETE = &H00000004
|
---|
1290 | Const SQL_CT_GLOBAL_TEMPORARY = &H00000008
|
---|
1291 | Const SQL_CT_LOCAL_TEMPORARY = &H00000010
|
---|
1292 | Const SQL_CT_CONSTRAINT_INITIALLY_DEFERRED = &H00000020
|
---|
1293 | Const SQL_CT_CONSTRAINT_INITIALLY_IMMEDIATE = &H00000040
|
---|
1294 | Const SQL_CT_CONSTRAINT_DEFERRABLE = &H00000080
|
---|
1295 | Const SQL_CT_CONSTRAINT_NON_DEFERRABLE = &H00000100
|
---|
1296 | Const SQL_CT_COLUMN_CONSTRAINT = &H00000200
|
---|
1297 | Const SQL_CT_COLUMN_DEFAULT = &H00000400
|
---|
1298 | Const SQL_CT_COLUMN_COLLATION = &H00000800
|
---|
1299 | Const SQL_CT_TABLE_CONSTRAINT = &H00001000
|
---|
1300 | Const SQL_CT_CONSTRAINT_NAME_DEFINITION = &H00002000
|
---|
1301 |
|
---|
1302 | /* SQL_DDL_INDEX bitmasks */
|
---|
1303 | Const SQL_DI_CREATE_INDEX = &H00000001
|
---|
1304 | Const SQL_DI_DROP_INDEX = &H00000002
|
---|
1305 |
|
---|
1306 | /* SQL_DROP_COLLATION bitmasks */
|
---|
1307 | Const SQL_DC_DROP_COLLATION = &H00000001
|
---|
1308 |
|
---|
1309 | /* SQL_DROP_DOMAIN bitmasks */
|
---|
1310 | Const SQL_DD_DROP_DOMAIN = &H00000001
|
---|
1311 | Const SQL_DD_RESTRICT = &H00000002
|
---|
1312 | Const SQL_DD_CASCADE = &H00000004
|
---|
1313 |
|
---|
1314 | /* SQL_DROP_SCHEMA bitmasks */
|
---|
1315 | Const SQL_DS_DROP_SCHEMA = &H00000001
|
---|
1316 | Const SQL_DS_RESTRICT = &H00000002
|
---|
1317 | Const SQL_DS_CASCADE = &H00000004
|
---|
1318 |
|
---|
1319 | /* SQL_DROP_CHARACTER_SET bitmasks */
|
---|
1320 | Const SQL_DCS_DROP_CHARACTER_SET = &H00000001
|
---|
1321 |
|
---|
1322 | /* SQL_DROP_ASSERTION bitmasks */
|
---|
1323 | Const SQL_DA_DROP_ASSERTION = &H00000001
|
---|
1324 |
|
---|
1325 | /* SQL_DROP_TABLE bitmasks */
|
---|
1326 | Const SQL_DT_DROP_TABLE = &H00000001
|
---|
1327 | Const SQL_DT_RESTRICT = &H00000002
|
---|
1328 | Const SQL_DT_CASCADE = &H00000004
|
---|
1329 |
|
---|
1330 | /* SQL_DROP_TRANSLATION bitmasks */
|
---|
1331 | Const SQL_DTR_DROP_TRANSLATION = &H00000001
|
---|
1332 |
|
---|
1333 | /* SQL_DROP_VIEW bitmasks */
|
---|
1334 | Const SQL_DV_DROP_VIEW = &H00000001
|
---|
1335 | Const SQL_DV_RESTRICT = &H00000002
|
---|
1336 | Const SQL_DV_CASCADE = &H00000004
|
---|
1337 |
|
---|
1338 | /* SQL_INSERT_STATEMENT bitmasks */
|
---|
1339 | Const SQL_IS_INSERT_LITERALS = &H00000001
|
---|
1340 | Const SQL_IS_INSERT_SEARCHED = &H00000002
|
---|
1341 | Const SQL_IS_SELECT_INTO = &H00000004
|
---|
1342 |
|
---|
1343 | /* SQL_ODBC_INTERFACE_CONFORMANCE values */
|
---|
1344 | Const SQL_OIC_CORE = 1
|
---|
1345 | Const SQL_OIC_LEVEL1 = 2
|
---|
1346 | Const SQL_OIC_LEVEL2 = 3
|
---|
1347 |
|
---|
1348 | /* SQL_SQL92_FOREIGN_KEY_DELETE_RULE bitmasks */
|
---|
1349 | Const SQL_SFKD_CASCADE = &H00000001
|
---|
1350 | Const SQL_SFKD_NO_ACTION = &H00000002
|
---|
1351 | Const SQL_SFKD_SET_DEFAULT = &H00000004
|
---|
1352 | Const SQL_SFKD_SET_NULL = &H00000008
|
---|
1353 |
|
---|
1354 | /* SQL_SQL92_FOREIGN_KEY_UPDATE_RULE bitmasks */
|
---|
1355 | Const SQL_SFKU_CASCADE = &H00000001
|
---|
1356 | Const SQL_SFKU_NO_ACTION = &H00000002
|
---|
1357 | Const SQL_SFKU_SET_DEFAULT = &H00000004
|
---|
1358 | Const SQL_SFKU_SET_NULL = &H00000008
|
---|
1359 |
|
---|
1360 | /* SQL_SQL92_GRANT bitmasks */
|
---|
1361 | Const SQL_SG_USAGE_ON_DOMAIN = &H00000001
|
---|
1362 | Const SQL_SG_USAGE_ON_CHARACTER_SET = &H00000002
|
---|
1363 | Const SQL_SG_USAGE_ON_COLLATION = &H00000004
|
---|
1364 | Const SQL_SG_USAGE_ON_TRANSLATION = &H00000008
|
---|
1365 | Const SQL_SG_WITH_GRANT_OPTION = &H00000010
|
---|
1366 | Const SQL_SG_DELETE_TABLE = &H00000020
|
---|
1367 | Const SQL_SG_INSERT_TABLE = &H00000040
|
---|
1368 | Const SQL_SG_INSERT_COLUMN = &H00000080
|
---|
1369 | Const SQL_SG_REFERENCES_TABLE = &H00000100
|
---|
1370 | Const SQL_SG_REFERENCES_COLUMN = &H00000200
|
---|
1371 | Const SQL_SG_SELECT_TABLE = &H00000400
|
---|
1372 | Const SQL_SG_UPDATE_TABLE = &H00000800
|
---|
1373 | Const SQL_SG_UPDATE_COLUMN = &H00001000
|
---|
1374 |
|
---|
1375 | /* SQL_SQL92_PREDICATES bitmasks */
|
---|
1376 | Const SQL_SP_EXISTS = &H00000001
|
---|
1377 | Const SQL_SP_ISNOTNULL = &H00000002
|
---|
1378 | Const SQL_SP_ISNULL = &H00000004
|
---|
1379 | Const SQL_SP_MATCH_FULL = &H00000008
|
---|
1380 | Const SQL_SP_MATCH_PARTIAL = &H00000010
|
---|
1381 | Const SQL_SP_MATCH_UNIQUE_FULL = &H00000020
|
---|
1382 | Const SQL_SP_MATCH_UNIQUE_PARTIAL = &H00000040
|
---|
1383 | Const SQL_SP_OVERLAPS = &H00000080
|
---|
1384 | Const SQL_SP_UNIQUE = &H00000100
|
---|
1385 | Const SQL_SP_LIKE = &H00000200
|
---|
1386 | Const SQL_SP_IN = &H00000400
|
---|
1387 | Const SQL_SP_BETWEEN = &H00000800
|
---|
1388 | Const SQL_SP_COMPARISON = &H00001000
|
---|
1389 | Const SQL_SP_QUANTIFIED_COMPARISON = &H00002000
|
---|
1390 |
|
---|
1391 | /* SQL_SQL92_RELATIONAL_JOIN_OPERATORS bitmasks */
|
---|
1392 | Const SQL_SRJO_CORRESPONDING_CLAUSE = &H00000001
|
---|
1393 | Const SQL_SRJO_CROSS_JOIN = &H00000002
|
---|
1394 | Const SQL_SRJO_EXCEPT_JOIN = &H00000004
|
---|
1395 | Const SQL_SRJO_FULL_OUTER_JOIN = &H00000008
|
---|
1396 | Const SQL_SRJO_INNER_JOIN = &H00000010
|
---|
1397 | Const SQL_SRJO_INTERSECT_JOIN = &H00000020
|
---|
1398 | Const SQL_SRJO_LEFT_OUTER_JOIN = &H00000040
|
---|
1399 | Const SQL_SRJO_NATURAL_JOIN = &H00000080
|
---|
1400 | Const SQL_SRJO_RIGHT_OUTER_JOIN = &H00000100
|
---|
1401 | Const SQL_SRJO_UNION_JOIN = &H00000200
|
---|
1402 |
|
---|
1403 | /* SQL_SQL92_REVOKE bitmasks */
|
---|
1404 | Const SQL_SR_USAGE_ON_DOMAIN = &H00000001
|
---|
1405 | Const SQL_SR_USAGE_ON_CHARACTER_SET = &H00000002
|
---|
1406 | Const SQL_SR_USAGE_ON_COLLATION = &H00000004
|
---|
1407 | Const SQL_SR_USAGE_ON_TRANSLATION = &H00000008
|
---|
1408 | Const SQL_SR_GRANT_OPTION_FOR = &H00000010
|
---|
1409 | Const SQL_SR_CASCADE = &H00000020
|
---|
1410 | Const SQL_SR_RESTRICT = &H00000040
|
---|
1411 | Const SQL_SR_DELETE_TABLE = &H00000080
|
---|
1412 | Const SQL_SR_INSERT_TABLE = &H00000100
|
---|
1413 | Const SQL_SR_INSERT_COLUMN = &H00000200
|
---|
1414 | Const SQL_SR_REFERENCES_TABLE = &H00000400
|
---|
1415 | Const SQL_SR_REFERENCES_COLUMN = &H00000800
|
---|
1416 | Const SQL_SR_SELECT_TABLE = &H00001000
|
---|
1417 | Const SQL_SR_UPDATE_TABLE = &H00002000
|
---|
1418 | Const SQL_SR_UPDATE_COLUMN = &H00004000
|
---|
1419 |
|
---|
1420 | /* SQL_SQL92_ROW_VALUE_CONSTRUCTOR bitmasks */
|
---|
1421 | Const SQL_SRVC_VALUE_EXPRESSION = &H00000001
|
---|
1422 | Const SQL_SRVC_NULL = &H00000002
|
---|
1423 | Const SQL_SRVC_DEFAULT = &H00000004
|
---|
1424 | Const SQL_SRVC_ROW_SUBQUERY = &H00000008
|
---|
1425 |
|
---|
1426 | /* SQL_SQL92_VALUE_EXPRESSIONS bitmasks */
|
---|
1427 | Const SQL_SVE_CASE = &H00000001
|
---|
1428 | Const SQL_SVE_CAST = &H00000002
|
---|
1429 | Const SQL_SVE_COALESCE = &H00000004
|
---|
1430 | Const SQL_SVE_NULLIF = &H00000008
|
---|
1431 |
|
---|
1432 | /* SQL_STANDARD_CLI_CONFORMANCE bitmasks */
|
---|
1433 | Const SQL_SCC_XOPEN_CLI_VERSION1 = &H00000001
|
---|
1434 | Const SQL_SCC_ISO92_CLI = &H00000002
|
---|
1435 |
|
---|
1436 | /* SQL_UNION_STATEMENT bitmasks */
|
---|
1437 | Const SQL_US_UNION = SQL_U_UNION
|
---|
1438 | Const SQL_US_UNION_ALL = SQL_U_UNION_ALL
|
---|
1439 |
|
---|
1440 |
|
---|
1441 |
|
---|
1442 | /* SQL_DTC_TRANSITION_COST bitmasks */
|
---|
1443 | Const SQL_DTC_ENLIST_EXPENSIVE = &H00000001
|
---|
1444 | Const SQL_DTC_UNENLIST_EXPENSIVE = &H00000002
|
---|
1445 |
|
---|
1446 | /* additional SQLDataSources fetch directions */
|
---|
1447 | Const SQL_FETCH_FIRST_USER = 31
|
---|
1448 | Const SQL_FETCH_FIRST_SYSTEM = 32
|
---|
1449 |
|
---|
1450 |
|
---|
1451 |
|
---|
1452 | /* Defines for SQLSetPos */
|
---|
1453 | Const SQL_ENTIRE_ROWSET = 0
|
---|
1454 |
|
---|
1455 | /* Operations in SQLSetPos */
|
---|
1456 | Const SQL_POSITION = 0 /* 1.0 FALSE */
|
---|
1457 | Const SQL_REFRESH = 1 /* 1.0 TRUE */
|
---|
1458 | Const SQL_UPDATE = 2
|
---|
1459 | Const SQL_DELETE = 3
|
---|
1460 |
|
---|
1461 | /* Operations in SQLBulkOperations */
|
---|
1462 | Const SQL_ADD = 4
|
---|
1463 | Const SQL_SETPOS_MAX_OPTION_VALUE = SQL_ADD
|
---|
1464 | Const SQL_UPDATE_BY_BOOKMARK = 5
|
---|
1465 | Const SQL_DELETE_BY_BOOKMARK = 6
|
---|
1466 | Const SQL_FETCH_BY_BOOKMARK = 7
|
---|
1467 |
|
---|
1468 |
|
---|
1469 | /* Lock options in SQLSetPos */
|
---|
1470 | Const SQL_LOCK_NO_CHANGE = 0 /* 1.0 FALSE */
|
---|
1471 | Const SQL_LOCK_EXCLUSIVE = 1 /* 1.0 TRUE */
|
---|
1472 | Const SQL_LOCK_UNLOCK = 2
|
---|
1473 |
|
---|
1474 | Const SQL_SETPOS_MAX_LOCK_VALUE = SQL_LOCK_UNLOCK
|
---|
1475 |
|
---|
1476 | /* Macros for SQLSetPos */
|
---|
1477 | #define SQL_POSITION_TO(hstmt,irow) SQLSetPos(hstmt,irow,SQL_POSITION,SQL_LOCK_NO_CHANGE)
|
---|
1478 | #define SQL_LOCK_RECORD(hstmt,irow,fLock) SQLSetPos(hstmt,irow,SQL_POSITION,fLock)
|
---|
1479 | #define SQL_REFRESH_RECORD(hstmt,irow,fLock) SQLSetPos(hstmt,irow,SQL_REFRESH,fLock)
|
---|
1480 | #define SQL_UPDATE_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_UPDATE,SQL_LOCK_NO_CHANGE)
|
---|
1481 | #define SQL_DELETE_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_DELETE,SQL_LOCK_NO_CHANGE)
|
---|
1482 | #define SQL_ADD_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_ADD,SQL_LOCK_NO_CHANGE)
|
---|
1483 |
|
---|
1484 | /* Column types and scopes in SQLSpecialColumns. */
|
---|
1485 | Const SQL_BEST_ROWID = 1
|
---|
1486 | Const SQL_ROWVER = 2
|
---|
1487 |
|
---|
1488 | /* Defines for SQLSpecialColumns (returned in the result set)
|
---|
1489 | SQL_PC_UNKNOWN and SQL_PC_PSEUDO are defined in sql.h */
|
---|
1490 | Const SQL_PC_NOT_PSEUDO = 1
|
---|
1491 |
|
---|
1492 | /* Defines for SQLStatistics */
|
---|
1493 | Const SQL_QUICK = 0
|
---|
1494 | Const SQL_ENSURE = 1
|
---|
1495 |
|
---|
1496 | /* Defines for SQLStatistics (returned in the result set)
|
---|
1497 | SQL_INDEX_CLUSTERED, SQL_INDEX_HASHED, and SQL_INDEX_OTHER are
|
---|
1498 | defined in sql.h */
|
---|
1499 | Const SQL_TABLE_STAT = 0
|
---|
1500 |
|
---|
1501 |
|
---|
1502 | /* Defines for SQLTables */
|
---|
1503 | Const SQL_ALL_CATALOGS = "%"
|
---|
1504 | Const SQL_ALL_SCHEMAS = "%"
|
---|
1505 | Const SQL_ALL_TABLE_TYPES = "%"
|
---|
1506 |
|
---|
1507 |
|
---|
1508 | /* Options for SQLDriverConnect */
|
---|
1509 | Const SQL_DRIVER_NOPROMPT = 0
|
---|
1510 | Const SQL_DRIVER_COMPLETE = 1
|
---|
1511 | Const SQL_DRIVER_PROMPT = 2
|
---|
1512 | Const SQL_DRIVER_COMPLETE_REQUIRED = 3
|
---|
1513 |
|
---|
1514 |
|
---|
1515 | Declare Function SQLDriverConnect Lib "odbc32.dll" (
|
---|
1516 | hdbc As SQLHDBC,
|
---|
1517 | hwnd As HWND,
|
---|
1518 | szConnStrIn As *SQLCHAR,
|
---|
1519 | cbConnStrIn As SQLSMALLINT,
|
---|
1520 | szConnStrOut As *SQLCHAR,
|
---|
1521 | cbConnStrOutMax As SQLSMALLINT,
|
---|
1522 | ByRef pcbConnStrOut As SQLSMALLINT,
|
---|
1523 | fDriverCompletion As SQLUSMALLINT) As SQLRETURN
|
---|
1524 |
|
---|
1525 |
|
---|
1526 | /* Level 2 Functions */
|
---|
1527 |
|
---|
1528 | /* SQLExtendedFetch "fFetchType" values */
|
---|
1529 | Const SQL_FETCH_BOOKMARK = 8
|
---|
1530 |
|
---|
1531 | /* SQLExtendedFetch "rgfRowStatus" element values */
|
---|
1532 | Const SQL_ROW_SUCCESS = 0
|
---|
1533 | Const SQL_ROW_DELETED = 1
|
---|
1534 | Const SQL_ROW_UPDATED = 2
|
---|
1535 | Const SQL_ROW_NOROW = 3
|
---|
1536 | Const SQL_ROW_ADDED = 4
|
---|
1537 | Const SQL_ROW_ERROR = 5
|
---|
1538 | Const SQL_ROW_SUCCESS_WITH_INFO = 6
|
---|
1539 | Const SQL_ROW_PROCEED = 0
|
---|
1540 | Const SQL_ROW_IGNORE = 1
|
---|
1541 |
|
---|
1542 | /* value for SQL_DESC_ARRAY_STATUS_PTR */
|
---|
1543 | Const SQL_PARAM_SUCCESS = 0
|
---|
1544 | Const SQL_PARAM_SUCCESS_WITH_INFO = 6
|
---|
1545 | Const SQL_PARAM_ERROR = 5
|
---|
1546 | Const SQL_PARAM_UNUSED = 7
|
---|
1547 | Const SQL_PARAM_DIAG_UNAVAILABLE = 1
|
---|
1548 |
|
---|
1549 | Const SQL_PARAM_PROCEED = 0
|
---|
1550 | Const SQL_PARAM_IGNORE = 1
|
---|
1551 |
|
---|
1552 |
|
---|
1553 | /* Defines for SQLForeignKeys (UPDATE_RULE and DELETE_RULE) */
|
---|
1554 | Const SQL_CASCADE = 0
|
---|
1555 | Const SQL_RESTRICT = 1
|
---|
1556 | Const SQL_SET_NULL = 2
|
---|
1557 | Const SQL_NO_ACTION = 3
|
---|
1558 | Const SQL_SET_DEFAULT = 4
|
---|
1559 |
|
---|
1560 | /* Note that the following are in a different column of SQLForeignKeys than */
|
---|
1561 | /* the previous #defines. These are for DEFERRABILITY. */
|
---|
1562 |
|
---|
1563 | Const SQL_INITIALLY_DEFERRED = 5
|
---|
1564 | Const SQL_INITIALLY_IMMEDIATE = 6
|
---|
1565 | Const SQL_NOT_DEFERRABLE = 7
|
---|
1566 |
|
---|
1567 |
|
---|
1568 | /* Defines for SQLProcedures (returned in the result set) */
|
---|
1569 | Const SQL_PT_UNKNOWN = 0
|
---|
1570 | Const SQL_PT_PROCEDURE = 1
|
---|
1571 | Const SQL_PT_FUNCTION = 2
|
---|
1572 |
|
---|
1573 |
|
---|
1574 | Declare Function SQLBrowseConnect Lib "odbc32.dll" (
|
---|
1575 | hdbc As SQLHDBC,
|
---|
1576 | szConnStrIn As *SQLCHAR,
|
---|
1577 | cbConnStrIn As SQLSMALLINT,
|
---|
1578 | szConnStrOut As *SQLCHAR,
|
---|
1579 | cbConnStrOutMax As SQLSMALLINT,
|
---|
1580 | ByRef pcbConnStrOut As SQLSMALLINT) As SQLRETURN
|
---|
1581 |
|
---|
1582 | Declare Function SQLBulkOperations Lib "odbc32.dll" (
|
---|
1583 | StatementHandle As SQLHSTMT,
|
---|
1584 | Operation As SQLSMALLINT) As SQLRETURN
|
---|
1585 |
|
---|
1586 |
|
---|
1587 | Declare Function SQLColAttributes Lib "odbc32.dll" (
|
---|
1588 | hstmt As SQLHSTMT,
|
---|
1589 | icol As SQLUSMALLINT,
|
---|
1590 | fDescType As SQLUSMALLINT,
|
---|
1591 | rgbDesc As SQLPOINTER,
|
---|
1592 | cbDescMax As SQLSMALLINT,
|
---|
1593 | ByRef cbDesc As SQLSMALLINT,
|
---|
1594 | ByRef fDesc As SQLLEN) As SQLRETURN
|
---|
1595 |
|
---|
1596 | Declare Function SQLColumnPrivileges Lib "odbc32.dll" (
|
---|
1597 | hstmt As SQLHSTMT,
|
---|
1598 | szCatalogName As *SQLCHAR,
|
---|
1599 | cbCatalogName As SQLSMALLINT,
|
---|
1600 | szSchemaName As *SQLCHAR,
|
---|
1601 | cbSchemaName As SQLSMALLINT,
|
---|
1602 | szTableName As *SQLCHAR,
|
---|
1603 | cbTableName As SQLSMALLINT,
|
---|
1604 | szColumnName As *SQLCHAR,
|
---|
1605 | cbColumnName As SQLSMALLINT) As SQLRETURN
|
---|
1606 |
|
---|
1607 | Declare Function SQLDescribeParam Lib "odbc32.dll" (
|
---|
1608 | hstmt As SQLHSTMT,
|
---|
1609 | ipar As SQLUSMALLINT,
|
---|
1610 | pfSqlType As *SQLSMALLINT,
|
---|
1611 | pcbParamDef As *SQLULEN,
|
---|
1612 | pibScale As *SQLSMALLINT,
|
---|
1613 | pfNullable As *SQLSMALLINT) As SQLRETURN
|
---|
1614 |
|
---|
1615 | Declare Function SQLExtendedFetch Lib "odbc32.dll" (
|
---|
1616 | hstmt As SQLHSTMT,
|
---|
1617 | fFetchType As SQLUSMALLINT,
|
---|
1618 | irow As SQLLEN,
|
---|
1619 | pcrow As *SQLULEN,
|
---|
1620 | rgfRowStatus As *SQLUSMALLINT) As SQLRETURN
|
---|
1621 |
|
---|
1622 | Declare Function SQLForeignKeys Lib "odbc32.dll" (
|
---|
1623 | hstmt As SQLHSTMT,
|
---|
1624 | szPkCatalogName As *SQLCHAR,
|
---|
1625 | cbPkCatalogName As SQLSMALLINT,
|
---|
1626 | szPkSchemaName As *SQLCHAR,
|
---|
1627 | cbPkSchemaName As SQLSMALLINT,
|
---|
1628 | szPkTableName As *SQLCHAR,
|
---|
1629 | cbPkTableName As SQLSMALLINT,
|
---|
1630 | szFkCatalogName As *SQLCHAR,
|
---|
1631 | cbFkCatalogName As SQLSMALLINT,
|
---|
1632 | szFkSchemaName As *SQLCHAR,
|
---|
1633 | cbFkSchemaName As SQLSMALLINT,
|
---|
1634 | szFkTableName As *SQLCHAR,
|
---|
1635 | cbFkTableName As SQLSMALLINT) As SQLRETURN
|
---|
1636 |
|
---|
1637 | Declare Function SQLMoreResults Lib "odbc32.dll" (
|
---|
1638 | hstmt As SQLHSTMT) As SQLRETURN
|
---|
1639 |
|
---|
1640 | Declare Function SQLNativeSql Lib "odbc32.dll" (
|
---|
1641 | hdbc As SQLHDBC,
|
---|
1642 | szSqlStrIn As *SQLCHAR,
|
---|
1643 | cbSqlStrIn As SQLINTEGER,
|
---|
1644 | szSqlStr As *SQLCHAR,
|
---|
1645 | cbSqlStrMax As SQLINTEGER,
|
---|
1646 | pcbSqlStr As *SQLINTEGER) As SQLRETURN
|
---|
1647 |
|
---|
1648 | Declare Function SQLNumParams Lib "odbc32.dll" (
|
---|
1649 | hstmt As SQLHSTMT,
|
---|
1650 | pcpar As *SQLSMALLINT) As SQLRETURN
|
---|
1651 |
|
---|
1652 | Declare Function SQLParamOptions Lib "odbc32.dll" (
|
---|
1653 | hstmt As SQLHSTMT,
|
---|
1654 | crow As SQLULEN,
|
---|
1655 | pirow As *SQLULEN) As SQLRETURN
|
---|
1656 |
|
---|
1657 | Declare Function SQLPrimaryKeys Lib "odbc32.dll" (
|
---|
1658 | hstmt As SQLHSTMT,
|
---|
1659 | szCatalogName As *SQLCHAR,
|
---|
1660 | cbCatalogName As SQLSMALLINT,
|
---|
1661 | szSchemaName As *SQLCHAR,
|
---|
1662 | cbSchemaName As SQLSMALLINT,
|
---|
1663 | szTableName As *SQLCHAR,
|
---|
1664 | cbTableName As SQLSMALLINT) As SQLRETURN
|
---|
1665 |
|
---|
1666 | Declare Function SQLProcedureColumns Lib "odbc32.dll" (
|
---|
1667 | hstmt As SQLHSTMT,
|
---|
1668 | szCatalogName As *SQLCHAR,
|
---|
1669 | cbCatalogName As SQLSMALLINT,
|
---|
1670 | szSchemaName As *SQLCHAR,
|
---|
1671 | cbSchemaName As SQLSMALLINT,
|
---|
1672 | szProcName As *SQLCHAR,
|
---|
1673 | cbProcName As SQLSMALLINT,
|
---|
1674 | szColumnName As *SQLCHAR,
|
---|
1675 | cbColumnName As SQLSMALLINT) As SQLRETURN
|
---|
1676 |
|
---|
1677 | Declare Function SQLProcedures Lib "odbc32.dll" (
|
---|
1678 | hstmt As SQLHSTMT,
|
---|
1679 | szCatalogName As *SQLCHAR,
|
---|
1680 | cbCatalogName As SQLSMALLINT,
|
---|
1681 | szSchemaName As *SQLCHAR,
|
---|
1682 | cbSchemaName As SQLSMALLINT,
|
---|
1683 | szProcName As *SQLCHAR,
|
---|
1684 | cbProcName As SQLSMALLINT) As SQLRETURN
|
---|
1685 |
|
---|
1686 |
|
---|
1687 |
|
---|
1688 | Declare Function SQLSetPos Lib "odbc32.dll" (
|
---|
1689 | hstmt As SQLHSTMT,
|
---|
1690 | irow As SQLSETPOSIROW,
|
---|
1691 | fOption As SQLUSMALLINT,
|
---|
1692 | fLock As SQLUSMALLINT) As SQLRETURN
|
---|
1693 |
|
---|
1694 | Declare Function SQLTablePrivileges Lib "odbc32.dll" (
|
---|
1695 | hstmt As SQLHSTMT,
|
---|
1696 | szCatalogName As *SQLCHAR,
|
---|
1697 | cbCatalogName As SQLSMALLINT,
|
---|
1698 | szSchemaName As *SQLCHAR,
|
---|
1699 | cbSchemaName As SQLSMALLINT,
|
---|
1700 | szTableName As *SQLCHAR,
|
---|
1701 | cbTableName As SQLSMALLINT) As SQLRETURN
|
---|
1702 |
|
---|
1703 | Declare Function SQLDrivers Lib "odbc32.dll" (
|
---|
1704 | henv As SQLHENV,
|
---|
1705 | fDirection As SQLUSMALLINT,
|
---|
1706 | szDriverDesc As *SQLCHAR,
|
---|
1707 | cbDriverDescMax As SQLSMALLINT,
|
---|
1708 | pcbDriverDesc As *SQLSMALLINT,
|
---|
1709 | szDriverAttributes As *SQLCHAR,
|
---|
1710 | cbDrvrAttrMax As SQLSMALLINT,
|
---|
1711 | pcbDrvrAttr As *SQLSMALLINT) As SQLRETURN
|
---|
1712 |
|
---|
1713 | Declare Function SQLBindParameter Lib "odbc32.dll" (
|
---|
1714 | hstmt As SQLHSTMT,
|
---|
1715 | ipar As SQLUSMALLINT,
|
---|
1716 | fParamType As SQLSMALLINT,
|
---|
1717 | fCType As SQLSMALLINT,
|
---|
1718 | fSqlType As SQLSMALLINT,
|
---|
1719 | cbColDef As SQLULEN,
|
---|
1720 | ibScale As SQLSMALLINT,
|
---|
1721 | rgbValue As SQLPOINTER,
|
---|
1722 | cbValueMax As SQLLEN,
|
---|
1723 | pcbValue As *SQLLEN) As SQLRETURN
|
---|
1724 |
|
---|
1725 |
|
---|
1726 |
|
---|
1727 |
|
---|
1728 |
|
---|
1729 | Declare Function SQLAllocHandleStd Lib "odbc32.dll" (
|
---|
1730 | fHandleType As SQLSMALLINT,
|
---|
1731 | hInput As SQLHANDLE,
|
---|
1732 | phOutput As *SQLHANDLE) As SQLRETURN
|
---|
1733 |
|
---|
1734 | /* Deprecated defines from prior versions of ODBC */
|
---|
1735 | Const SQL_DATABASE_NAME = 16 /* Use SQLGetConnectOption/SQL_CURRENT_QUALIFIER */
|
---|
1736 | Const SQL_FD_FETCH_PREV = SQL_FD_FETCH_PRIOR
|
---|
1737 | Const SQL_FETCH_PREV = SQL_FETCH_PRIOR
|
---|
1738 | Const SQL_CONCUR_TIMESTAMP = SQL_CONCUR_ROWVER
|
---|
1739 | Const SQL_SCCO_OPT_TIMESTAMP = SQL_SCCO_OPT_ROWVER
|
---|
1740 | Const SQL_CC_DELETE = SQL_CB_DELETE
|
---|
1741 | Const SQL_CR_DELETE = SQL_CB_DELETE
|
---|
1742 | Const SQL_CC_CLOSE = SQL_CB_CLOSE
|
---|
1743 | Const SQL_CR_CLOSE = SQL_CB_CLOSE
|
---|
1744 | Const SQL_CC_PRESERVE = SQL_CB_PRESERVE
|
---|
1745 | Const SQL_CR_PRESERVE = SQL_CB_PRESERVE
|
---|
1746 | /* SQL_FETCH_RESUME is not supported by 2.0+ drivers
|
---|
1747 | Const SQL_FETCH_RESUME = 7
|
---|
1748 | */
|
---|
1749 | Const SQL_SCROLL_FORWARD_ONLY = 0 /*-SQL_CURSOR_FORWARD_ONLY */
|
---|
1750 | Const SQL_SCROLL_KEYSET_DRIVEN = (-1) /*-SQL_CURSOR_KEYSET_DRIVEN */
|
---|
1751 | Const SQL_SCROLL_DYNAMIC = (-2) /*-SQL_CURSOR_DYNAMIC */
|
---|
1752 | Const SQL_SCROLL_STATIC = (-3) /*-SQL_CURSOR_STATIC */
|
---|
1753 |
|
---|
1754 |
|
---|
1755 | Declare Function SQLSetScrollOptions Lib "odbc32.dll" ( /* Use SQLSetStmtOptions */
|
---|
1756 | hstmt As SQLHSTMT,
|
---|
1757 | fConcurrency As SQLUSMALLINT,
|
---|
1758 | crowKeyset As SQLLEN,
|
---|
1759 | crowRowset As SQLUSMALLINT) As SQLRETURN
|
---|
1760 |
|
---|
1761 |
|
---|
1762 |
|
---|
1763 | /* Functions for setting the connection pooling failure detection code */
|
---|
1764 | /* The "TryWait" value is the time (in seconds) that the DM will wait */
|
---|
1765 | /* between detecting that a connection is dead (using */
|
---|
1766 | /* SQL_ATTR_CONNECTION_DEAD) and retrying the connection. During that */
|
---|
1767 | /* interval, connection requests will get "The server appears to be */
|
---|
1768 | /* dead" error returns. */
|
---|
1769 |
|
---|
1770 |
|
---|
1771 | Declare Function ODBCSetTryWaitValue Lib "odbc32.dll" (dwValue As DWORD) As BOOL /* In seconds */
|
---|
1772 | Declare Function ODBCGetTryWaitValue Lib "odbc32.dll" () As DWord /* In Milliseconds(!) */
|
---|
1773 |
|
---|
1774 |
|
---|
1775 | /* the flags in ODBC_VS_ARGS */
|
---|
1776 | Const ODBC_VS_FLAG_UNICODE_ARG = &H00000001 /* the argument is unicode */
|
---|
1777 | Const ODBC_VS_FLAG_UNICODE_COR = &H00000002 /* the correlation is unicode */
|
---|
1778 | Const ODBC_VS_FLAG_RETCODE = &H00000004 /* RetCode field is set */
|
---|
1779 | Const ODBC_VS_FLAG_STOP = &H00000008 /* Stop firing visual studio analyzer events */
|
---|
1780 |
|
---|
1781 | TypeDef RETCODE = Integer
|
---|
1782 | Type ODBC_VS_ARGS
|
---|
1783 | pguidEvent As *GUID
|
---|
1784 | dwFlags As DWord
|
---|
1785 | 'Union
|
---|
1786 | 'wszArg As *WCHAR
|
---|
1787 | szArg As LPSTR
|
---|
1788 | 'End Union
|
---|
1789 | 'Union
|
---|
1790 | 'wszCorrelation As *WCHAR
|
---|
1791 | szCorrelation As LPSTR
|
---|
1792 | 'End Union
|
---|
1793 | RetCode As RETCODE
|
---|
1794 | End Type
|
---|
1795 |
|
---|
1796 |
|
---|
1797 | #endif /* _INC_SQLEXT */
|
---|