2 * MS SQL Extension definitions
4 * Copyright (C) 1999 Xiang Li
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
31 #define SQL_SPEC_MAJOR 3
32 #define SQL_SPEC_MINOR 51
33 #define SQL_SPEC_STRING "03.51"
35 #define SQL_SQLSTATE_SIZE 5
36 #define SQL_MAX_DSN_LENGTH 32
38 #define SQL_MAX_OPTION_STRING_LENGTH 256
40 #if (ODBCVER < 0x0300)
41 #define SQL_NO_DATA_FOUND 100
43 #define SQL_NO_DATA_FOUND SQL_NO_DATA
46 #if (ODBCVER >= 0x0300)
47 #define SQL_HANDLE_SENV 5
50 #if (ODBCVER >= 0x0300)
51 #define SQL_ATTR_ODBC_VERSION 200
52 #define SQL_ATTR_CONNECTION_POOLING 201
53 #define SQL_ATTR_CP_MATCH 202
56 #if (ODBCVER >= 0x0300)
57 #define SQL_CP_OFF __MSABI_LONG(0U)
58 #define SQL_CP_ONE_PER_DRIVER __MSABI_LONG(1U)
59 #define SQL_CP_ONE_PER_HENV __MSABI_LONG(2U)
60 #define SQL_CP_DEFAULT SQL_CP_OFF
62 #define SQL_CP_STRICT_MATCH __MSABI_LONG(0U)
63 #define SQL_CP_RELAXED_MATCH __MSABI_LONG(1U)
64 #define SQL_CP_MATCH_DEFAULT SQL_CP_STRICT_MATCH
66 #define SQL_OV_ODBC2 __MSABI_LONG(2U)
67 #define SQL_OV_ODBC3 __MSABI_LONG(3U)
68 #define SQL_OV_ODBC3_80 __MSABI_LONG(380U)
71 #define SQL_ACCESS_MODE 101
72 #define SQL_AUTOCOMMIT 102
73 #define SQL_LOGIN_TIMEOUT 103
74 #define SQL_OPT_TRACE 104
75 #define SQL_OPT_TRACEFILE 105
76 #define SQL_TRANSLATE_DLL 106
77 #define SQL_TRANSLATE_OPTION 107
78 #define SQL_TXN_ISOLATION 108
79 #define SQL_CURRENT_QUALIFIER 109
80 #define SQL_ODBC_CURSORS 110
81 #define SQL_QUIET_MODE 111
82 #define SQL_PACKET_SIZE 112
84 #if (ODBCVER >= 0x0300)
85 #define SQL_ATTR_ACCESS_MODE SQL_ACCESS_MODE
86 #define SQL_ATTR_AUTOCOMMIT SQL_AUTOCOMMIT
87 #define SQL_ATTR_CONNECTION_TIMEOUT 113
88 #define SQL_ATTR_CURRENT_CATALOG SQL_CURRENT_QUALIFIER
89 #define SQL_ATTR_DISCONNECT_BEHAVIOR 114
90 #define SQL_ATTR_ENLIST_IN_DTC 1207
91 #define SQL_ATTR_ENLIST_IN_XA 1208
92 #define SQL_ATTR_LOGIN_TIMEOUT SQL_LOGIN_TIMEOUT
93 #define SQL_ATTR_ODBC_CURSORS SQL_ODBC_CURSORS
94 #define SQL_ATTR_PACKET_SIZE SQL_PACKET_SIZE
95 #define SQL_ATTR_QUIET_MODE SQL_QUIET_MODE
96 #define SQL_ATTR_TRACE SQL_OPT_TRACE
97 #define SQL_ATTR_TRACEFILE SQL_OPT_TRACEFILE
98 #define SQL_ATTR_TRANSLATE_LIB SQL_TRANSLATE_DLL
99 #define SQL_ATTR_TRANSLATE_OPTION SQL_TRANSLATE_OPTION
100 #define SQL_ATTR_TXN_ISOLATION SQL_TXN_ISOLATION
103 #define SQL_ATTR_CONNECTION_DEAD 1209
105 #if (ODBCVER >= 0x0351)
106 #define SQL_ATTR_ANSI_APP 115
109 #if (ODBCVER < 0x0300)
110 #define SQL_CONNECT_OPT_DRVR_START 1000
113 #if (ODBCVER < 0x0300)
114 #define SQL_CONN_OPT_MAX SQL_PACKET_SIZE
115 #define SQL_CONN_OPT_MIN SQL_ACCESS_MODE
118 #define SQL_MODE_READ_WRITE __MSABI_LONG(0U)
119 #define SQL_MODE_READ_ONLY __MSABI_LONG(1U)
120 #define SQL_MODE_DEFAULT SQL_MODE_READ_WRITE
122 #define SQL_AUTOCOMMIT_OFF __MSABI_LONG(0U)
123 #define SQL_AUTOCOMMIT_ON __MSABI_LONG(1U)
124 #define SQL_AUTOCOMMIT_DEFAULT SQL_AUTOCOMMIT_ON
126 #define SQL_LOGIN_TIMEOUT_DEFAULT __MSABI_LONG(15U)
128 #define SQL_OPT_TRACE_OFF __MSABI_LONG(0U)
129 #define SQL_OPT_TRACE_ON __MSABI_LONG(1U)
130 #define SQL_OPT_TRACE_DEFAULT SQL_OPT_TRACE_OFF
131 #define SQL_OPT_TRACE_FILE_DEFAULT "\\SQL.LOG"
133 #define SQL_CUR_USE_IF_NEEDED __MSABI_LONG(0U)
134 #define SQL_CUR_USE_ODBC __MSABI_LONG(1U)
135 #define SQL_CUR_USE_DRIVER __MSABI_LONG(2U)
136 #define SQL_CUR_DEFAULT SQL_CUR_USE_DRIVER
138 #if (ODBCVER >= 0x0300)
139 #define SQL_DB_RETURN_TO_POOL __MSABI_LONG(0U)
140 #define SQL_DB_DISCONNECT __MSABI_LONG(1U)
141 #define SQL_DB_DEFAULT SQL_DB_RETURN_TO_POOL
143 #define SQL_DTC_DONE __MSABI_LONG(0)
146 #define SQL_CD_TRUE __MSABI_LONG(1)
147 #define SQL_CD_FALSE __MSABI_LONG(0)
149 #if (ODBCVER >= 0x0351)
150 #define SQL_AA_TRUE __MSABI_LONG(1)
151 #define SQL_AA_FALSE __MSABI_LONG(0)
154 #define SQL_QUERY_TIMEOUT 0
155 #define SQL_MAX_ROWS 1
157 #define SQL_MAX_LENGTH 3
158 #define SQL_ASYNC_ENABLE 4
159 #define SQL_BIND_TYPE 5
160 #define SQL_CURSOR_TYPE 6
161 #define SQL_CONCURRENCY 7
162 #define SQL_KEYSET_SIZE 8
163 #define SQL_ROWSET_SIZE 9
164 #define SQL_SIMULATE_CURSOR 10
165 #define SQL_RETRIEVE_DATA 11
166 #define SQL_USE_BOOKMARKS 12
167 #define SQL_GET_BOOKMARK 13
168 #define SQL_ROW_NUMBER 14
170 #if (ODBCVER >= 0x0300)
171 #define SQL_ATTR_ASYNC_ENABLE 4
172 #define SQL_ATTR_CONCURRENCY SQL_CONCURRENCY
173 #define SQL_ATTR_CURSOR_TYPE SQL_CURSOR_TYPE
174 #define SQL_ATTR_ENABLE_AUTO_IPD 15
175 #define SQL_ATTR_FETCH_BOOKMARK_PTR 16
176 #define SQL_ATTR_KEYSET_SIZE SQL_KEYSET_SIZE
177 #define SQL_ATTR_MAX_LENGTH SQL_MAX_LENGTH
178 #define SQL_ATTR_MAX_ROWS SQL_MAX_ROWS
179 #define SQL_ATTR_NOSCAN SQL_NOSCAN
180 #define SQL_ATTR_PARAM_BIND_OFFSET_PTR 17
181 #define SQL_ATTR_PARAM_BIND_TYPE 18
182 #define SQL_ATTR_PARAM_OPERATION_PTR 19
183 #define SQL_ATTR_PARAM_STATUS_PTR 20
184 #define SQL_ATTR_PARAMS_PROCESSED_PTR 21
185 #define SQL_ATTR_RETRIEVE_DATA SQL_RETRIEVE_DATA
186 #define SQL_ATTR_ROW_BIND_OFFSET_PTR 23
187 #define SQL_ATTR_ROW_BIND_TYPE SQL_BIND_TYPE
188 #define SQL_ATTR_ROW_NUMBER SQL_ROW_NUMBER
189 #define SQL_ATTR_ROW_OPERATION_PTR 24
190 #define SQL_ATTR_ROW_STATUS_PTR 25
191 #define SQL_ATTR_ROWS_FETCHED_PTR 26
192 #define SQL_ATTR_ROW_ARRAY_SIZE 27
193 #define SQL_ATTR_SIMULATE_CURSOR SQL_SIMULATE_CURSOR
194 #define SQL_ATTR_USE_BOOKMARKS SQL_USE_BOOKMARKS
198 #if (ODBCVER < 0x0300)
199 #define SQL_STMT_OPT_MAX SQL_ROW_NUMBER
200 #define SQL_STMT_OPT_MIN SQL_QUERY_TIMEOUT
203 #if (ODBCVER >= 0x0300)
204 #define SQL_COL_PRED_CHAR SQL_LIKE_ONLY
205 #define SQL_COL_PRED_BASIC SQL_ALL_EXCEPT_LIKE
208 #if (ODBCVER >= 0x0300)
209 #define SQL_IS_POINTER (-4)
210 #define SQL_IS_UINTEGER (-5)
211 #define SQL_IS_INTEGER (-6)
212 #define SQL_IS_USMALLINT (-7)
213 #define SQL_IS_SMALLINT (-8)
216 #if (ODBCVER >= 0x0300)
217 #define SQL_PARAM_BIND_BY_COLUMN __MSABI_LONG(0U)
218 #define SQL_PARAM_BIND_TYPE_DEFAULT SQL_PARAM_BIND_BY_COLUMN
221 #define SQL_QUERY_TIMEOUT_DEFAULT __MSABI_LONG(0U)
223 #define SQL_MAX_ROWS_DEFAULT __MSABI_LONG(0U)
225 #define SQL_NOSCAN_OFF __MSABI_LONG(0U)
226 #define SQL_NOSCAN_ON __MSABI_LONG(1U)
227 #define SQL_NOSCAN_DEFAULT SQL_NOSCAN_OFF
229 #define SQL_MAX_LENGTH_DEFAULT __MSABI_LONG(0U)
231 #define SQL_ASYNC_ENABLE_OFF __MSABI_LONG(0U)
232 #define SQL_ASYNC_ENABLE_ON __MSABI_LONG(1U)
233 #define SQL_ASYNC_ENABLE_DEFAULT SQL_ASYNC_ENABLE_OFF
235 #define SQL_BIND_BY_COLUMN __MSABI_LONG(0U)
236 #define SQL_BIND_TYPE_DEFAULT SQL_BIND_BY_COLUMN
238 #define SQL_CONCUR_READ_ONLY 1
239 #define SQL_CONCUR_LOCK 2
240 #define SQL_CONCUR_ROWVER 3
241 #define SQL_CONCUR_VALUES 4
242 #define SQL_CONCUR_DEFAULT SQL_CONCUR_READ_ONLY
244 #define SQL_CURSOR_FORWARD_ONLY __MSABI_LONG(0U)
245 #define SQL_CURSOR_KEYSET_DRIVEN __MSABI_LONG(1U)
246 #define SQL_CURSOR_DYNAMIC __MSABI_LONG(2U)
247 #define SQL_CURSOR_STATIC __MSABI_LONG(3U)
248 #define SQL_CURSOR_TYPE_DEFAULT SQL_CURSOR_FORWARD_ONLY
250 #define SQL_ROWSET_SIZE_DEFAULT __MSABI_LONG(1U)
252 #define SQL_KEYSET_SIZE_DEFAULT __MSABI_LONG(0U)
254 #define SQL_SC_NON_UNIQUE __MSABI_LONG(0U)
255 #define SQL_SC_TRY_UNIQUE __MSABI_LONG(1U)
256 #define SQL_SC_UNIQUE __MSABI_LONG(2U)
258 #define SQL_RD_OFF __MSABI_LONG(0U)
259 #define SQL_RD_ON __MSABI_LONG(1U)
260 #define SQL_RD_DEFAULT SQL_RD_ON
262 #define SQL_UB_OFF __MSABI_LONG(0U)
263 #define SQL_UB_ON __MSABI_LONG(1U)
264 #define SQL_UB_DEFAULT SQL_UB_OFF
266 #if (ODBCVER >= 0x0300)
267 #define SQL_UB_FIXED SQL_UB_ON
268 #define SQL_UB_VARIABLE __MSABI_LONG(2U)
271 #if (ODBCVER >= 0x0300)
272 #define SQL_DESC_ARRAY_SIZE 20
273 #define SQL_DESC_ARRAY_STATUS_PTR 21
274 #define SQL_DESC_AUTO_UNIQUE_VALUE SQL_COLUMN_AUTO_INCREMENT
275 #define SQL_DESC_BASE_COLUMN_NAME 22
276 #define SQL_DESC_BASE_TABLE_NAME 23
277 #define SQL_DESC_BIND_OFFSET_PTR 24
278 #define SQL_DESC_BIND_TYPE 25
279 #define SQL_DESC_CASE_SENSITIVE SQL_COLUMN_CASE_SENSITIVE
280 #define SQL_DESC_CATALOG_NAME SQL_COLUMN_QUALIFIER_NAME
281 #define SQL_DESC_CONCISE_TYPE SQL_COLUMN_TYPE
282 #define SQL_DESC_DATETIME_INTERVAL_PRECISION 26
283 #define SQL_DESC_DISPLAY_SIZE SQL_COLUMN_DISPLAY_SIZE
284 #define SQL_DESC_FIXED_PREC_SCALE SQL_COLUMN_MONEY
285 #define SQL_DESC_LABEL SQL_COLUMN_LABEL
286 #define SQL_DESC_LITERAL_PREFIX 27
287 #define SQL_DESC_LITERAL_SUFFIX 28
288 #define SQL_DESC_LOCAL_TYPE_NAME 29
289 #define SQL_DESC_MAXIMUM_SCALE 30
290 #define SQL_DESC_MINIMUM_SCALE 31
291 #define SQL_DESC_NUM_PREC_RADIX 32
292 #define SQL_DESC_PARAMETER_TYPE 33
293 #define SQL_DESC_ROWS_PROCESSED_PTR 34
294 #if (ODBCVER >= 0x0350)
295 #define SQL_DESC_ROWVER 35
297 #define SQL_DESC_SCHEMA_NAME SQL_COLUMN_OWNER_NAME
298 #define SQL_DESC_SEARCHABLE SQL_COLUMN_SEARCHABLE
299 #define SQL_DESC_TYPE_NAME SQL_COLUMN_TYPE_NAME
300 #define SQL_DESC_TABLE_NAME SQL_COLUMN_TABLE_NAME
301 #define SQL_DESC_UNSIGNED SQL_COLUMN_UNSIGNED
302 #define SQL_DESC_UPDATABLE SQL_COLUMN_UPDATABLE
305 #if (ODBCVER >= 0x0300)
306 #define SQL_DIAG_CURSOR_ROW_COUNT (-1249)
307 #define SQL_DIAG_ROW_NUMBER (-1248)
308 #define SQL_DIAG_COLUMN_NUMBER (-1247)
312 #if (ODBCVER >= 0x0300)
313 #define SQL_INTERVAL 10
316 #define SQL_TIMESTAMP 11
317 #define SQL_LONGVARCHAR (-1)
318 #define SQL_BINARY (-2)
319 #define SQL_VARBINARY (-3)
320 #define SQL_LONGVARBINARY (-4)
321 #define SQL_BIGINT (-5)
322 #define SQL_TINYINT (-6)
324 #if (ODBCVER >= 0x0350)
325 #define SQL_GUID (-11)
328 #if (ODBCVER >= 0x0300)
329 #define SQL_CODE_YEAR 1
330 #define SQL_CODE_MONTH 2
331 #define SQL_CODE_DAY 3
332 #define SQL_CODE_HOUR 4
333 #define SQL_CODE_MINUTE 5
334 #define SQL_CODE_SECOND 6
335 #define SQL_CODE_YEAR_TO_MONTH 7
336 #define SQL_CODE_DAY_TO_HOUR 8
337 #define SQL_CODE_DAY_TO_MINUTE 9
338 #define SQL_CODE_DAY_TO_SECOND 10
339 #define SQL_CODE_HOUR_TO_MINUTE 11
340 #define SQL_CODE_HOUR_TO_SECOND 12
341 #define SQL_CODE_MINUTE_TO_SECOND 13
343 #define SQL_INTERVAL_YEAR (100 + SQL_CODE_YEAR)
344 #define SQL_INTERVAL_MONTH (100 + SQL_CODE_MONTH)
345 #define SQL_INTERVAL_DAY (100 + SQL_CODE_DAY)
346 #define SQL_INTERVAL_HOUR (100 + SQL_CODE_HOUR)
347 #define SQL_INTERVAL_MINUTE (100 + SQL_CODE_MINUTE)
348 #define SQL_INTERVAL_SECOND (100 + SQL_CODE_SECOND)
349 #define SQL_INTERVAL_YEAR_TO_MONTH (100 + SQL_CODE_YEAR_TO_MONTH)
350 #define SQL_INTERVAL_DAY_TO_HOUR (100 + SQL_CODE_DAY_TO_HOUR)
351 #define SQL_INTERVAL_DAY_TO_MINUTE (100 + SQL_CODE_DAY_TO_MINUTE)
352 #define SQL_INTERVAL_DAY_TO_SECOND (100 + SQL_CODE_DAY_TO_SECOND)
353 #define SQL_INTERVAL_HOUR_TO_MINUTE (100 + SQL_CODE_HOUR_TO_MINUTE)
354 #define SQL_INTERVAL_HOUR_TO_SECOND (100 + SQL_CODE_HOUR_TO_SECOND)
355 #define SQL_INTERVAL_MINUTE_TO_SECOND (100 + SQL_CODE_MINUTE_TO_SECOND)
358 #define SQL_INTERVAL_YEAR (-80)
359 #define SQL_INTERVAL_MONTH (-81)
360 #define SQL_INTERVAL_YEAR_TO_MONTH (-82)
361 #define SQL_INTERVAL_DAY (-83)
362 #define SQL_INTERVAL_HOUR (-84)
363 #define SQL_INTERVAL_MINUTE (-85)
364 #define SQL_INTERVAL_SECOND (-86)
365 #define SQL_INTERVAL_DAY_TO_HOUR (-87)
366 #define SQL_INTERVAL_DAY_TO_MINUTE (-88)
367 #define SQL_INTERVAL_DAY_TO_SECOND (-89)
368 #define SQL_INTERVAL_HOUR_TO_MINUTE (-90)
369 #define SQL_INTERVAL_HOUR_TO_SECOND (-91)
370 #define SQL_INTERVAL_MINUTE_TO_SECOND (-92)
374 #if (ODBCVER <= 0x0300)
375 #define SQL_UNICODE (-95)
376 #define SQL_UNICODE_VARCHAR (-96)
377 #define SQL_UNICODE_LONGVARCHAR (-97)
378 #define SQL_UNICODE_CHAR SQL_UNICODE
381 #define SQL_UNICODE SQL_WCHAR
382 #define SQL_UNICODE_VARCHAR SQL_WVARCHAR
383 #define SQL_UNICODE_LONGVARCHAR SQL_WLONGVARCHAR
384 #define SQL_UNICODE_CHAR SQL_WCHAR
387 #if (ODBCVER < 0x0300)
388 #define SQL_TYPE_DRIVER_START SQL_INTERVAL_YEAR
389 #define SQL_TYPE_DRIVER_END SQL_UNICODE_LONGVARCHAR
392 #define SQL_C_CHAR SQL_CHAR
393 #define SQL_C_LONG SQL_INTEGER
394 #define SQL_C_SHORT SQL_SMALLINT
395 #define SQL_C_FLOAT SQL_REAL
396 #define SQL_C_DOUBLE SQL_DOUBLE
397 #if (ODBCVER >= 0x0300)
398 #define SQL_C_NUMERIC SQL_NUMERIC
400 #define SQL_C_DEFAULT 99
402 #define SQL_SIGNED_OFFSET (-20)
403 #define SQL_UNSIGNED_OFFSET (-22)
405 #define SQL_C_DATE SQL_DATE
406 #define SQL_C_TIME SQL_TIME
407 #define SQL_C_TIMESTAMP SQL_TIMESTAMP
408 #if (ODBCVER >= 0x0300)
409 #define SQL_C_TYPE_DATE SQL_TYPE_DATE
410 #define SQL_C_TYPE_TIME SQL_TYPE_TIME
411 #define SQL_C_TYPE_TIMESTAMP SQL_TYPE_TIMESTAMP
412 #define SQL_C_INTERVAL_YEAR SQL_INTERVAL_YEAR
413 #define SQL_C_INTERVAL_MONTH SQL_INTERVAL_MONTH
414 #define SQL_C_INTERVAL_DAY SQL_INTERVAL_DAY
415 #define SQL_C_INTERVAL_HOUR SQL_INTERVAL_HOUR
416 #define SQL_C_INTERVAL_MINUTE SQL_INTERVAL_MINUTE
417 #define SQL_C_INTERVAL_SECOND SQL_INTERVAL_SECOND
418 #define SQL_C_INTERVAL_YEAR_TO_MONTH SQL_INTERVAL_YEAR_TO_MONTH
419 #define SQL_C_INTERVAL_DAY_TO_HOUR SQL_INTERVAL_DAY_TO_HOUR
420 #define SQL_C_INTERVAL_DAY_TO_MINUTE SQL_INTERVAL_DAY_TO_MINUTE
421 #define SQL_C_INTERVAL_DAY_TO_SECOND SQL_INTERVAL_DAY_TO_SECOND
422 #define SQL_C_INTERVAL_HOUR_TO_MINUTE SQL_INTERVAL_HOUR_TO_MINUTE
423 #define SQL_C_INTERVAL_HOUR_TO_SECOND SQL_INTERVAL_HOUR_TO_SECOND
424 #define SQL_C_INTERVAL_MINUTE_TO_SECOND SQL_INTERVAL_MINUTE_TO_SECOND
426 #define SQL_C_BINARY SQL_BINARY
427 #define SQL_C_BIT SQL_BIT
428 #if (ODBCVER >= 0x0300)
429 #define SQL_C_SBIGINT (SQL_BIGINT+SQL_SIGNED_OFFSET)
430 #define SQL_C_UBIGINT (SQL_BIGINT+SQL_UNSIGNED_OFFSET)
432 #define SQL_C_TINYINT SQL_TINYINT
433 #define SQL_C_SLONG (SQL_C_LONG+SQL_SIGNED_OFFSET)
434 #define SQL_C_SSHORT (SQL_C_SHORT+SQL_SIGNED_OFFSET)
435 #define SQL_C_STINYINT (SQL_TINYINT+SQL_SIGNED_OFFSET)
436 #define SQL_C_ULONG (SQL_C_LONG+SQL_UNSIGNED_OFFSET)
437 #define SQL_C_USHORT (SQL_C_SHORT+SQL_UNSIGNED_OFFSET)
438 #define SQL_C_UTINYINT (SQL_TINYINT+SQL_UNSIGNED_OFFSET)
439 #define SQL_C_BOOKMARK SQL_C_ULONG
441 #if (ODBCVER >= 0x0350)
442 #define SQL_C_GUID SQL_GUID
445 #define SQL_TYPE_NULL 0
446 #if (ODBCVER < 0x0300)
447 #define SQL_TYPE_MIN SQL_BIT
448 #define SQL_TYPE_MAX SQL_VARCHAR
451 #if (ODBCVER >= 0x0300)
452 #define SQL_C_VARBOOKMARK SQL_C_BINARY
455 #if (ODBCVER >= 0x0300)
456 #define SQL_NO_ROW_NUMBER (-1)
457 #define SQL_NO_COLUMN_NUMBER (-1)
458 #define SQL_ROW_NUMBER_UNKNOWN (-2)
459 #define SQL_COLUMN_NUMBER_UNKNOWN (-2)
462 #define SQL_DEFAULT_PARAM (-5)
463 #define SQL_IGNORE (-6)
464 #if (ODBCVER >= 0x0300)
465 #define SQL_COLUMN_IGNORE SQL_IGNORE
467 #define SQL_LEN_DATA_AT_EXEC_OFFSET (-100)
468 #define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET)
470 #define SQL_LEN_BINARY_ATTR_OFFSET (-100)
471 #define SQL_LEN_BINARY_ATTR(length) (-(length)+SQL_LEN_BINARY_ATTR_OFFSET)
473 #define SQL_PARAM_TYPE_DEFAULT SQL_PARAM_INPUT_OUTPUT
474 #define SQL_SETPARAM_VALUE_MAX (__MSABI_LONG(-1))
476 #define SQL_COLUMN_COUNT 0
477 #define SQL_COLUMN_NAME 1
478 #define SQL_COLUMN_TYPE 2
479 #define SQL_COLUMN_LENGTH 3
480 #define SQL_COLUMN_PRECISION 4
481 #define SQL_COLUMN_SCALE 5
482 #define SQL_COLUMN_DISPLAY_SIZE 6
483 #define SQL_COLUMN_NULLABLE 7
484 #define SQL_COLUMN_UNSIGNED 8
485 #define SQL_COLUMN_MONEY 9
486 #define SQL_COLUMN_UPDATABLE 10
487 #define SQL_COLUMN_AUTO_INCREMENT 11
488 #define SQL_COLUMN_CASE_SENSITIVE 12
489 #define SQL_COLUMN_SEARCHABLE 13
490 #define SQL_COLUMN_TYPE_NAME 14
491 #define SQL_COLUMN_TABLE_NAME 15
492 #define SQL_COLUMN_OWNER_NAME 16
493 #define SQL_COLUMN_QUALIFIER_NAME 17
494 #define SQL_COLUMN_LABEL 18
495 #define SQL_COLATT_OPT_MAX SQL_COLUMN_LABEL
496 #if (ODBCVER < 0x0300)
497 #define SQL_COLUMN_DRIVER_START 1000
500 #define SQL_COLATT_OPT_MIN SQL_COLUMN_COUNT
502 #define SQL_ATTR_READONLY 0
503 #define SQL_ATTR_WRITE 1
504 #define SQL_ATTR_READWRITE_UNKNOWN 2
506 #define SQL_UNSEARCHABLE 0
507 #define SQL_LIKE_ONLY 1
508 #define SQL_ALL_EXCEPT_LIKE 2
509 #define SQL_SEARCHABLE 3
510 #define SQL_PRED_SEARCHABLE SQL_SEARCHABLE
513 #define SQL_NO_TOTAL (-4)
515 #if (ODBCVER >= 0x0300)
516 #define SQL_API_SQLALLOCHANDLESTD 73
517 #define SQL_API_SQLBULKOPERATIONS 24
519 #define SQL_API_SQLBINDPARAMETER 72
520 #define SQL_API_SQLBROWSECONNECT 55
521 #define SQL_API_SQLCOLATTRIBUTES 6
522 #define SQL_API_SQLCOLUMNPRIVILEGES 56
523 #define SQL_API_SQLDESCRIBEPARAM 58
524 #define SQL_API_SQLDRIVERCONNECT 41
525 #define SQL_API_SQLDRIVERS 71
526 #define SQL_API_SQLEXTENDEDFETCH 59
527 #define SQL_API_SQLFOREIGNKEYS 60
528 #define SQL_API_SQLMORERESULTS 61
529 #define SQL_API_SQLNATIVESQL 62
530 #define SQL_API_SQLNUMPARAMS 63
531 #define SQL_API_SQLPARAMOPTIONS 64
532 #define SQL_API_SQLPRIMARYKEYS 65
533 #define SQL_API_SQLPROCEDURECOLUMNS 66
534 #define SQL_API_SQLPROCEDURES 67
535 #define SQL_API_SQLSETPOS 68
536 #define SQL_API_SQLSETSCROLLOPTIONS 69
537 #define SQL_API_SQLTABLEPRIVILEGES 70
539 #if (ODBCVER < 0x0300)
540 #define SQL_EXT_API_LAST SQL_API_SQLBINDPARAMETER
541 #define SQL_NUM_FUNCTIONS 23
542 #define SQL_EXT_API_START 40
543 #define SQL_NUM_EXTENSIONS (SQL_EXT_API_LAST-SQL_EXT_API_START+1)
546 #define SQL_API_ALL_FUNCTIONS 0
548 #define SQL_API_LOADBYORDINAL 199
550 #if (ODBCVER >= 0x0300)
551 #define SQL_API_ODBC3_ALL_FUNCTIONS 999
552 #define SQL_API_ODBC3_ALL_FUNCTIONS_SIZE 250
555 #define SQL_FUNC_EXISTS(pfExists, uwAPI) ((*(((UWORD*) (pfExists)) + ((uwAPI) >> 4)) & (1 << ((uwAPI) & 0x000F)) ) ? SQL_TRUE : SQL_FALSE )
559 #define SQL_INFO_FIRST 0
560 #define SQL_ACTIVE_CONNECTIONS 0
561 #define SQL_ACTIVE_STATEMENTS 1
562 #define SQL_DRIVER_HDBC 3
563 #define SQL_DRIVER_HENV 4
564 #define SQL_DRIVER_HSTMT 5
565 #define SQL_DRIVER_NAME 6
566 #define SQL_DRIVER_VER 7
567 #define SQL_ODBC_API_CONFORMANCE 9
568 #define SQL_ODBC_VER 10
569 #define SQL_ROW_UPDATES 11
570 #define SQL_ODBC_SAG_CLI_CONFORMANCE 12
571 #define SQL_ODBC_SQL_CONFORMANCE 15
572 #define SQL_PROCEDURES 21
573 #define SQL_CONCAT_NULL_BEHAVIOR 22
574 #define SQL_CURSOR_ROLLBACK_BEHAVIOR 24
575 #define SQL_EXPRESSIONS_IN_ORDERBY 27
576 #define SQL_MAX_OWNER_NAME_LEN 32
577 #define SQL_MAX_PROCEDURE_NAME_LEN 33
578 #define SQL_MAX_QUALIFIER_NAME_LEN 34
579 #define SQL_MULT_RESULT_SETS 36
580 #define SQL_MULTIPLE_ACTIVE_TXN 37
581 #define SQL_OUTER_JOINS 38
582 #define SQL_OWNER_TERM 39
583 #define SQL_PROCEDURE_TERM 40
584 #define SQL_QUALIFIER_NAME_SEPARATOR 41
585 #define SQL_QUALIFIER_TERM 42
586 #define SQL_SCROLL_OPTIONS 44
587 #define SQL_TABLE_TERM 45
588 #define SQL_CONVERT_FUNCTIONS 48
589 #define SQL_NUMERIC_FUNCTIONS 49
590 #define SQL_STRING_FUNCTIONS 50
591 #define SQL_SYSTEM_FUNCTIONS 51
592 #define SQL_TIMEDATE_FUNCTIONS 52
593 #define SQL_CONVERT_BIGINT 53
594 #define SQL_CONVERT_BINARY 54
595 #define SQL_CONVERT_BIT 55
596 #define SQL_CONVERT_CHAR 56
597 #define SQL_CONVERT_DATE 57
598 #define SQL_CONVERT_DECIMAL 58
599 #define SQL_CONVERT_DOUBLE 59
600 #define SQL_CONVERT_FLOAT 60
601 #define SQL_CONVERT_INTEGER 61
602 #define SQL_CONVERT_LONGVARCHAR 62
603 #define SQL_CONVERT_NUMERIC 63
604 #define SQL_CONVERT_REAL 64
605 #define SQL_CONVERT_SMALLINT 65
606 #define SQL_CONVERT_TIME 66
607 #define SQL_CONVERT_TIMESTAMP 67
608 #define SQL_CONVERT_TINYINT 68
609 #define SQL_CONVERT_VARBINARY 69
610 #define SQL_CONVERT_VARCHAR 70
611 #define SQL_CONVERT_LONGVARBINARY 71
612 #define SQL_ODBC_SQL_OPT_IEF 73
613 #define SQL_CORRELATION_NAME 74
614 #define SQL_NON_NULLABLE_COLUMNS 75
615 #define SQL_DRIVER_HLIB 76
616 #define SQL_DRIVER_ODBC_VER 77
617 #define SQL_LOCK_TYPES 78
618 #define SQL_POS_OPERATIONS 79
619 #define SQL_POSITIONED_STATEMENTS 80
620 #define SQL_BOOKMARK_PERSISTENCE 82
621 #define SQL_STATIC_SENSITIVITY 83
622 #define SQL_FILE_USAGE 84
623 #define SQL_COLUMN_ALIAS 87
624 #define SQL_GROUP_BY 88
625 #define SQL_KEYWORDS 89
626 #define SQL_OWNER_USAGE 91
627 #define SQL_QUALIFIER_USAGE 92
628 #define SQL_QUOTED_IDENTIFIER_CASE 93
629 #define SQL_SUBQUERIES 95
631 #define SQL_MAX_ROW_SIZE_INCLUDES_LONG 103
632 #define SQL_MAX_CHAR_LITERAL_LEN 108
633 #define SQL_TIMEDATE_ADD_INTERVALS 109
634 #define SQL_TIMEDATE_DIFF_INTERVALS 110
635 #define SQL_NEED_LONG_DATA_LEN 111
636 #define SQL_MAX_BINARY_LITERAL_LEN 112
637 #define SQL_LIKE_ESCAPE_CLAUSE 113
638 #define SQL_QUALIFIER_LOCATION 114
640 #if (ODBCVER >= 0x0201 && ODBCVER < 0x0300)
641 #define SQL_OJ_CAPABILITIES 65003
644 #if (ODBCVER < 0x0300)
645 #define SQL_INFO_LAST SQL_QUALIFIER_LOCATION
646 #define SQL_INFO_DRIVER_START 1000
649 #if (ODBCVER >= 0x0300)
650 #define SQL_ACTIVE_ENVIRONMENTS 116
651 #define SQL_ALTER_DOMAIN 117
653 #define SQL_SQL_CONFORMANCE 118
654 #define SQL_DATETIME_LITERALS 119
656 #define SQL_ASYNC_MODE 10021
657 #define SQL_BATCH_ROW_COUNT 120
658 #define SQL_BATCH_SUPPORT 121
659 #define SQL_CATALOG_LOCATION SQL_QUALIFIER_LOCATION
660 #define SQL_CATALOG_NAME_SEPARATOR SQL_QUALIFIER_NAME_SEPARATOR
661 #define SQL_CATALOG_TERM SQL_QUALIFIER_TERM
662 #define SQL_CATALOG_USAGE SQL_QUALIFIER_USAGE
663 #define SQL_CONVERT_WCHAR 122
664 #define SQL_CONVERT_INTERVAL_DAY_TIME 123
665 #define SQL_CONVERT_INTERVAL_YEAR_MONTH 124
666 #define SQL_CONVERT_WLONGVARCHAR 125
667 #define SQL_CONVERT_WVARCHAR 126
668 #define SQL_CREATE_ASSERTION 127
669 #define SQL_CREATE_CHARACTER_SET 128
670 #define SQL_CREATE_COLLATION 129
671 #define SQL_CREATE_DOMAIN 130
672 #define SQL_CREATE_SCHEMA 131
673 #define SQL_CREATE_TABLE 132
674 #define SQL_CREATE_TRANSLATION 133
675 #define SQL_CREATE_VIEW 134
676 #define SQL_DRIVER_HDESC 135
677 #define SQL_DROP_ASSERTION 136
678 #define SQL_DROP_CHARACTER_SET 137
679 #define SQL_DROP_COLLATION 138
680 #define SQL_DROP_DOMAIN 139
681 #define SQL_DROP_SCHEMA 140
682 #define SQL_DROP_TABLE 141
683 #define SQL_DROP_TRANSLATION 142
684 #define SQL_DROP_VIEW 143
685 #define SQL_DYNAMIC_CURSOR_ATTRIBUTES1 144
686 #define SQL_DYNAMIC_CURSOR_ATTRIBUTES2 145
687 #define SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1 146
688 #define SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2 147
689 #define SQL_INDEX_KEYWORDS 148
690 #define SQL_INFO_SCHEMA_VIEWS 149
691 #define SQL_KEYSET_CURSOR_ATTRIBUTES1 150
692 #define SQL_KEYSET_CURSOR_ATTRIBUTES2 151
693 #define SQL_MAX_ASYNC_CONCURRENT_STATEMENTS 10022
694 #define SQL_ODBC_INTERFACE_CONFORMANCE 152
695 #define SQL_PARAM_ARRAY_ROW_COUNTS 153
696 #define SQL_PARAM_ARRAY_SELECTS 154
697 #define SQL_SCHEMA_TERM SQL_OWNER_TERM
698 #define SQL_SCHEMA_USAGE SQL_OWNER_USAGE
699 #define SQL_SQL92_DATETIME_FUNCTIONS 155
700 #define SQL_SQL92_FOREIGN_KEY_DELETE_RULE 156
701 #define SQL_SQL92_FOREIGN_KEY_UPDATE_RULE 157
702 #define SQL_SQL92_GRANT 158
703 #define SQL_SQL92_NUMERIC_VALUE_FUNCTIONS 159
704 #define SQL_SQL92_PREDICATES 160
705 #define SQL_SQL92_RELATIONAL_JOIN_OPERATORS 161
706 #define SQL_SQL92_REVOKE 162
707 #define SQL_SQL92_ROW_VALUE_CONSTRUCTOR 163
708 #define SQL_SQL92_STRING_FUNCTIONS 164
709 #define SQL_SQL92_VALUE_EXPRESSIONS 165
710 #define SQL_STANDARD_CLI_CONFORMANCE 166
711 #define SQL_STATIC_CURSOR_ATTRIBUTES1 167
712 #define SQL_STATIC_CURSOR_ATTRIBUTES2 168
714 #define SQL_AGGREGATE_FUNCTIONS 169
715 #define SQL_DDL_INDEX 170
716 #define SQL_DM_VER 171
717 #define SQL_INSERT_STATEMENT 172
718 #define SQL_UNION_STATEMENT SQL_UNION
721 #define SQL_DTC_TRANSITION_COST 1750
723 #if (ODBCVER >= 0x0300)
725 #define SQL_AT_ADD_COLUMN_SINGLE __MSABI_LONG(0x00000020)
726 #define SQL_AT_ADD_COLUMN_DEFAULT __MSABI_LONG(0x00000040)
727 #define SQL_AT_ADD_COLUMN_COLLATION __MSABI_LONG(0x00000080)
728 #define SQL_AT_SET_COLUMN_DEFAULT __MSABI_LONG(0x00000100)
729 #define SQL_AT_DROP_COLUMN_DEFAULT __MSABI_LONG(0x00000200)
730 #define SQL_AT_DROP_COLUMN_CASCADE __MSABI_LONG(0x00000400)
731 #define SQL_AT_DROP_COLUMN_RESTRICT __MSABI_LONG(0x00000800)
732 #define SQL_AT_ADD_TABLE_CONSTRAINT __MSABI_LONG(0x00001000)
733 #define SQL_AT_DROP_TABLE_CONSTRAINT_CASCADE __MSABI_LONG(0x00002000)
734 #define SQL_AT_DROP_TABLE_CONSTRAINT_RESTRICT __MSABI_LONG(0x00004000)
735 #define SQL_AT_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00008000)
736 #define SQL_AT_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00010000)
737 #define SQL_AT_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00020000)
738 #define SQL_AT_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00040000)
739 #define SQL_AT_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00080000)
742 #define SQL_CVT_CHAR __MSABI_LONG(0x00000001)
743 #define SQL_CVT_NUMERIC __MSABI_LONG(0x00000002)
744 #define SQL_CVT_DECIMAL __MSABI_LONG(0x00000004)
745 #define SQL_CVT_INTEGER __MSABI_LONG(0x00000008)
746 #define SQL_CVT_SMALLINT __MSABI_LONG(0x00000010)
747 #define SQL_CVT_FLOAT __MSABI_LONG(0x00000020)
748 #define SQL_CVT_REAL __MSABI_LONG(0x00000040)
749 #define SQL_CVT_DOUBLE __MSABI_LONG(0x00000080)
750 #define SQL_CVT_VARCHAR __MSABI_LONG(0x00000100)
751 #define SQL_CVT_LONGVARCHAR __MSABI_LONG(0x00000200)
752 #define SQL_CVT_BINARY __MSABI_LONG(0x00000400)
753 #define SQL_CVT_VARBINARY __MSABI_LONG(0x00000800)
754 #define SQL_CVT_BIT __MSABI_LONG(0x00001000)
755 #define SQL_CVT_TINYINT __MSABI_LONG(0x00002000)
756 #define SQL_CVT_BIGINT __MSABI_LONG(0x00004000)
757 #define SQL_CVT_DATE __MSABI_LONG(0x00008000)
758 #define SQL_CVT_TIME __MSABI_LONG(0x00010000)
759 #define SQL_CVT_TIMESTAMP __MSABI_LONG(0x00020000)
760 #define SQL_CVT_LONGVARBINARY __MSABI_LONG(0x00040000)
761 #if (ODBCVER >= 0x0300)
762 #define SQL_CVT_INTERVAL_YEAR_MONTH __MSABI_LONG(0x00080000)
763 #define SQL_CVT_INTERVAL_DAY_TIME __MSABI_LONG(0x00100000)
764 #define SQL_CVT_WCHAR __MSABI_LONG(0x00200000)
765 #define SQL_CVT_WLONGVARCHAR __MSABI_LONG(0x00400000)
766 #define SQL_CVT_WVARCHAR __MSABI_LONG(0x00800000)
771 #define SQL_FN_CVT_CONVERT __MSABI_LONG(0x00000001)
772 #if (ODBCVER >= 0x0300)
773 #define SQL_FN_CVT_CAST __MSABI_LONG(0x00000002)
776 #define SQL_FN_STR_CONCAT __MSABI_LONG(0x00000001)
777 #define SQL_FN_STR_INSERT __MSABI_LONG(0x00000002)
778 #define SQL_FN_STR_LEFT __MSABI_LONG(0x00000004)
779 #define SQL_FN_STR_LTRIM __MSABI_LONG(0x00000008)
780 #define SQL_FN_STR_LENGTH __MSABI_LONG(0x00000010)
781 #define SQL_FN_STR_LOCATE __MSABI_LONG(0x00000020)
782 #define SQL_FN_STR_LCASE __MSABI_LONG(0x00000040)
783 #define SQL_FN_STR_REPEAT __MSABI_LONG(0x00000080)
784 #define SQL_FN_STR_REPLACE __MSABI_LONG(0x00000100)
785 #define SQL_FN_STR_RIGHT __MSABI_LONG(0x00000200)
786 #define SQL_FN_STR_RTRIM __MSABI_LONG(0x00000400)
787 #define SQL_FN_STR_SUBSTRING __MSABI_LONG(0x00000800)
788 #define SQL_FN_STR_UCASE __MSABI_LONG(0x00001000)
789 #define SQL_FN_STR_ASCII __MSABI_LONG(0x00002000)
790 #define SQL_FN_STR_CHAR __MSABI_LONG(0x00004000)
791 #define SQL_FN_STR_DIFFERENCE __MSABI_LONG(0x00008000)
792 #define SQL_FN_STR_LOCATE_2 __MSABI_LONG(0x00010000)
793 #define SQL_FN_STR_SOUNDEX __MSABI_LONG(0x00020000)
794 #define SQL_FN_STR_SPACE __MSABI_LONG(0x00040000)
795 #if (ODBCVER >= 0x0300)
796 #define SQL_FN_STR_BIT_LENGTH __MSABI_LONG(0x00080000)
797 #define SQL_FN_STR_CHAR_LENGTH __MSABI_LONG(0x00100000)
798 #define SQL_FN_STR_CHARACTER_LENGTH __MSABI_LONG(0x00200000)
799 #define SQL_FN_STR_OCTET_LENGTH __MSABI_LONG(0x00400000)
800 #define SQL_FN_STR_POSITION __MSABI_LONG(0x00800000)
803 #if (ODBCVER >= 0x0300)
804 #define SQL_SSF_CONVERT __MSABI_LONG(0x00000001)
805 #define SQL_SSF_LOWER __MSABI_LONG(0x00000002)
806 #define SQL_SSF_UPPER __MSABI_LONG(0x00000004)
807 #define SQL_SSF_SUBSTRING __MSABI_LONG(0x00000008)
808 #define SQL_SSF_TRANSLATE __MSABI_LONG(0x00000010)
809 #define SQL_SSF_TRIM_BOTH __MSABI_LONG(0x00000020)
810 #define SQL_SSF_TRIM_LEADING __MSABI_LONG(0x00000040)
811 #define SQL_SSF_TRIM_TRAILING __MSABI_LONG(0x00000080)
814 #define SQL_FN_NUM_ABS __MSABI_LONG(0x00000001)
815 #define SQL_FN_NUM_ACOS __MSABI_LONG(0x00000002)
816 #define SQL_FN_NUM_ASIN __MSABI_LONG(0x00000004)
817 #define SQL_FN_NUM_ATAN __MSABI_LONG(0x00000008)
818 #define SQL_FN_NUM_ATAN2 __MSABI_LONG(0x00000010)
819 #define SQL_FN_NUM_CEILING __MSABI_LONG(0x00000020)
820 #define SQL_FN_NUM_COS __MSABI_LONG(0x00000040)
821 #define SQL_FN_NUM_COT __MSABI_LONG(0x00000080)
822 #define SQL_FN_NUM_EXP __MSABI_LONG(0x00000100)
823 #define SQL_FN_NUM_FLOOR __MSABI_LONG(0x00000200)
824 #define SQL_FN_NUM_LOG __MSABI_LONG(0x00000400)
825 #define SQL_FN_NUM_MOD __MSABI_LONG(0x00000800)
826 #define SQL_FN_NUM_SIGN __MSABI_LONG(0x00001000)
827 #define SQL_FN_NUM_SIN __MSABI_LONG(0x00002000)
828 #define SQL_FN_NUM_SQRT __MSABI_LONG(0x00004000)
829 #define SQL_FN_NUM_TAN __MSABI_LONG(0x00008000)
830 #define SQL_FN_NUM_PI __MSABI_LONG(0x00010000)
831 #define SQL_FN_NUM_RAND __MSABI_LONG(0x00020000)
832 #define SQL_FN_NUM_DEGREES __MSABI_LONG(0x00040000)
833 #define SQL_FN_NUM_LOG10 __MSABI_LONG(0x00080000)
834 #define SQL_FN_NUM_POWER __MSABI_LONG(0x00100000)
835 #define SQL_FN_NUM_RADIANS __MSABI_LONG(0x00200000)
836 #define SQL_FN_NUM_ROUND __MSABI_LONG(0x00400000)
837 #define SQL_FN_NUM_TRUNCATE __MSABI_LONG(0x00800000)
839 #if (ODBCVER >= 0x0300)
840 #define SQL_SNVF_BIT_LENGTH __MSABI_LONG(0x00000001)
841 #define SQL_SNVF_CHAR_LENGTH __MSABI_LONG(0x00000002)
842 #define SQL_SNVF_CHARACTER_LENGTH __MSABI_LONG(0x00000004)
843 #define SQL_SNVF_EXTRACT __MSABI_LONG(0x00000008)
844 #define SQL_SNVF_OCTET_LENGTH __MSABI_LONG(0x00000010)
845 #define SQL_SNVF_POSITION __MSABI_LONG(0x00000020)
848 #define SQL_FN_TD_NOW __MSABI_LONG(0x00000001)
849 #define SQL_FN_TD_CURDATE __MSABI_LONG(0x00000002)
850 #define SQL_FN_TD_DAYOFMONTH __MSABI_LONG(0x00000004)
851 #define SQL_FN_TD_DAYOFWEEK __MSABI_LONG(0x00000008)
852 #define SQL_FN_TD_DAYOFYEAR __MSABI_LONG(0x00000010)
853 #define SQL_FN_TD_MONTH __MSABI_LONG(0x00000020)
854 #define SQL_FN_TD_QUARTER __MSABI_LONG(0x00000040)
855 #define SQL_FN_TD_WEEK __MSABI_LONG(0x00000080)
856 #define SQL_FN_TD_YEAR __MSABI_LONG(0x00000100)
857 #define SQL_FN_TD_CURTIME __MSABI_LONG(0x00000200)
858 #define SQL_FN_TD_HOUR __MSABI_LONG(0x00000400)
859 #define SQL_FN_TD_MINUTE __MSABI_LONG(0x00000800)
860 #define SQL_FN_TD_SECOND __MSABI_LONG(0x00001000)
861 #define SQL_FN_TD_TIMESTAMPADD __MSABI_LONG(0x00002000)
862 #define SQL_FN_TD_TIMESTAMPDIFF __MSABI_LONG(0x00004000)
863 #define SQL_FN_TD_DAYNAME __MSABI_LONG(0x00008000)
864 #define SQL_FN_TD_MONTHNAME __MSABI_LONG(0x00010000)
865 #if (ODBCVER >= 0x0300)
866 #define SQL_FN_TD_CURRENT_DATE __MSABI_LONG(0x00020000)
867 #define SQL_FN_TD_CURRENT_TIME __MSABI_LONG(0x00040000)
868 #define SQL_FN_TD_CURRENT_TIMESTAMP __MSABI_LONG(0x00080000)
869 #define SQL_FN_TD_EXTRACT __MSABI_LONG(0x00100000)
872 #if (ODBCVER >= 0x0300)
873 #define SQL_SDF_CURRENT_DATE __MSABI_LONG(0x00000001)
874 #define SQL_SDF_CURRENT_TIME __MSABI_LONG(0x00000002)
875 #define SQL_SDF_CURRENT_TIMESTAMP __MSABI_LONG(0x00000004)
878 #define SQL_FN_SYS_USERNAME __MSABI_LONG(0x00000001)
879 #define SQL_FN_SYS_DBNAME __MSABI_LONG(0x00000002)
880 #define SQL_FN_SYS_IFNULL __MSABI_LONG(0x00000004)
882 #define SQL_FN_TSI_FRAC_SECOND __MSABI_LONG(0x00000001)
883 #define SQL_FN_TSI_SECOND __MSABI_LONG(0x00000002)
884 #define SQL_FN_TSI_MINUTE __MSABI_LONG(0x00000004)
885 #define SQL_FN_TSI_HOUR __MSABI_LONG(0x00000008)
886 #define SQL_FN_TSI_DAY __MSABI_LONG(0x00000010)
887 #define SQL_FN_TSI_WEEK __MSABI_LONG(0x00000020)
888 #define SQL_FN_TSI_MONTH __MSABI_LONG(0x00000040)
889 #define SQL_FN_TSI_QUARTER __MSABI_LONG(0x00000080)
890 #define SQL_FN_TSI_YEAR __MSABI_LONG(0x00000100)
892 #if (ODBCVER >= 0x0300)
893 #define SQL_CA1_NEXT __MSABI_LONG(0x00000001)
894 #define SQL_CA1_ABSOLUTE __MSABI_LONG(0x00000002)
895 #define SQL_CA1_RELATIVE __MSABI_LONG(0x00000004)
896 #define SQL_CA1_BOOKMARK __MSABI_LONG(0x00000008)
898 #define SQL_CA1_LOCK_NO_CHANGE __MSABI_LONG(0x00000040)
899 #define SQL_CA1_LOCK_EXCLUSIVE __MSABI_LONG(0x00000080)
900 #define SQL_CA1_LOCK_UNLOCK __MSABI_LONG(0x00000100)
902 #define SQL_CA1_POS_POSITION __MSABI_LONG(0x00000200)
903 #define SQL_CA1_POS_UPDATE __MSABI_LONG(0x00000400)
904 #define SQL_CA1_POS_DELETE __MSABI_LONG(0x00000800)
905 #define SQL_CA1_POS_REFRESH __MSABI_LONG(0x00001000)
907 #define SQL_CA1_POSITIONED_UPDATE __MSABI_LONG(0x00002000)
908 #define SQL_CA1_POSITIONED_DELETE __MSABI_LONG(0x00004000)
909 #define SQL_CA1_SELECT_FOR_UPDATE __MSABI_LONG(0x00008000)
911 #define SQL_CA1_BULK_ADD __MSABI_LONG(0x00010000)
912 #define SQL_CA1_BULK_UPDATE_BY_BOOKMARK __MSABI_LONG(0x00020000)
913 #define SQL_CA1_BULK_DELETE_BY_BOOKMARK __MSABI_LONG(0x00040000)
914 #define SQL_CA1_BULK_FETCH_BY_BOOKMARK __MSABI_LONG(0x00080000)
917 #if (ODBCVER >= 0x0300)
918 #define SQL_CA2_READ_ONLY_CONCURRENCY __MSABI_LONG(0x00000001)
919 #define SQL_CA2_LOCK_CONCURRENCY __MSABI_LONG(0x00000002)
920 #define SQL_CA2_OPT_ROWVER_CONCURRENCY __MSABI_LONG(0x00000004)
921 #define SQL_CA2_OPT_VALUES_CONCURRENCY __MSABI_LONG(0x00000008)
923 #define SQL_CA2_SENSITIVITY_ADDITIONS __MSABI_LONG(0x00000010)
924 #define SQL_CA2_SENSITIVITY_DELETIONS __MSABI_LONG(0x00000020)
925 #define SQL_CA2_SENSITIVITY_UPDATES __MSABI_LONG(0x00000040)
927 #define SQL_CA2_MAX_ROWS_SELECT __MSABI_LONG(0x00000080)
928 #define SQL_CA2_MAX_ROWS_INSERT __MSABI_LONG(0x00000100)
929 #define SQL_CA2_MAX_ROWS_DELETE __MSABI_LONG(0x00000200)
930 #define SQL_CA2_MAX_ROWS_UPDATE __MSABI_LONG(0x00000400)
931 #define SQL_CA2_MAX_ROWS_CATALOG __MSABI_LONG(0x00000800)
932 #define SQL_CA2_MAX_ROWS_AFFECTS_ALL (SQL_CA2_MAX_ROWS_SELECT | SQL_CA2_MAX_ROWS_INSERT | SQL_CA2_MAX_ROWS_DELETE | SQL_CA2_MAX_ROWS_UPDATE | SQL_CA2_MAX_ROWS_CATALOG)
934 #define SQL_CA2_CRC_EXACT __MSABI_LONG(0x00001000)
935 #define SQL_CA2_CRC_APPROXIMATE __MSABI_LONG(0x00002000)
937 #define SQL_CA2_SIMULATE_NON_UNIQUE __MSABI_LONG(0x00004000)
938 #define SQL_CA2_SIMULATE_TRY_UNIQUE __MSABI_LONG(0x00008000)
939 #define SQL_CA2_SIMULATE_UNIQUE __MSABI_LONG(0x00010000)
942 #define SQL_OAC_NONE 0x0000
943 #define SQL_OAC_LEVEL1 0x0001
944 #define SQL_OAC_LEVEL2 0x0002
946 #define SQL_OSCC_NOT_COMPLIANT 0x0000
947 #define SQL_OSCC_COMPLIANT 0x0001
949 #define SQL_OSC_MINIMUM 0x0000
950 #define SQL_OSC_CORE 0x0001
951 #define SQL_OSC_EXTENDED 0x0002
953 #define SQL_CB_NULL 0x0000
954 #define SQL_CB_NON_NULL 0x0001
956 #define SQL_SO_FORWARD_ONLY __MSABI_LONG(0x00000001)
957 #define SQL_SO_KEYSET_DRIVEN __MSABI_LONG(0x00000002)
958 #define SQL_SO_DYNAMIC __MSABI_LONG(0x00000004)
959 #define SQL_SO_MIXED __MSABI_LONG(0x00000008)
960 #define SQL_SO_STATIC __MSABI_LONG(0x00000010)
962 #define SQL_FD_FETCH_BOOKMARK __MSABI_LONG(0x00000080)
964 #define SQL_CN_NONE 0x0000
965 #define SQL_CN_DIFFERENT 0x0001
966 #define SQL_CN_ANY 0x0002
968 #define SQL_NNC_NULL 0x0000
969 #define SQL_NNC_NON_NULL 0x0001
971 #define SQL_NC_START 0x0002
972 #define SQL_NC_END 0x0004
974 #define SQL_FILE_NOT_SUPPORTED 0x0000
975 #define SQL_FILE_TABLE 0x0001
976 #define SQL_FILE_QUALIFIER 0x0002
977 #define SQL_FILE_CATALOG SQL_FILE_QUALIFIER
979 #define SQL_GD_BLOCK __MSABI_LONG(0x00000004)
980 #define SQL_GD_BOUND __MSABI_LONG(0x00000008)
982 #define SQL_PS_POSITIONED_DELETE __MSABI_LONG(0x00000001)
983 #define SQL_PS_POSITIONED_UPDATE __MSABI_LONG(0x00000002)
984 #define SQL_PS_SELECT_FOR_UPDATE __MSABI_LONG(0x00000004)
986 #define SQL_GB_NOT_SUPPORTED 0x0000
987 #define SQL_GB_GROUP_BY_EQUALS_SELECT 0x0001
988 #define SQL_GB_GROUP_BY_CONTAINS_SELECT 0x0002
989 #define SQL_GB_NO_RELATION 0x0003
990 #if (ODBCVER >= 0x0300)
991 #define SQL_GB_COLLATE 0x0004
995 #define SQL_OU_DML_STATEMENTS __MSABI_LONG(0x00000001)
996 #define SQL_OU_PROCEDURE_INVOCATION __MSABI_LONG(0x00000002)
997 #define SQL_OU_TABLE_DEFINITION __MSABI_LONG(0x00000004)
998 #define SQL_OU_INDEX_DEFINITION __MSABI_LONG(0x00000008)
999 #define SQL_OU_PRIVILEGE_DEFINITION __MSABI_LONG(0x00000010)
1001 #if (ODBCVER >= 0x0300)
1002 #define SQL_SU_DML_STATEMENTS SQL_OU_DML_STATEMENTS
1003 #define SQL_SU_PROCEDURE_INVOCATION SQL_OU_PROCEDURE_INVOCATION
1004 #define SQL_SU_TABLE_DEFINITION SQL_OU_TABLE_DEFINITION
1005 #define SQL_SU_INDEX_DEFINITION SQL_OU_INDEX_DEFINITION
1006 #define SQL_SU_PRIVILEGE_DEFINITION SQL_OU_PRIVILEGE_DEFINITION
1009 #define SQL_QU_DML_STATEMENTS __MSABI_LONG(0x00000001)
1010 #define SQL_QU_PROCEDURE_INVOCATION __MSABI_LONG(0x00000002)
1011 #define SQL_QU_TABLE_DEFINITION __MSABI_LONG(0x00000004)
1012 #define SQL_QU_INDEX_DEFINITION __MSABI_LONG(0x00000008)
1013 #define SQL_QU_PRIVILEGE_DEFINITION __MSABI_LONG(0x00000010)
1015 #if (ODBCVER >= 0x0300)
1016 #define SQL_CU_DML_STATEMENTS SQL_QU_DML_STATEMENTS
1017 #define SQL_CU_PROCEDURE_INVOCATION SQL_QU_PROCEDURE_INVOCATION
1018 #define SQL_CU_TABLE_DEFINITION SQL_QU_TABLE_DEFINITION
1019 #define SQL_CU_INDEX_DEFINITION SQL_QU_INDEX_DEFINITION
1020 #define SQL_CU_PRIVILEGE_DEFINITION SQL_QU_PRIVILEGE_DEFINITION
1023 #define SQL_SQ_COMPARISON __MSABI_LONG(0x00000001)
1024 #define SQL_SQ_EXISTS __MSABI_LONG(0x00000002)
1025 #define SQL_SQ_IN __MSABI_LONG(0x00000004)
1026 #define SQL_SQ_QUANTIFIED __MSABI_LONG(0x00000008)
1027 #define SQL_SQ_CORRELATED_SUBQUERIES __MSABI_LONG(0x00000010)
1029 #define SQL_U_UNION __MSABI_LONG(0x00000001)
1030 #define SQL_U_UNION_ALL __MSABI_LONG(0x00000002)
1032 #define SQL_BP_CLOSE __MSABI_LONG(0x00000001)
1033 #define SQL_BP_DELETE __MSABI_LONG(0x00000002)
1034 #define SQL_BP_DROP __MSABI_LONG(0x00000004)
1035 #define SQL_BP_TRANSACTION __MSABI_LONG(0x00000008)
1036 #define SQL_BP_UPDATE __MSABI_LONG(0x00000010)
1037 #define SQL_BP_OTHER_HSTMT __MSABI_LONG(0x00000020)
1038 #define SQL_BP_SCROLL __MSABI_LONG(0x00000040)
1040 #define SQL_SS_ADDITIONS __MSABI_LONG(0x00000001)
1041 #define SQL_SS_DELETIONS __MSABI_LONG(0x00000002)
1042 #define SQL_SS_UPDATES __MSABI_LONG(0x00000004)
1044 #define SQL_CV_CREATE_VIEW __MSABI_LONG(0x00000001)
1045 #define SQL_CV_CHECK_OPTION __MSABI_LONG(0x00000002)
1046 #define SQL_CV_CASCADED __MSABI_LONG(0x00000004)
1047 #define SQL_CV_LOCAL __MSABI_LONG(0x00000008)
1049 #define SQL_LCK_NO_CHANGE __MSABI_LONG(0x00000001)
1050 #define SQL_LCK_EXCLUSIVE __MSABI_LONG(0x00000002)
1051 #define SQL_LCK_UNLOCK __MSABI_LONG(0x00000004)
1053 #define SQL_POS_POSITION __MSABI_LONG(0x00000001)
1054 #define SQL_POS_REFRESH __MSABI_LONG(0x00000002)
1055 #define SQL_POS_UPDATE __MSABI_LONG(0x00000004)
1056 #define SQL_POS_DELETE __MSABI_LONG(0x00000008)
1057 #define SQL_POS_ADD __MSABI_LONG(0x00000010)
1059 #define SQL_QL_START 0x0001
1060 #define SQL_QL_END 0x0002
1062 #if (ODBCVER >= 0x0300)
1063 #define SQL_AF_AVG __MSABI_LONG(0x00000001)
1064 #define SQL_AF_COUNT __MSABI_LONG(0x00000002)
1065 #define SQL_AF_MAX __MSABI_LONG(0x00000004)
1066 #define SQL_AF_MIN __MSABI_LONG(0x00000008)
1067 #define SQL_AF_SUM __MSABI_LONG(0x00000010)
1068 #define SQL_AF_DISTINCT __MSABI_LONG(0x00000020)
1069 #define SQL_AF_ALL __MSABI_LONG(0x00000040)
1071 #define SQL_SC_SQL92_ENTRY __MSABI_LONG(0x00000001)
1072 #define SQL_SC_FIPS127_2_TRANSITIONAL __MSABI_LONG(0x00000002)
1073 #define SQL_SC_SQL92_INTERMEDIATE __MSABI_LONG(0x00000004)
1074 #define SQL_SC_SQL92_FULL __MSABI_LONG(0x00000008)
1076 #define SQL_DL_SQL92_DATE __MSABI_LONG(0x00000001)
1077 #define SQL_DL_SQL92_TIME __MSABI_LONG(0x00000002)
1078 #define SQL_DL_SQL92_TIMESTAMP __MSABI_LONG(0x00000004)
1079 #define SQL_DL_SQL92_INTERVAL_YEAR __MSABI_LONG(0x00000008)
1080 #define SQL_DL_SQL92_INTERVAL_MONTH __MSABI_LONG(0x00000010)
1081 #define SQL_DL_SQL92_INTERVAL_DAY __MSABI_LONG(0x00000020)
1082 #define SQL_DL_SQL92_INTERVAL_HOUR __MSABI_LONG(0x00000040)
1083 #define SQL_DL_SQL92_INTERVAL_MINUTE __MSABI_LONG(0x00000080)
1084 #define SQL_DL_SQL92_INTERVAL_SECOND __MSABI_LONG(0x00000100)
1085 #define SQL_DL_SQL92_INTERVAL_YEAR_TO_MONTH __MSABI_LONG(0x00000200)
1086 #define SQL_DL_SQL92_INTERVAL_DAY_TO_HOUR __MSABI_LONG(0x00000400)
1087 #define SQL_DL_SQL92_INTERVAL_DAY_TO_MINUTE __MSABI_LONG(0x00000800)
1088 #define SQL_DL_SQL92_INTERVAL_DAY_TO_SECOND __MSABI_LONG(0x00001000)
1089 #define SQL_DL_SQL92_INTERVAL_HOUR_TO_MINUTE __MSABI_LONG(0x00002000)
1090 #define SQL_DL_SQL92_INTERVAL_HOUR_TO_SECOND __MSABI_LONG(0x00004000)
1091 #define SQL_DL_SQL92_INTERVAL_MINUTE_TO_SECOND __MSABI_LONG(0x00008000)
1093 #define SQL_CL_START SQL_QL_START
1094 #define SQL_CL_END SQL_QL_END
1096 #define SQL_BRC_PROCEDURES 0x0000001
1097 #define SQL_BRC_EXPLICIT 0x0000002
1098 #define SQL_BRC_ROLLED_UP 0x0000004
1100 #define SQL_BS_SELECT_EXPLICIT __MSABI_LONG(0x00000001)
1101 #define SQL_BS_ROW_COUNT_EXPLICIT __MSABI_LONG(0x00000002)
1102 #define SQL_BS_SELECT_PROC __MSABI_LONG(0x00000004)
1103 #define SQL_BS_ROW_COUNT_PROC __MSABI_LONG(0x00000008)
1105 #define SQL_PARC_BATCH 1
1106 #define SQL_PARC_NO_BATCH 2
1108 #define SQL_PAS_BATCH 1
1109 #define SQL_PAS_NO_BATCH 2
1110 #define SQL_PAS_NO_SELECT 3
1112 #define SQL_IK_NONE __MSABI_LONG(0x00000000)
1113 #define SQL_IK_ASC __MSABI_LONG(0x00000001)
1114 #define SQL_IK_DESC __MSABI_LONG(0x00000002)
1115 #define SQL_IK_ALL (SQL_IK_ASC | SQL_IK_DESC)
1117 #define SQL_ISV_ASSERTIONS __MSABI_LONG(0x00000001)
1118 #define SQL_ISV_CHARACTER_SETS __MSABI_LONG(0x00000002)
1119 #define SQL_ISV_CHECK_CONSTRAINTS __MSABI_LONG(0x00000004)
1120 #define SQL_ISV_COLLATIONS __MSABI_LONG(0x00000008)
1121 #define SQL_ISV_COLUMN_DOMAIN_USAGE __MSABI_LONG(0x00000010)
1122 #define SQL_ISV_COLUMN_PRIVILEGES __MSABI_LONG(0x00000020)
1123 #define SQL_ISV_COLUMNS __MSABI_LONG(0x00000040)
1124 #define SQL_ISV_CONSTRAINT_COLUMN_USAGE __MSABI_LONG(0x00000080)
1125 #define SQL_ISV_CONSTRAINT_TABLE_USAGE __MSABI_LONG(0x00000100)
1126 #define SQL_ISV_DOMAIN_CONSTRAINTS __MSABI_LONG(0x00000200)
1127 #define SQL_ISV_DOMAINS __MSABI_LONG(0x00000400)
1128 #define SQL_ISV_KEY_COLUMN_USAGE __MSABI_LONG(0x00000800)
1129 #define SQL_ISV_REFERENTIAL_CONSTRAINTS __MSABI_LONG(0x00001000)
1130 #define SQL_ISV_SCHEMATA __MSABI_LONG(0x00002000)
1131 #define SQL_ISV_SQL_LANGUAGES __MSABI_LONG(0x00004000)
1132 #define SQL_ISV_TABLE_CONSTRAINTS __MSABI_LONG(0x00008000)
1133 #define SQL_ISV_TABLE_PRIVILEGES __MSABI_LONG(0x00010000)
1134 #define SQL_ISV_TABLES __MSABI_LONG(0x00020000)
1135 #define SQL_ISV_TRANSLATIONS __MSABI_LONG(0x00040000)
1136 #define SQL_ISV_USAGE_PRIVILEGES __MSABI_LONG(0x00080000)
1137 #define SQL_ISV_VIEW_COLUMN_USAGE __MSABI_LONG(0x00100000)
1138 #define SQL_ISV_VIEW_TABLE_USAGE __MSABI_LONG(0x00200000)
1139 #define SQL_ISV_VIEWS __MSABI_LONG(0x00400000)
1141 #define SQL_AM_NONE 0
1142 #define SQL_AM_CONNECTION 1
1143 #define SQL_AM_STATEMENT 2
1145 #define SQL_AD_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00000001)
1146 #define SQL_AD_ADD_DOMAIN_CONSTRAINT __MSABI_LONG(0x00000002)
1147 #define SQL_AD_DROP_DOMAIN_CONSTRAINT __MSABI_LONG(0x00000004)
1148 #define SQL_AD_ADD_DOMAIN_DEFAULT __MSABI_LONG(0x00000008)
1149 #define SQL_AD_DROP_DOMAIN_DEFAULT __MSABI_LONG(0x00000010)
1150 #define SQL_AD_ADD_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000020)
1151 #define SQL_AD_ADD_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000040)
1152 #define SQL_AD_ADD_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000080)
1153 #define SQL_AD_ADD_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000100)
1155 #define SQL_CS_CREATE_SCHEMA __MSABI_LONG(0x00000001)
1156 #define SQL_CS_AUTHORIZATION __MSABI_LONG(0x00000002)
1157 #define SQL_CS_DEFAULT_CHARACTER_SET __MSABI_LONG(0x00000004)
1159 #define SQL_CTR_CREATE_TRANSLATION __MSABI_LONG(0x00000001)
1161 #define SQL_CA_CREATE_ASSERTION __MSABI_LONG(0x00000001)
1162 #define SQL_CA_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000010)
1163 #define SQL_CA_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000020)
1164 #define SQL_CA_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000040)
1165 #define SQL_CA_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000080)
1167 #define SQL_CCS_CREATE_CHARACTER_SET __MSABI_LONG(0x00000001)
1168 #define SQL_CCS_COLLATE_CLAUSE __MSABI_LONG(0x00000002)
1169 #define SQL_CCS_LIMITED_COLLATION __MSABI_LONG(0x00000004)
1171 #define SQL_CCOL_CREATE_COLLATION __MSABI_LONG(0x00000001)
1173 #define SQL_CDO_CREATE_DOMAIN __MSABI_LONG(0x00000001)
1174 #define SQL_CDO_DEFAULT __MSABI_LONG(0x00000002)
1175 #define SQL_CDO_CONSTRAINT __MSABI_LONG(0x00000004)
1176 #define SQL_CDO_COLLATION __MSABI_LONG(0x00000008)
1177 #define SQL_CDO_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00000010)
1178 #define SQL_CDO_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000020)
1179 #define SQL_CDO_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000040)
1180 #define SQL_CDO_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000080)
1181 #define SQL_CDO_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000100)
1183 #define SQL_CT_CREATE_TABLE __MSABI_LONG(0x00000001)
1184 #define SQL_CT_COMMIT_PRESERVE __MSABI_LONG(0x00000002)
1185 #define SQL_CT_COMMIT_DELETE __MSABI_LONG(0x00000004)
1186 #define SQL_CT_GLOBAL_TEMPORARY __MSABI_LONG(0x00000008)
1187 #define SQL_CT_LOCAL_TEMPORARY __MSABI_LONG(0x00000010)
1188 #define SQL_CT_CONSTRAINT_INITIALLY_DEFERRED __MSABI_LONG(0x00000020)
1189 #define SQL_CT_CONSTRAINT_INITIALLY_IMMEDIATE __MSABI_LONG(0x00000040)
1190 #define SQL_CT_CONSTRAINT_DEFERRABLE __MSABI_LONG(0x00000080)
1191 #define SQL_CT_CONSTRAINT_NON_DEFERRABLE __MSABI_LONG(0x00000100)
1192 #define SQL_CT_COLUMN_CONSTRAINT __MSABI_LONG(0x00000200)
1193 #define SQL_CT_COLUMN_DEFAULT __MSABI_LONG(0x00000400)
1194 #define SQL_CT_COLUMN_COLLATION __MSABI_LONG(0x00000800)
1195 #define SQL_CT_TABLE_CONSTRAINT __MSABI_LONG(0x00001000)
1196 #define SQL_CT_CONSTRAINT_NAME_DEFINITION __MSABI_LONG(0x00002000)
1198 #define SQL_DI_CREATE_INDEX __MSABI_LONG(0x00000001)
1199 #define SQL_DI_DROP_INDEX __MSABI_LONG(0x00000002)
1201 #define SQL_DC_DROP_COLLATION __MSABI_LONG(0x00000001)
1203 #define SQL_DD_DROP_DOMAIN __MSABI_LONG(0x00000001)
1204 #define SQL_DD_RESTRICT __MSABI_LONG(0x00000002)
1205 #define SQL_DD_CASCADE __MSABI_LONG(0x00000004)
1207 #define SQL_DS_DROP_SCHEMA __MSABI_LONG(0x00000001)
1208 #define SQL_DS_RESTRICT __MSABI_LONG(0x00000002)
1209 #define SQL_DS_CASCADE __MSABI_LONG(0x00000004)
1211 #define SQL_DCS_DROP_CHARACTER_SET __MSABI_LONG(0x00000001)
1213 #define SQL_DA_DROP_ASSERTION __MSABI_LONG(0x00000001)
1215 #define SQL_DT_DROP_TABLE __MSABI_LONG(0x00000001)
1216 #define SQL_DT_RESTRICT __MSABI_LONG(0x00000002)
1217 #define SQL_DT_CASCADE __MSABI_LONG(0x00000004)
1219 #define SQL_DTR_DROP_TRANSLATION __MSABI_LONG(0x00000001)
1221 #define SQL_DV_DROP_VIEW __MSABI_LONG(0x00000001)
1222 #define SQL_DV_RESTRICT __MSABI_LONG(0x00000002)
1223 #define SQL_DV_CASCADE __MSABI_LONG(0x00000004)
1225 #define SQL_IS_INSERT_LITERALS __MSABI_LONG(0x00000001)
1226 #define SQL_IS_INSERT_SEARCHED __MSABI_LONG(0x00000002)
1227 #define SQL_IS_SELECT_INTO __MSABI_LONG(0x00000004)
1229 #define SQL_OIC_CORE __MSABI_LONG(1U)
1230 #define SQL_OIC_LEVEL1 __MSABI_LONG(2U)
1231 #define SQL_OIC_LEVEL2 __MSABI_LONG(3U)
1233 #define SQL_SFKD_CASCADE __MSABI_LONG(0x00000001)
1234 #define SQL_SFKD_NO_ACTION __MSABI_LONG(0x00000002)
1235 #define SQL_SFKD_SET_DEFAULT __MSABI_LONG(0x00000004)
1236 #define SQL_SFKD_SET_NULL __MSABI_LONG(0x00000008)
1238 #define SQL_SFKU_CASCADE __MSABI_LONG(0x00000001)
1239 #define SQL_SFKU_NO_ACTION __MSABI_LONG(0x00000002)
1240 #define SQL_SFKU_SET_DEFAULT __MSABI_LONG(0x00000004)
1241 #define SQL_SFKU_SET_NULL __MSABI_LONG(0x00000008)
1243 #define SQL_SG_USAGE_ON_DOMAIN __MSABI_LONG(0x00000001)
1244 #define SQL_SG_USAGE_ON_CHARACTER_SET __MSABI_LONG(0x00000002)
1245 #define SQL_SG_USAGE_ON_COLLATION __MSABI_LONG(0x00000004)
1246 #define SQL_SG_USAGE_ON_TRANSLATION __MSABI_LONG(0x00000008)
1247 #define SQL_SG_WITH_GRANT_OPTION __MSABI_LONG(0x00000010)
1248 #define SQL_SG_DELETE_TABLE __MSABI_LONG(0x00000020)
1249 #define SQL_SG_INSERT_TABLE __MSABI_LONG(0x00000040)
1250 #define SQL_SG_INSERT_COLUMN __MSABI_LONG(0x00000080)
1251 #define SQL_SG_REFERENCES_TABLE __MSABI_LONG(0x00000100)
1252 #define SQL_SG_REFERENCES_COLUMN __MSABI_LONG(0x00000200)
1253 #define SQL_SG_SELECT_TABLE __MSABI_LONG(0x00000400)
1254 #define SQL_SG_UPDATE_TABLE __MSABI_LONG(0x00000800)
1255 #define SQL_SG_UPDATE_COLUMN __MSABI_LONG(0x00001000)
1257 #define SQL_SP_EXISTS __MSABI_LONG(0x00000001)
1258 #define SQL_SP_ISNOTNULL __MSABI_LONG(0x00000002)
1259 #define SQL_SP_ISNULL __MSABI_LONG(0x00000004)
1260 #define SQL_SP_MATCH_FULL __MSABI_LONG(0x00000008)
1261 #define SQL_SP_MATCH_PARTIAL __MSABI_LONG(0x00000010)
1262 #define SQL_SP_MATCH_UNIQUE_FULL __MSABI_LONG(0x00000020)
1263 #define SQL_SP_MATCH_UNIQUE_PARTIAL __MSABI_LONG(0x00000040)
1264 #define SQL_SP_OVERLAPS __MSABI_LONG(0x00000080)
1265 #define SQL_SP_UNIQUE __MSABI_LONG(0x00000100)
1266 #define SQL_SP_LIKE __MSABI_LONG(0x00000200)
1267 #define SQL_SP_IN __MSABI_LONG(0x00000400)
1268 #define SQL_SP_BETWEEN __MSABI_LONG(0x00000800)
1269 #define SQL_SP_COMPARISON __MSABI_LONG(0x00001000)
1270 #define SQL_SP_QUANTIFIED_COMPARISON __MSABI_LONG(0x00002000)
1272 #define SQL_SRJO_CORRESPONDING_CLAUSE __MSABI_LONG(0x00000001)
1273 #define SQL_SRJO_CROSS_JOIN __MSABI_LONG(0x00000002)
1274 #define SQL_SRJO_EXCEPT_JOIN __MSABI_LONG(0x00000004)
1275 #define SQL_SRJO_FULL_OUTER_JOIN __MSABI_LONG(0x00000008)
1276 #define SQL_SRJO_INNER_JOIN __MSABI_LONG(0x00000010)
1277 #define SQL_SRJO_INTERSECT_JOIN __MSABI_LONG(0x00000020)
1278 #define SQL_SRJO_LEFT_OUTER_JOIN __MSABI_LONG(0x00000040)
1279 #define SQL_SRJO_NATURAL_JOIN __MSABI_LONG(0x00000080)
1280 #define SQL_SRJO_RIGHT_OUTER_JOIN __MSABI_LONG(0x00000100)
1281 #define SQL_SRJO_UNION_JOIN __MSABI_LONG(0x00000200)
1283 #define SQL_SR_USAGE_ON_DOMAIN __MSABI_LONG(0x00000001)
1284 #define SQL_SR_USAGE_ON_CHARACTER_SET __MSABI_LONG(0x00000002)
1285 #define SQL_SR_USAGE_ON_COLLATION __MSABI_LONG(0x00000004)
1286 #define SQL_SR_USAGE_ON_TRANSLATION __MSABI_LONG(0x00000008)
1287 #define SQL_SR_GRANT_OPTION_FOR __MSABI_LONG(0x00000010)
1288 #define SQL_SR_CASCADE __MSABI_LONG(0x00000020)
1289 #define SQL_SR_RESTRICT __MSABI_LONG(0x00000040)
1290 #define SQL_SR_DELETE_TABLE __MSABI_LONG(0x00000080)
1291 #define SQL_SR_INSERT_TABLE __MSABI_LONG(0x00000100)
1292 #define SQL_SR_INSERT_COLUMN __MSABI_LONG(0x00000200)
1293 #define SQL_SR_REFERENCES_TABLE __MSABI_LONG(0x00000400)
1294 #define SQL_SR_REFERENCES_COLUMN __MSABI_LONG(0x00000800)
1295 #define SQL_SR_SELECT_TABLE __MSABI_LONG(0x00001000)
1296 #define SQL_SR_UPDATE_TABLE __MSABI_LONG(0x00002000)
1297 #define SQL_SR_UPDATE_COLUMN __MSABI_LONG(0x00004000)
1299 #define SQL_SRVC_VALUE_EXPRESSION __MSABI_LONG(0x00000001)
1300 #define SQL_SRVC_NULL __MSABI_LONG(0x00000002)
1301 #define SQL_SRVC_DEFAULT __MSABI_LONG(0x00000004)
1302 #define SQL_SRVC_ROW_SUBQUERY __MSABI_LONG(0x00000008)
1304 #define SQL_SVE_CASE __MSABI_LONG(0x00000001)
1305 #define SQL_SVE_CAST __MSABI_LONG(0x00000002)
1306 #define SQL_SVE_COALESCE __MSABI_LONG(0x00000004)
1307 #define SQL_SVE_NULLIF __MSABI_LONG(0x00000008)
1309 #define SQL_SCC_XOPEN_CLI_VERSION1 __MSABI_LONG(0x00000001)
1310 #define SQL_SCC_ISO92_CLI __MSABI_LONG(0x00000002)
1312 #define SQL_US_UNION SQL_U_UNION
1313 #define SQL_US_UNION_ALL SQL_U_UNION_ALL
1317 #define SQL_DTC_ENLIST_EXPENSIVE __MSABI_LONG(0x00000001)
1318 #define SQL_DTC_UNENLIST_EXPENSIVE __MSABI_LONG(0x00000002)
1320 #if (ODBCVER >= 0x0300)
1321 #define SQL_FETCH_FIRST_USER 31
1322 #define SQL_FETCH_FIRST_SYSTEM 32
1325 #define SQL_ENTIRE_ROWSET 0
1327 #define SQL_POSITION 0
1328 #define SQL_REFRESH 1
1329 #define SQL_UPDATE 2
1330 #define SQL_DELETE 3
1333 #define SQL_SETPOS_MAX_OPTION_VALUE SQL_ADD
1334 #if (ODBCVER >= 0x0300)
1335 #define SQL_UPDATE_BY_BOOKMARK 5
1336 #define SQL_DELETE_BY_BOOKMARK 6
1337 #define SQL_FETCH_BY_BOOKMARK 7
1341 #define SQL_LOCK_NO_CHANGE 0
1342 #define SQL_LOCK_EXCLUSIVE 1
1343 #define SQL_LOCK_UNLOCK 2
1345 #define SQL_SETPOS_MAX_LOCK_VALUE SQL_LOCK_UNLOCK
1347 #define SQL_POSITION_TO(hstmt,irow) SQLSetPos(hstmt,irow,SQL_POSITION,SQL_LOCK_NO_CHANGE)
1348 #define SQL_LOCK_RECORD(hstmt,irow,fLock) SQLSetPos(hstmt,irow,SQL_POSITION,fLock)
1349 #define SQL_REFRESH_RECORD(hstmt,irow,fLock) SQLSetPos(hstmt,irow,SQL_REFRESH,fLock)
1350 #define SQL_UPDATE_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_UPDATE,SQL_LOCK_NO_CHANGE)
1351 #define SQL_DELETE_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_DELETE,SQL_LOCK_NO_CHANGE)
1352 #define SQL_ADD_RECORD(hstmt,irow) SQLSetPos(hstmt,irow,SQL_ADD,SQL_LOCK_NO_CHANGE)
1354 #define SQL_BEST_ROWID 1
1355 #define SQL_ROWVER 2
1357 #define SQL_PC_NOT_PSEUDO 1
1360 #define SQL_ENSURE 1
1362 #define SQL_TABLE_STAT 0
1364 #if (ODBCVER >= 0x0300)
1365 #define SQL_ALL_CATALOGS "%"
1366 #define SQL_ALL_SCHEMAS "%"
1367 #define SQL_ALL_TABLE_TYPES "%"
1368 #endif /* ODBCVER >= 0x0300 */
1370 #define SQL_DRIVER_NOPROMPT 0
1371 #define SQL_DRIVER_COMPLETE 1
1372 #define SQL_DRIVER_PROMPT 2
1373 #define SQL_DRIVER_COMPLETE_REQUIRED 3
1375 SQLRETURN WINAPI
SQLDriverConnect(
1378 SQLCHAR
*szConnStrIn
,
1379 SQLSMALLINT cbConnStrIn
,
1380 SQLCHAR
*szConnStrOut
,
1381 SQLSMALLINT cbConnStrOutMax
,
1382 SQLSMALLINT
*pcbConnStrOut
,
1383 SQLUSMALLINT fDriverCompletion
);
1385 #define SQL_FETCH_BOOKMARK 8
1387 #define SQL_ROW_SUCCESS 0
1388 #define SQL_ROW_DELETED 1
1389 #define SQL_ROW_UPDATED 2
1390 #define SQL_ROW_NOROW 3
1391 #define SQL_ROW_ADDED 4
1392 #define SQL_ROW_ERROR 5
1393 #if (ODBCVER >= 0x0300)
1394 #define SQL_ROW_SUCCESS_WITH_INFO 6
1395 #define SQL_ROW_PROCEED 0
1396 #define SQL_ROW_IGNORE 1
1399 #if (ODBCVER >= 0x0300)
1400 #define SQL_PARAM_SUCCESS 0
1401 #define SQL_PARAM_SUCCESS_WITH_INFO 6
1402 #define SQL_PARAM_ERROR 5
1403 #define SQL_PARAM_UNUSED 7
1404 #define SQL_PARAM_DIAG_UNAVAILABLE 1
1406 #define SQL_PARAM_PROCEED 0
1407 #define SQL_PARAM_IGNORE 1
1410 #define SQL_CASCADE 0
1411 #define SQL_RESTRICT 1
1412 #define SQL_SET_NULL 2
1413 #if (ODBCVER >= 0x0250)
1414 #define SQL_NO_ACTION 3
1415 #define SQL_SET_DEFAULT 4
1418 #if (ODBCVER >= 0x0300)
1420 #define SQL_INITIALLY_DEFERRED 5
1421 #define SQL_INITIALLY_IMMEDIATE 6
1422 #define SQL_NOT_DEFERRABLE 7
1426 #define SQL_PARAM_TYPE_UNKNOWN 0
1427 #define SQL_PARAM_INPUT 1
1428 #define SQL_PARAM_INPUT_OUTPUT 2
1429 #define SQL_RESULT_COL 3
1430 #define SQL_PARAM_OUTPUT 4
1431 #define SQL_RETURN_VALUE 5
1433 #define SQL_PT_UNKNOWN 0
1434 #define SQL_PT_PROCEDURE 1
1435 #define SQL_PT_FUNCTION 2
1437 #define SQL_ODBC_KEYWORDS "ABSOLUTE,ACTION,ADA,ADD,ALL,ALLOCATE,ALTER,AND,ANY,ARE,AS,"
1439 SQLRETURN WINAPI
SQLBrowseConnect(
1441 SQLCHAR
*szConnStrIn
,
1442 SQLSMALLINT cbConnStrIn
,
1443 SQLCHAR
*szConnStrOut
,
1444 SQLSMALLINT cbConnStrOutMax
,
1445 SQLSMALLINT
*pcbConnStrOut
);
1447 #if (ODBCVER >= 0x0300)
1448 SQLRETURN WINAPI
SQLBulkOperations(
1449 SQLHSTMT StatementHandle
,
1450 SQLSMALLINT Operation
);
1453 SQLRETURN WINAPI
SQLColAttributes(
1456 SQLUSMALLINT fDescType
,
1458 SQLSMALLINT cbDescMax
,
1459 SQLSMALLINT
*pcbDesc
,
1462 SQLRETURN WINAPI
SQLColumnPrivileges(
1464 SQLCHAR
*szCatalogName
,
1465 SQLSMALLINT cbCatalogName
,
1466 SQLCHAR
*szSchemaName
,
1467 SQLSMALLINT cbSchemaName
,
1468 SQLCHAR
*szTableName
,
1469 SQLSMALLINT cbTableName
,
1470 SQLCHAR
*szColumnName
,
1471 SQLSMALLINT cbColumnName
);
1473 SQLRETURN WINAPI
SQLDescribeParam(
1476 SQLSMALLINT
*pfSqlType
,
1477 SQLULEN
*pcbParamDef
,
1478 SQLSMALLINT
*pibScale
,
1479 SQLSMALLINT
*pfNullable
);
1481 SQLRETURN WINAPI
SQLExtendedFetch(
1483 SQLUSMALLINT fFetchType
,
1486 SQLUSMALLINT
*rgfRowStatus
);
1488 SQLRETURN WINAPI
SQLForeignKeys(
1490 SQLCHAR
*szPkCatalogName
,
1491 SQLSMALLINT cbPkCatalogName
,
1492 SQLCHAR
*szPkSchemaName
,
1493 SQLSMALLINT cbPkSchemaName
,
1494 SQLCHAR
*szPkTableName
,
1495 SQLSMALLINT cbPkTableName
,
1496 SQLCHAR
*szFkCatalogName
,
1497 SQLSMALLINT cbFkCatalogName
,
1498 SQLCHAR
*szFkSchemaName
,
1499 SQLSMALLINT cbFkSchemaName
,
1500 SQLCHAR
*szFkTableName
,
1501 SQLSMALLINT cbFkTableName
);
1503 SQLRETURN WINAPI
SQLMoreResults(
1506 SQLRETURN WINAPI
SQLNativeSql(
1508 SQLCHAR
*szSqlStrIn
,
1509 SQLINTEGER cbSqlStrIn
,
1511 SQLINTEGER cbSqlStrMax
,
1512 SQLINTEGER
*pcbSqlStr
);
1514 SQLRETURN WINAPI
SQLNumParams(
1516 SQLSMALLINT
*pcpar
);
1518 SQLRETURN WINAPI
SQLParamOptions(
1523 SQLRETURN WINAPI
SQLPrimaryKeys(
1525 SQLCHAR
*szCatalogName
,
1526 SQLSMALLINT cbCatalogName
,
1527 SQLCHAR
*szSchemaName
,
1528 SQLSMALLINT cbSchemaName
,
1529 SQLCHAR
*szTableName
,
1530 SQLSMALLINT cbTableName
);
1532 SQLRETURN WINAPI
SQLProcedureColumns(
1534 SQLCHAR
*szCatalogName
,
1535 SQLSMALLINT cbCatalogName
,
1536 SQLCHAR
*szSchemaName
,
1537 SQLSMALLINT cbSchemaName
,
1538 SQLCHAR
*szProcName
,
1539 SQLSMALLINT cbProcName
,
1540 SQLCHAR
*szColumnName
,
1541 SQLSMALLINT cbColumnName
);
1543 SQLRETURN WINAPI
SQLProcedures(
1545 SQLCHAR
*szCatalogName
,
1546 SQLSMALLINT cbCatalogName
,
1547 SQLCHAR
*szSchemaName
,
1548 SQLSMALLINT cbSchemaName
,
1549 SQLCHAR
*szProcName
,
1550 SQLSMALLINT cbProcName
);
1552 SQLRETURN WINAPI
SQLSetPos(
1555 SQLUSMALLINT fOption
,
1556 SQLUSMALLINT fLock
);
1558 SQLRETURN WINAPI
SQLTablePrivileges(
1560 SQLCHAR
*szCatalogName
,
1561 SQLSMALLINT cbCatalogName
,
1562 SQLCHAR
*szSchemaName
,
1563 SQLSMALLINT cbSchemaName
,
1564 SQLCHAR
*szTableName
,
1565 SQLSMALLINT cbTableName
);
1567 SQLRETURN WINAPI
SQLDrivers(
1569 SQLUSMALLINT fDirection
,
1570 SQLCHAR
*szDriverDesc
,
1571 SQLSMALLINT cbDriverDescMax
,
1572 SQLSMALLINT
*pcbDriverDesc
,
1573 SQLCHAR
*szDriverAttributes
,
1574 SQLSMALLINT cbDrvrAttrMax
,
1575 SQLSMALLINT
*pcbDrvrAttr
);
1577 SQLRETURN WINAPI
SQLBindParameter(
1580 SQLSMALLINT fParamType
,
1582 SQLSMALLINT fSqlType
,
1584 SQLSMALLINT ibScale
,
1585 SQLPOINTER rgbValue
,
1590 #define SQLAllocHandle SQLAllocHandleStd
1591 #define SQLAllocEnv(phenv) SQLAllocHandleStd(SQL_HANDLE_ENV, SQL_NULL_HANDLE, phenv)
1593 #define SQL_YEAR SQL_CODE_YEAR
1594 #define SQL_MONTH SQL_CODE_MONTH
1595 #define SQL_DAY SQL_CODE_DAY
1596 #define SQL_HOUR SQL_CODE_HOUR
1597 #define SQL_MINUTE SQL_CODE_MINUTE
1598 #define SQL_SECOND SQL_CODE_SECOND
1599 #define SQL_YEAR_TO_MONTH SQL_CODE_YEAR_TO_MONTH
1600 #define SQL_DAY_TO_HOUR SQL_CODE_DAY_TO_HOUR
1601 #define SQL_DAY_TO_MINUTE SQL_CODE_DAY_TO_MINUTE
1602 #define SQL_DAY_TO_SECOND SQL_CODE_DAY_TO_SECOND
1603 #define SQL_HOUR_TO_MINUTE SQL_CODE_HOUR_TO_MINUTE
1604 #define SQL_HOUR_TO_SECOND SQL_CODE_HOUR_TO_SECOND
1605 #define SQL_MINUTE_TO_SECOND SQL_CODE_MINUTE_TO_SECOND
1608 #if (ODBCVER >= 0x0300)
1609 SQLRETURN WINAPI
SQLAllocHandleStd(
1610 SQLSMALLINT fHandleType
,
1612 SQLHANDLE
*phOutput
);
1615 #define SQL_DATABASE_NAME 16
1616 #define SQL_FD_FETCH_PREV SQL_FD_FETCH_PRIOR
1617 #define SQL_FETCH_PREV SQL_FETCH_PRIOR
1618 #define SQL_CONCUR_TIMESTAMP SQL_CONCUR_ROWVER
1619 #define SQL_SCCO_OPT_TIMESTAMP SQL_SCCO_OPT_ROWVER
1620 #define SQL_CC_DELETE SQL_CB_DELETE
1621 #define SQL_CR_DELETE SQL_CB_DELETE
1622 #define SQL_CC_CLOSE SQL_CB_CLOSE
1623 #define SQL_CR_CLOSE SQL_CB_CLOSE
1624 #define SQL_CC_PRESERVE SQL_CB_PRESERVE
1625 #define SQL_CR_PRESERVE SQL_CB_PRESERVE
1626 #define SQL_SCROLL_FORWARD_ONLY __MSABI_LONG(0)
1627 #define SQL_SCROLL_KEYSET_DRIVEN (__MSABI_LONG(-1))
1628 #define SQL_SCROLL_DYNAMIC (__MSABI_LONG(-2))
1629 #define SQL_SCROLL_STATIC (__MSABI_LONG(-3))
1631 SQLRETURN WINAPI
SQLSetScrollOptions(
1633 SQLUSMALLINT fConcurrency
,
1635 SQLUSMALLINT crowRowset
);
1637 #define TRACE_VERSION 1000
1639 RETCODE
TraceOpenLogFile(LPWSTR
,LPWSTR
,DWORD
);
1640 RETCODE
TraceCloseLogFile(void);
1641 VOID
TraceReturn(RETCODE
,RETCODE
);
1642 DWORD
TraceVersion(void);
1644 /*#define TRACE_ON __MSABI_LONG(0x00000001)*/
1645 #define TRACE_VS_EVENT_ON __MSABI_LONG(0x00000002)
1647 RETCODE
TraceVSControl(DWORD
);
1649 #define ODBC_VS_FLAG_UNICODE_ARG __MSABI_LONG(0x00000001)
1650 #define ODBC_VS_FLAG_UNICODE_COR __MSABI_LONG(0x00000002)
1651 #define ODBC_VS_FLAG_RETCODE __MSABI_LONG(0x00000004)
1652 #define ODBC_VS_FLAG_STOP __MSABI_LONG(0x00000008)
1654 typedef struct tagODBC_VS_ARGS
{
1655 const GUID
*pguidEvent
;
1662 WCHAR
*wszCorrelation
;
1663 CHAR
*szCorrelation
;
1666 } ODBC_VS_ARGS
, *PODBC_VS_ARGS
;
1668 VOID
FireVSDebugEvent(PODBC_VS_ARGS
);