1 | ' api_sql.sbp
|
---|
2 |
|
---|
3 | #ifndef _INC_SQL
|
---|
4 | #define _INC_SQL
|
---|
5 |
|
---|
6 |
|
---|
7 | /* API declaration data types */
|
---|
8 | TypeDef SQLCHAR = Byte
|
---|
9 | TypeDef SQLSCHAR = Char
|
---|
10 | TypeDef SQLDATE = Byte
|
---|
11 | TypeDef SQLDECIMAL = Byte
|
---|
12 | TypeDef SQLDOUBLE = Double
|
---|
13 | TypeDef SQLFLOAT = Double
|
---|
14 | TypeDef SQLINTEGER = Long
|
---|
15 | TypeDef SQLUINTEGER = DWord
|
---|
16 | TypeDef SQLSMALLINT = Integer
|
---|
17 | TypeDef SQLUSMALLINT = Word
|
---|
18 | #ifdef _WIN64
|
---|
19 | TypeDef SQLLEN = Int64
|
---|
20 | TypeDef SQLULEN = QWord
|
---|
21 | TypeDef SQLSETPOSIROW = QWord
|
---|
22 | #else
|
---|
23 | TypeDef SQLLEN = SQLINTEGER
|
---|
24 | TypeDef SQLULEN = SQLUINTEGER
|
---|
25 | TypeDef SQLSETPOSIROW = SQLUSMALLINT
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | 'For Backward compatibility
|
---|
29 | TypeDef SQLROWCOUNT = SQLULEN
|
---|
30 | TypeDef SQLROWSETSIZE = SQLULEN
|
---|
31 | TypeDef SQLTRANSID = SQLULEN
|
---|
32 | TypeDef SQLROWOFFSET = SQLLEN
|
---|
33 |
|
---|
34 | TypeDef SQLNUMERIC = Byte
|
---|
35 | TypeDef SQLPOINTER = VoidPtr
|
---|
36 | TypeDef SQLREAL = Single
|
---|
37 | TypeDef SQLSMALLINT = Integer
|
---|
38 | TypeDef SQLUSMALLINT = Word
|
---|
39 | TypeDef SQLTIME = Byte
|
---|
40 | TypeDef SQLTIMESTAMP = Byte
|
---|
41 | TypeDef SQLVARCHAR = Byte
|
---|
42 |
|
---|
43 | /* function return type */
|
---|
44 | TypeDef SQLRETURN = SQLSMALLINT
|
---|
45 |
|
---|
46 | /* generic data structures */
|
---|
47 | TypeDef SQLHANDLE = VoidPtr
|
---|
48 | TypeDef SQLHENV = SQLHANDLE
|
---|
49 | TypeDef SQLHDBC = SQLHANDLE
|
---|
50 | TypeDef SQLHSTMT = SQLHANDLE
|
---|
51 | TypeDef SQLHDESC = SQLHANDLE
|
---|
52 |
|
---|
53 |
|
---|
54 |
|
---|
55 | /* transfer types for DATE, TIME, TIMESTAMP */
|
---|
56 | Type DATE_STRUCT
|
---|
57 | year As SQLSMALLINT
|
---|
58 | month As SQLUSMALLINT
|
---|
59 | day As SQLUSMALLINT
|
---|
60 | End Type
|
---|
61 | TypeDef SQL_DATE_STRUCT = DATE_STRUCT
|
---|
62 |
|
---|
63 |
|
---|
64 | Type TIME_STRUCT
|
---|
65 | hour As SQLUSMALLINT
|
---|
66 | minute As SQLUSMALLINT
|
---|
67 | second As SQLUSMALLINT
|
---|
68 | End Type
|
---|
69 | TypeDef SQL_TIME_STRUCT = TIME_STRUCT
|
---|
70 |
|
---|
71 |
|
---|
72 | Type TIMESTAMP_STRUCT
|
---|
73 | year As SQLSMALLINT
|
---|
74 | month As SQLUSMALLINT
|
---|
75 | day As SQLUSMALLINT
|
---|
76 | hour As SQLUSMALLINT
|
---|
77 | minute As SQLUSMALLINT
|
---|
78 | second As SQLUSMALLINT
|
---|
79 | fraction As SQLUSMALLINT
|
---|
80 | End Type
|
---|
81 | TypeDef SQL_TIMESTAMP_STRUCT = TIMESTAMP_STRUCT
|
---|
82 |
|
---|
83 |
|
---|
84 | Const Enum SQLINTERVAL
|
---|
85 | SQL_IS_YEAR = 1
|
---|
86 | SQL_IS_MONTH = 2
|
---|
87 | SQL_IS_DAY = 3
|
---|
88 | SQL_IS_HOUR = 4
|
---|
89 | SQL_IS_MINUTE = 5
|
---|
90 | SQL_IS_SECOND = 6
|
---|
91 | SQL_IS_YEAR_TO_MONTH = 7
|
---|
92 | SQL_IS_DAY_TO_HOUR = 8
|
---|
93 | SQL_IS_DAY_TO_MINUTE = 9
|
---|
94 | SQL_IS_DAY_TO_SECOND = 10
|
---|
95 | SQL_IS_HOUR_TO_MINUTE = 11
|
---|
96 | SQL_IS_HOUR_TO_SECOND = 12
|
---|
97 | SQL_IS_MINUTE_TO_SECOND = 13
|
---|
98 | End Enum
|
---|
99 |
|
---|
100 |
|
---|
101 | Type SQL_YEAR_MONTH_STRUCT
|
---|
102 | year As SQLUINTEGER
|
---|
103 | month As SQLUINTEGER
|
---|
104 | End Type
|
---|
105 |
|
---|
106 | Type SQL_DAY_SECOND_STRUCT
|
---|
107 | day As SQLUINTEGER
|
---|
108 | hour As SQLUINTEGER
|
---|
109 | minute As SQLUINTEGER
|
---|
110 | second As SQLUINTEGER
|
---|
111 | fraction As SQLUINTEGER
|
---|
112 | End Type
|
---|
113 |
|
---|
114 | Type SQL_INTERVAL_STRUCT
|
---|
115 | interval_type As SQLINTERVAL
|
---|
116 | interval_sign As SQLSMALLINT
|
---|
117 |
|
---|
118 | 'Union intval
|
---|
119 | year_month As SQL_YEAR_MONTH_STRUCT
|
---|
120 | 'day_second As SQL_DAY_SECOND_STRUCT
|
---|
121 | 'End Union
|
---|
122 | End Type
|
---|
123 |
|
---|
124 |
|
---|
125 | Const SQL_MAX_NUMERIC_LEN = 16
|
---|
126 | Type SQL_NUMERIC_STRUCT
|
---|
127 | precision As SQLCHAR
|
---|
128 | scale As SQLSCHAR
|
---|
129 | sign As SQLCHAR
|
---|
130 | val[ELM(SQL_MAX_NUMERIC_LEN)] As SQLCHAR
|
---|
131 | End Type
|
---|
132 |
|
---|
133 |
|
---|
134 | TypeDef SQLGUID = GUID
|
---|
135 |
|
---|
136 | TypeDef BOOKMARK = SQLULEN
|
---|
137 |
|
---|
138 | typedef SQLWCHAR = Word
|
---|
139 | TypeDef SQLTCHAR = SQLCHAR
|
---|
140 |
|
---|
141 |
|
---|
142 |
|
---|
143 |
|
---|
144 | /* special length/indicator values */
|
---|
145 | Const SQL_NULL_DATA = (-1)
|
---|
146 | Const SQL_DATA_AT_EXEC = (-2)
|
---|
147 |
|
---|
148 |
|
---|
149 | /* return values from functions */
|
---|
150 | Const SQL_SUCCESS = 0
|
---|
151 | Const SQL_SUCCESS_WITH_INFO = 1
|
---|
152 | Const SQL_NO_DATA = 100
|
---|
153 | Const SQL_ERROR = (-1)
|
---|
154 | Const SQL_INVALID_HANDLE = (-2)
|
---|
155 |
|
---|
156 | Const SQL_STILL_EXECUTING = 2
|
---|
157 | Const SQL_NEED_DATA = 99
|
---|
158 |
|
---|
159 | /* test for SQL_SUCCESS or SQL_SUCCESS_WITH_INFO */
|
---|
160 | Const SQL_SUCCEEDED(rc) = (((rc) and (not 1))=0)
|
---|
161 |
|
---|
162 | /* flags for null-terminated string */
|
---|
163 | Const SQL_NTS = (-3)
|
---|
164 | Const SQL_NTSL = (-3)
|
---|
165 |
|
---|
166 | /* maximum message length */
|
---|
167 | Const SQL_MAX_MESSAGE_LENGTH = 512
|
---|
168 |
|
---|
169 | /* date/time length constants */
|
---|
170 | Const SQL_DATE_LEN = 10
|
---|
171 | Const SQL_TIME_LEN = 8 /* add P+1 if precision is nonzero */
|
---|
172 | Const SQL_TIMESTAMP_LEN = 19 /* add P+1 if precision is nonzero */
|
---|
173 |
|
---|
174 | /* handle type identifiers */
|
---|
175 | Const SQL_HANDLE_ENV = 1
|
---|
176 | Const SQL_HANDLE_DBC = 2
|
---|
177 | Const SQL_HANDLE_STMT = 3
|
---|
178 | Const SQL_HANDLE_DESC = 4
|
---|
179 |
|
---|
180 | /* environment attribute */
|
---|
181 | Const SQL_ATTR_OUTPUT_NTS = 10001
|
---|
182 |
|
---|
183 | /* connection attributes */
|
---|
184 | Const SQL_ATTR_AUTO_IPD = 10001
|
---|
185 | Const SQL_ATTR_METADATA_ID = 10014
|
---|
186 |
|
---|
187 | /* statement attributes */
|
---|
188 | Const SQL_ATTR_APP_ROW_DESC = 10010
|
---|
189 | Const SQL_ATTR_APP_PARAM_DESC = 10011
|
---|
190 | Const SQL_ATTR_IMP_ROW_DESC = 10012
|
---|
191 | Const SQL_ATTR_IMP_PARAM_DESC = 10013
|
---|
192 | Const SQL_ATTR_CURSOR_SCROLLABLE = (-1)
|
---|
193 | Const SQL_ATTR_CURSOR_SENSITIVITY = (-2)
|
---|
194 |
|
---|
195 | /* SQL_ATTR_CURSOR_SCROLLABLE values */
|
---|
196 | Const SQL_NONSCROLLABLE = 0
|
---|
197 | Const SQL_SCROLLABLE = 1
|
---|
198 |
|
---|
199 | /* identifiers of fields in the SQL descriptor */
|
---|
200 | Const SQL_DESC_COUNT = 1001
|
---|
201 | Const SQL_DESC_TYPE = 1002
|
---|
202 | Const SQL_DESC_LENGTH = 1003
|
---|
203 | Const SQL_DESC_OCTET_LENGTH_PTR = 1004
|
---|
204 | Const SQL_DESC_PRECISION = 1005
|
---|
205 | Const SQL_DESC_SCALE = 1006
|
---|
206 | Const SQL_DESC_DATETIME_INTERVAL_CODE = 1007
|
---|
207 | Const SQL_DESC_NULLABLE = 1008
|
---|
208 | Const SQL_DESC_INDICATOR_PTR = 1009
|
---|
209 | Const SQL_DESC_DATA_PTR = 1010
|
---|
210 | Const SQL_DESC_NAME = 1011
|
---|
211 | Const SQL_DESC_UNNAMED = 1012
|
---|
212 | Const SQL_DESC_OCTET_LENGTH = 1013
|
---|
213 | Const SQL_DESC_ALLOC_TYPE = 1099
|
---|
214 |
|
---|
215 | /* identifiers of fields in the diagnostics area */
|
---|
216 | Const SQL_DIAG_RETURNCODE = 1
|
---|
217 | Const SQL_DIAG_NUMBER = 2
|
---|
218 | Const SQL_DIAG_ROW_COUNT = 3
|
---|
219 | Const SQL_DIAG_SQLSTATE = 4
|
---|
220 | Const SQL_DIAG_NATIVE = 5
|
---|
221 | Const SQL_DIAG_MESSAGE_TEXT = 6
|
---|
222 | Const SQL_DIAG_DYNAMIC_FUNCTION = 7
|
---|
223 | Const SQL_DIAG_CLASS_ORIGIN = 8
|
---|
224 | Const SQL_DIAG_SUBCLASS_ORIGIN = 9
|
---|
225 | Const SQL_DIAG_CONNECTION_NAME = 10
|
---|
226 | Const SQL_DIAG_SERVER_NAME = 11
|
---|
227 | Const SQL_DIAG_DYNAMIC_FUNCTION_CODE = 12
|
---|
228 |
|
---|
229 | /* dynamic function codes */
|
---|
230 | Const SQL_DIAG_ALTER_DOMAIN = 3
|
---|
231 | Const SQL_DIAG_ALTER_TABLE = 4
|
---|
232 | Const SQL_DIAG_CALL = 7
|
---|
233 | Const SQL_DIAG_CREATE_ASSERTION = 6
|
---|
234 | Const SQL_DIAG_CREATE_CHARACTER_SET = 8
|
---|
235 | Const SQL_DIAG_CREATE_COLLATION = 10
|
---|
236 | Const SQL_DIAG_CREATE_DOMAIN = 23
|
---|
237 | Const SQL_DIAG_CREATE_INDEX = (-1)
|
---|
238 | Const SQL_DIAG_CREATE_SCHEMA = 64
|
---|
239 | Const SQL_DIAG_CREATE_TABLE = 77
|
---|
240 | Const SQL_DIAG_CREATE_TRANSLATION = 79
|
---|
241 | Const SQL_DIAG_CREATE_VIEW = 84
|
---|
242 | Const SQL_DIAG_DELETE_WHERE = 19
|
---|
243 | Const SQL_DIAG_DROP_ASSERTION = 24
|
---|
244 | Const SQL_DIAG_DROP_CHARACTER_SET = 25
|
---|
245 | Const SQL_DIAG_DROP_COLLATION = 26
|
---|
246 | Const SQL_DIAG_DROP_DOMAIN = 27
|
---|
247 | Const SQL_DIAG_DROP_INDEX = (-2)
|
---|
248 | Const SQL_DIAG_DROP_SCHEMA = 31
|
---|
249 | Const SQL_DIAG_DROP_TABLE = 32
|
---|
250 | Const SQL_DIAG_DROP_TRANSLATION = 33
|
---|
251 | Const SQL_DIAG_DROP_VIEW = 36
|
---|
252 | Const SQL_DIAG_DYNAMIC_DELETE_CURSOR = 38
|
---|
253 | Const SQL_DIAG_DYNAMIC_UPDATE_CURSOR = 81
|
---|
254 | Const SQL_DIAG_GRANT = 48
|
---|
255 | Const SQL_DIAG_INSERT = 50
|
---|
256 | Const SQL_DIAG_REVOKE = 59
|
---|
257 | Const SQL_DIAG_SELECT_CURSOR = 85
|
---|
258 | Const SQL_DIAG_UNKNOWN_STATEMENT = 0
|
---|
259 | Const SQL_DIAG_UPDATE_WHERE = 82
|
---|
260 |
|
---|
261 | /* SQL data type codes */
|
---|
262 | Const SQL_UNKNOWN_TYPE = 0
|
---|
263 | Const SQL_CHAR = 1
|
---|
264 | Const SQL_NUMERIC = 2
|
---|
265 | Const SQL_DECIMAL = 3
|
---|
266 | Const SQL_INTEGER = 4
|
---|
267 | Const SQL_SMALLINT = 5
|
---|
268 | Const SQL_FLOAT = 6
|
---|
269 | Const SQL_REAL = 7
|
---|
270 | Const SQL_DOUBLE = 8
|
---|
271 | Const SQL_DATETIME = 9
|
---|
272 | Const SQL_VARCHAR = 12
|
---|
273 |
|
---|
274 | /* One-parameter shortcuts for date/time data types */
|
---|
275 | Const SQL_TYPE_DATE = 91
|
---|
276 | Const SQL_TYPE_TIME = 92
|
---|
277 | Const SQL_TYPE_TIMESTAMP = 93
|
---|
278 |
|
---|
279 | /* Statement attribute values for cursor sensitivity */
|
---|
280 | Const SQL_UNSPECIFIED = 0
|
---|
281 | Const SQL_INSENSITIVE = 1
|
---|
282 | Const SQL_SENSITIVE = 2
|
---|
283 |
|
---|
284 | /* GetTypeInfo() request for all data types */
|
---|
285 | Const SQL_ALL_TYPES = 0
|
---|
286 |
|
---|
287 | /* Default conversion code for SQLBindCol(), SQLBindParam() and SQLGetData() */
|
---|
288 | Const SQL_DEFAULT = 99
|
---|
289 |
|
---|
290 | /* SQLSQLLEN GetData() code indicating that the application row descriptor
|
---|
291 | * specifies the data type
|
---|
292 | */
|
---|
293 | Const SQL_ARD_TYPE = (-99)
|
---|
294 |
|
---|
295 | /* SQL date/time type subcodes */
|
---|
296 | Const SQL_CODE_DATE = 1
|
---|
297 | Const SQL_CODE_TIME = 2
|
---|
298 | Const SQL_CODE_TIMESTAMP = 3
|
---|
299 |
|
---|
300 | /* CLI option values */
|
---|
301 | Const SQL_FALSE = 0
|
---|
302 | Const SQL_TRUE = 1
|
---|
303 |
|
---|
304 | /* values of NULLABLE field in descriptor */
|
---|
305 | Const SQL_NO_NULLS = 0
|
---|
306 | Const SQL_NULLABLE = 1
|
---|
307 |
|
---|
308 | /* Value returned by SQLGetTypeInfo() to denote that it is
|
---|
309 | * not known whether or not a data type supports null values.
|
---|
310 | */
|
---|
311 | Const SQL_NULLABLE_UNKNOWN = 2
|
---|
312 |
|
---|
313 | /* Values returned by SQLGetTypeInfo() to show WHERE clause
|
---|
314 | * supported
|
---|
315 | */
|
---|
316 | Const SQL_PRED_NONE = 0
|
---|
317 | Const SQL_PRED_CHAR = 1
|
---|
318 | Const SQL_PRED_BASIC = 2
|
---|
319 |
|
---|
320 | /* values of UNNAMED field in descriptor */
|
---|
321 | Const SQL_NAMED = 0
|
---|
322 | Const SQL_UNNAMED = 1
|
---|
323 |
|
---|
324 | /* values of ALLOC_TYPE field in descriptor */
|
---|
325 | Const SQL_DESC_ALLOC_AUTO = 1
|
---|
326 | Const SQL_DESC_ALLOC_USER = 2
|
---|
327 |
|
---|
328 | /* FreeStmt() options */
|
---|
329 | Const SQL_CLOSE = 0
|
---|
330 | Const SQL_DROP = 1
|
---|
331 | Const SQL_UNBIND = 2
|
---|
332 | Const SQL_RESET_PARAMS = 3
|
---|
333 |
|
---|
334 | /* Codes used for FetchOrientation in SQLFetchScroll(),
|
---|
335 | and in SQLDataSources()
|
---|
336 | */
|
---|
337 | Const SQL_FETCH_NEXT = 1
|
---|
338 | Const SQL_FETCH_FIRST = 2
|
---|
339 |
|
---|
340 | /* Other codes used for FetchOrientation in SQLFetchScroll() */
|
---|
341 | Const SQL_FETCH_LAST = 3
|
---|
342 | Const SQL_FETCH_PRIOR = 4
|
---|
343 | Const SQL_FETCH_ABSOLUTE = 5
|
---|
344 | Const SQL_FETCH_RELATIVE = 6
|
---|
345 |
|
---|
346 | /* SQLEndTran() options */
|
---|
347 | Const SQL_COMMIT = 0
|
---|
348 | Const SQL_ROLLBACK = 1
|
---|
349 |
|
---|
350 | /* null handles returned by SQLAllocHandle() */
|
---|
351 | Const SQL_NULL_HENV = 0
|
---|
352 | Const SQL_NULL_HDBC = 0
|
---|
353 | Const SQL_NULL_HSTMT = 0
|
---|
354 | Const SQL_NULL_HDESC = 0
|
---|
355 |
|
---|
356 | /* null handle used in place of parent handle when allocating HENV */
|
---|
357 | Const SQL_NULL_HANDLE = 0
|
---|
358 |
|
---|
359 | /* Values that may appear in the result set of SQLSpecialColumns() */
|
---|
360 | Const SQL_SCOPE_CURROW = 0
|
---|
361 | Const SQL_SCOPE_TRANSACTION = 1
|
---|
362 | Const SQL_SCOPE_SESSION = 2
|
---|
363 |
|
---|
364 | Const SQL_PC_UNKNOWN = 0
|
---|
365 | Const SQL_PC_NON_PSEUDO = 1
|
---|
366 | Const SQL_PC_PSEUDO = 2
|
---|
367 |
|
---|
368 | /* Reserved value for the IdentifierType argument of SQLSpecialColumns() */
|
---|
369 | Const SQL_ROW_IDENTIFIER = 1
|
---|
370 |
|
---|
371 | /* Reserved values for UNIQUE argument of SQLStatistics() */
|
---|
372 | Const SQL_INDEX_UNIQUE = 0
|
---|
373 | Const SQL_INDEX_ALL = 1
|
---|
374 |
|
---|
375 | /* Values that may appear in the result set of SQLStatistics() */
|
---|
376 | Const SQL_INDEX_CLUSTERED = 1
|
---|
377 | Const SQL_INDEX_HASHED = 2
|
---|
378 | Const SQL_INDEX_OTHER = 3
|
---|
379 |
|
---|
380 | /* SQLGetFunctions() values to identify ODBC APIs */
|
---|
381 | Const SQL_API_SQLALLOCCONNECT = 1
|
---|
382 | Const SQL_API_SQLALLOCENV = 2
|
---|
383 | Const SQL_API_SQLALLOCHANDLE = 1001
|
---|
384 | Const SQL_API_SQLALLOCSTMT = 3
|
---|
385 | Const SQL_API_SQLBINDCOL = 4
|
---|
386 | Const SQL_API_SQLBINDPARAM = 1002
|
---|
387 | Const SQL_API_SQLCANCEL = 5
|
---|
388 | Const SQL_API_SQLCLOSECURSOR = 1003
|
---|
389 | Const SQL_API_SQLCOLATTRIBUTE = 6
|
---|
390 | Const SQL_API_SQLCOLUMNS = 40
|
---|
391 | Const SQL_API_SQLCONNECT = 7
|
---|
392 | Const SQL_API_SQLCOPYDESC = 1004
|
---|
393 | Const SQL_API_SQLDATASOURCES = 57
|
---|
394 | Const SQL_API_SQLDESCRIBECOL = 8
|
---|
395 | Const SQL_API_SQLDISCONNECT = 9
|
---|
396 | Const SQL_API_SQLENDTRAN = 1005
|
---|
397 | Const SQL_API_SQLERROR = 10
|
---|
398 | Const SQL_API_SQLEXECDIRECT = 11
|
---|
399 | Const SQL_API_SQLEXECUTE = 12
|
---|
400 | Const SQL_API_SQLFETCH = 13
|
---|
401 | Const SQL_API_SQLFETCHSCROLL = 1021
|
---|
402 | Const SQL_API_SQLFREECONNECT = 14
|
---|
403 | Const SQL_API_SQLFREEENV = 15
|
---|
404 | Const SQL_API_SQLFREEHANDLE = 1006
|
---|
405 | Const SQL_API_SQLFREESTMT = 16
|
---|
406 | Const SQL_API_SQLGETCONNECTATTR = 1007
|
---|
407 | Const SQL_API_SQLGETCONNECTOPTION = 42
|
---|
408 | Const SQL_API_SQLGETCURSORNAME = 17
|
---|
409 | Const SQL_API_SQLGETDATA = 43
|
---|
410 | Const SQL_API_SQLGETDESCFIELD = 1008
|
---|
411 | Const SQL_API_SQLGETDESCREC = 1009
|
---|
412 | Const SQL_API_SQLGETDIAGFIELD = 1010
|
---|
413 | Const SQL_API_SQLGETDIAGREC = 1011
|
---|
414 | Const SQL_API_SQLGETENVATTR = 1012
|
---|
415 | Const SQL_API_SQLGETFUNCTIONS = 44
|
---|
416 | Const SQL_API_SQLGETINFO = 45
|
---|
417 | Const SQL_API_SQLGETSTMTATTR = 1014
|
---|
418 | Const SQL_API_SQLGETSTMTOPTION = 46
|
---|
419 | Const SQL_API_SQLGETTYPEINFO = 47
|
---|
420 | Const SQL_API_SQLNUMRESULTCOLS = 18
|
---|
421 | Const SQL_API_SQLPARAMDATA = 48
|
---|
422 | Const SQL_API_SQLPREPARE = 19
|
---|
423 | Const SQL_API_SQLPUTDATA = 49
|
---|
424 | Const SQL_API_SQLROWCOUNT = 20
|
---|
425 | Const SQL_API_SQLSETCONNECTATTR = 1016
|
---|
426 | Const SQL_API_SQLSETCONNECTOPTION = 50
|
---|
427 | Const SQL_API_SQLSETCURSORNAME = 21
|
---|
428 | Const SQL_API_SQLSETDESCFIELD = 1017
|
---|
429 | Const SQL_API_SQLSETDESCREC = 1018
|
---|
430 | Const SQL_API_SQLSETENVATTR = 1019
|
---|
431 | Const SQL_API_SQLSETPARAM = 22
|
---|
432 | Const SQL_API_SQLSETSTMTATTR = 1020
|
---|
433 | Const SQL_API_SQLSETSTMTOPTION = 51
|
---|
434 | Const SQL_API_SQLSPECIALCOLUMNS = 52
|
---|
435 | Const SQL_API_SQLSTATISTICS = 53
|
---|
436 | Const SQL_API_SQLTABLES = 54
|
---|
437 | Const SQL_API_SQLTRANSACT = 23
|
---|
438 |
|
---|
439 | /* Information requested by SQLGetInfo() */
|
---|
440 | Const SQL_MAX_DRIVER_CONNECTIONS = 0
|
---|
441 | Const SQL_MAXIMUM_DRIVER_CONNECTIONS = SQL_MAX_DRIVER_CONNECTIONS
|
---|
442 | Const SQL_MAX_CONCURRENT_ACTIVITIES = 1
|
---|
443 | Const SQL_MAXIMUM_CONCURRENT_ACTIVITIES = SQL_MAX_CONCURRENT_ACTIVITIES
|
---|
444 | Const SQL_DATA_SOURCE_NAME = 2
|
---|
445 | Const SQL_FETCH_DIRECTION = 8
|
---|
446 | Const SQL_SERVER_NAME = 13
|
---|
447 | Const SQL_SEARCH_PATTERN_ESCAPE = 14
|
---|
448 | Const SQL_DBMS_NAME = 17
|
---|
449 | Const SQL_DBMS_VER = 18
|
---|
450 | Const SQL_ACCESSIBLE_TABLES = 19
|
---|
451 | Const SQL_ACCESSIBLE_PROCEDURES = 20
|
---|
452 | Const SQL_CURSOR_COMMIT_BEHAVIOR = 23
|
---|
453 | Const SQL_DATA_SOURCE_READ_ONLY = 25
|
---|
454 | Const SQL_DEFAULT_TXN_ISOLATION = 26
|
---|
455 | Const SQL_IDENTIFIER_CASE = 28
|
---|
456 | Const SQL_IDENTIFIER_QUOTE_CHAR = 29
|
---|
457 | Const SQL_MAX_COLUMN_NAME_LEN = 30
|
---|
458 | Const SQL_MAXIMUM_COLUMN_NAME_LENGTH = SQL_MAX_COLUMN_NAME_LEN
|
---|
459 | Const SQL_MAX_CURSOR_NAME_LEN = 31
|
---|
460 | Const SQL_MAXIMUM_CURSOR_NAME_LENGTH = SQL_MAX_CURSOR_NAME_LEN
|
---|
461 | Const SQL_MAX_SCHEMA_NAME_LEN = 32
|
---|
462 | Const SQL_MAXIMUM_SCHEMA_NAME_LENGTH = SQL_MAX_SCHEMA_NAME_LEN
|
---|
463 | Const SQL_MAX_CATALOG_NAME_LEN = 34
|
---|
464 | Const SQL_MAXIMUM_CATALOG_NAME_LENGTH = SQL_MAX_CATALOG_NAME_LEN
|
---|
465 | Const SQL_MAX_TABLE_NAME_LEN = 35
|
---|
466 | Const SQL_SCROLL_CONCURRENCY = 43
|
---|
467 | Const SQL_TXN_CAPABLE = 46
|
---|
468 | Const SQL_TRANSACTION_CAPABLE = SQL_TXN_CAPABLE
|
---|
469 | Const SQL_USER_NAME = 47
|
---|
470 | Const SQL_TXN_ISOLATION_OPTION = 72
|
---|
471 | Const SQL_TRANSACTION_ISOLATION_OPTION = SQL_TXN_ISOLATION_OPTION
|
---|
472 | Const SQL_INTEGRITY = 73
|
---|
473 | Const SQL_GETDATA_EXTENSIONS = 81
|
---|
474 | Const SQL_NULL_COLLATION = 85
|
---|
475 | Const SQL_ALTER_TABLE = 86
|
---|
476 | Const SQL_ORDER_BY_COLUMNS_IN_SELECT = 90
|
---|
477 | Const SQL_SPECIAL_CHARACTERS = 94
|
---|
478 | Const SQL_MAX_COLUMNS_IN_GROUP_BY = 97
|
---|
479 | Const SQL_MAXIMUM_COLUMNS_IN_GROUP_BY = SQL_MAX_COLUMNS_IN_GROUP_BY
|
---|
480 | Const SQL_MAX_COLUMNS_IN_INDEX = 98
|
---|
481 | Const SQL_MAXIMUM_COLUMNS_IN_INDEX = SQL_MAX_COLUMNS_IN_INDEX
|
---|
482 | Const SQL_MAX_COLUMNS_IN_ORDER_BY = 99
|
---|
483 | Const SQL_MAXIMUM_COLUMNS_IN_ORDER_BY = SQL_MAX_COLUMNS_IN_ORDER_BY
|
---|
484 | Const SQL_MAX_COLUMNS_IN_SELECT = 100
|
---|
485 | Const SQL_MAXIMUM_COLUMNS_IN_SELECT = SQL_MAX_COLUMNS_IN_SELECT
|
---|
486 | Const SQL_MAX_COLUMNS_IN_TABLE = 101
|
---|
487 | Const SQL_MAX_INDEX_SIZE = 102
|
---|
488 | Const SQL_MAXIMUM_INDEX_SIZE = SQL_MAX_INDEX_SIZE
|
---|
489 | Const SQL_MAX_ROW_SIZE = 104
|
---|
490 | Const SQL_MAXIMUM_ROW_SIZE = SQL_MAX_ROW_SIZE
|
---|
491 | Const SQL_MAX_STATEMENT_LEN = 105
|
---|
492 | Const SQL_MAXIMUM_STATEMENT_LENGTH = SQL_MAX_STATEMENT_LEN
|
---|
493 | Const SQL_MAX_TABLES_IN_SELECT = 106
|
---|
494 | Const SQL_MAXIMUM_TABLES_IN_SELECT = SQL_MAX_TABLES_IN_SELECT
|
---|
495 | Const SQL_MAX_USER_NAME_LEN = 107
|
---|
496 | Const SQL_MAXIMUM_USER_NAME_LENGTH = SQL_MAX_USER_NAME_LEN
|
---|
497 | Const SQL_OJ_CAPABILITIES = 115
|
---|
498 | Const SQL_OUTER_JOIN_CAPABILITIES = SQL_OJ_CAPABILITIES
|
---|
499 |
|
---|
500 | Const SQL_XOPEN_CLI_YEAR = 10000
|
---|
501 | Const SQL_CURSOR_SENSITIVITY = 10001
|
---|
502 | Const SQL_DESCRIBE_PARAMETER = 10002
|
---|
503 | Const SQL_CATALOG_NAME = 10003
|
---|
504 | Const SQL_COLLATION_SEQ = 10004
|
---|
505 | Const SQL_MAX_IDENTIFIER_LEN = 10005
|
---|
506 | Const SQL_MAXIMUM_IDENTIFIER_LENGTH = SQL_MAX_IDENTIFIER_LEN
|
---|
507 |
|
---|
508 | /* SQL_ALTER_TABLE bitmasks */
|
---|
509 | Const SQL_AT_ADD_COLUMN = &H00000001
|
---|
510 | Const SQL_AT_DROP_COLUMN = &H00000002
|
---|
511 | Const SQL_AT_ADD_CONSTRAINT = &H00000008
|
---|
512 |
|
---|
513 | /* SQL_ASYNC_MODE values */
|
---|
514 | Const SQL_AM_NONE = 0
|
---|
515 | Const SQL_AM_CONNECTION = 1
|
---|
516 | Const SQL_AM_STATEMENT = 2
|
---|
517 |
|
---|
518 | /* SQL_CURSOR_COMMIT_BEHAVIOR values */
|
---|
519 | Const SQL_CB_DELETE = 0
|
---|
520 | Const SQL_CB_CLOSE = 1
|
---|
521 | Const SQL_CB_PRESERVE = 2
|
---|
522 |
|
---|
523 | /* SQL_FETCH_DIRECTION bitmasks */
|
---|
524 | Const SQL_FD_FETCH_NEXT = &H00000001
|
---|
525 | Const SQL_FD_FETCH_FIRST = &H00000002
|
---|
526 | Const SQL_FD_FETCH_LAST = &H00000004
|
---|
527 | Const SQL_FD_FETCH_PRIOR = &H00000008
|
---|
528 | Const SQL_FD_FETCH_ABSOLUTE = &H00000010
|
---|
529 | Const SQL_FD_FETCH_RELATIVE = &H00000020
|
---|
530 |
|
---|
531 | /* SQL_GETDATA_EXTENSIONS bitmasks */
|
---|
532 | Const SQL_GD_ANY_COLUMN = &H00000001
|
---|
533 | Const SQL_GD_ANY_ORDER = &H00000002
|
---|
534 |
|
---|
535 | /* SQL_IDENTIFIER_CASE values */
|
---|
536 | Const SQL_IC_UPPER = 1
|
---|
537 | Const SQL_IC_LOWER = 2
|
---|
538 | Const SQL_IC_SENSITIVE = 3
|
---|
539 | Const SQL_IC_MIXED = 4
|
---|
540 |
|
---|
541 | /* SQL_OJ_CAPABILITIES bitmasks */
|
---|
542 | /* NB: this means 'outer join', not what you may be thinking */
|
---|
543 |
|
---|
544 |
|
---|
545 | Const SQL_OJ_LEFT = &H00000001
|
---|
546 | Const SQL_OJ_RIGHT = &H00000002
|
---|
547 | Const SQL_OJ_FULL = &H00000004
|
---|
548 | Const SQL_OJ_NESTED = &H00000008
|
---|
549 | Const SQL_OJ_NOT_ORDERED = &H00000010
|
---|
550 | Const SQL_OJ_INNER = &H00000020
|
---|
551 | Const SQL_OJ_ALL_COMPARISON_OPS = &H00000040
|
---|
552 |
|
---|
553 | /* SQL_SCROLL_CONCURRENCY bitmasks */
|
---|
554 | Const SQL_SCCO_READ_ONLY = &H00000001
|
---|
555 | Const SQL_SCCO_LOCK = &H00000002
|
---|
556 | Const SQL_SCCO_OPT_ROWVER = &H00000004
|
---|
557 | Const SQL_SCCO_OPT_VALUES = &H00000008
|
---|
558 |
|
---|
559 | /* SQL_TXN_CAPABLE values */
|
---|
560 | Const SQL_TC_NONE = 0
|
---|
561 | Const SQL_TC_DML = 1
|
---|
562 | Const SQL_TC_ALL = 2
|
---|
563 | Const SQL_TC_DDL_COMMIT = 3
|
---|
564 | Const SQL_TC_DDL_IGNORE = 4
|
---|
565 |
|
---|
566 | /* SQL_TXN_ISOLATION_OPTION bitmasks */
|
---|
567 | Const SQL_TXN_READ_UNCOMMITTED = &H00000001
|
---|
568 | Const SQL_TRANSACTION_READ_UNCOMMITTED = SQL_TXN_READ_UNCOMMITTED
|
---|
569 | Const SQL_TXN_READ_COMMITTED = &H00000002
|
---|
570 | Const SQL_TRANSACTION_READ_COMMITTED = SQL_TXN_READ_COMMITTED
|
---|
571 | Const SQL_TXN_REPEATABLE_READ = &H00000004
|
---|
572 | Const SQL_TRANSACTION_REPEATABLE_READ = SQL_TXN_REPEATABLE_READ
|
---|
573 | Const SQL_TXN_SERIALIZABLE = &H00000008
|
---|
574 | Const SQL_TRANSACTION_SERIALIZABLE = SQL_TXN_SERIALIZABLE
|
---|
575 |
|
---|
576 | /* SQL_NULL_COLLATION values */
|
---|
577 | Const SQL_NC_HIGH = 0
|
---|
578 | Const SQL_NC_LOW = 1
|
---|
579 |
|
---|
580 |
|
---|
581 | Declare Function SQLAllocConnect Lib "odbc32.dll" (
|
---|
582 | EnvironmentHandle As SQLHENV,
|
---|
583 | ByRef ConnectionHandle As SQLHDBC) As SQLRETURN
|
---|
584 |
|
---|
585 | Declare Function SQLAllocEnv Lib "odbc32.dll" (ByRef EnvironmentHandle As SQLHENV) As SQLRETURN
|
---|
586 |
|
---|
587 | Declare Function SQLAllocHandle Lib "odbc32.dll" (HandleType As SQLSMALLINT,
|
---|
588 | InputHandle As SQLHANDLE, ByRef OutputHandle As SQLHANDLE) As SQLRETURN
|
---|
589 |
|
---|
590 | Declare Function SQLAllocStmt Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
591 | ByRef StatementHandle As SQLHSTMT) As SQLRETURN
|
---|
592 |
|
---|
593 | Declare Function SQLBindCol Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
594 | ColumnNumber As SQLUSMALLINT, TargetType As SQLSMALLINT,
|
---|
595 | ByRef TargetValue As Any, BufferLength As SQLLEN,
|
---|
596 | ByRef StrLen_or_Ind As SQLLEN) As SQLRETURN
|
---|
597 |
|
---|
598 | Declare Function SQLBindParam Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
599 | ParameterNumber As SQLUSMALLINT, ValueType As SQLSMALLINT,
|
---|
600 | ParameterType As SQLSMALLINT, LengthPrecision As SQLULEN,
|
---|
601 | ParameterScale As SQLSMALLINT, ParameterValue As SQLPOINTER,
|
---|
602 | ByRef StrLen_or_Ind As SQLLEN) As SQLRETURN
|
---|
603 |
|
---|
604 | Declare Function SQLCancel Lib "odbc32.dll" (StatementHandle As SQLHSTMT) As SQLRETURN
|
---|
605 |
|
---|
606 | Declare Function SQLCloseCursor Lib "odbc32.dll" (StatementHandle As SQLHSTMT) As SQLRETURN
|
---|
607 |
|
---|
608 | #ifdef _WIN64
|
---|
609 | Declare Function SQLColAttribute Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
610 | ColumnNumber As SQLUSMALLINT, FieldIdentifier As SQLUSMALLINT,
|
---|
611 | CharacterAttribute As SQLPOINTER, BufferLength As SQLSMALLINT,
|
---|
612 | ByRef StringLength As SQLSMALLINT, ByRef NumericAttribute As SQLLEN) As SQLRETURN
|
---|
613 | #else
|
---|
614 | Declare Function SQLColAttribute Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
615 | ColumnNumber As SQLUSMALLINT, FieldIdentifier As SQLUSMALLINT,
|
---|
616 | CharacterAttribute As SQLPOINTER, BufferLength As SQLSMALLINT,
|
---|
617 | ByRef StringLength As SQLSMALLINT, NumericAttribute As SQLPOINTER) As SQLRETURN
|
---|
618 | #endif
|
---|
619 |
|
---|
620 |
|
---|
621 | Declare Function SQLColumns Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
622 | CatalogName As *SQLCHAR, NameLength1 As SQLSMALLINT,
|
---|
623 | SchemaName As *SQLCHAR, NameLength2 As SQLSMALLINT,
|
---|
624 | TableName As *SQLCHAR, NameLength3 As SQLSMALLINT,
|
---|
625 | ColumnName As *SQLCHAR, NameLength4 As SQLSMALLINT) As SQLRETURN
|
---|
626 |
|
---|
627 |
|
---|
628 | Declare Function SQLConnect Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
629 | ServerName As *SQLCHAR, NameLength1 As SQLSMALLINT,
|
---|
630 | UserName As *SQLCHAR, NameLength2 As SQLSMALLINT,
|
---|
631 | Authentication As *SQLCHAR, NameLength3 As SQLSMALLINT) As SQLRETURN
|
---|
632 |
|
---|
633 | Declare Function SQLCopyDesc Lib "odbc32.dll" (SourceDescHandle As SQLHDESC,
|
---|
634 | TargetDescHandle As SQLHDESC) As SQLRETURN
|
---|
635 |
|
---|
636 | Declare Function SQLDataSources Lib "odbc32.dll" (EnvironmentHandle As SQLHENV,
|
---|
637 | Direction As SQLUSMALLINT, ServerName As *SQLCHAR,
|
---|
638 | BufferLength1 As SQLSMALLINT, ByRef NameLength1 As SQLSMALLINT,
|
---|
639 | Description As *SQLCHAR, BufferLength2 As SQLSMALLINT,
|
---|
640 | ByRef NameLength2 As SQLSMALLINT) As SQLRETURN
|
---|
641 |
|
---|
642 | Declare Function SQLDescribeCol Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
643 | ColumnNumber As SQLSMALLINT, ColumnName As *SQLCHAR,
|
---|
644 | BufferLength As SQLSMALLINT, ByRef NameLength As SQLSMALLINT,
|
---|
645 | ByRef DataType As SQLSMALLINT, ByRef ColumnSize As SQLINTEGER,
|
---|
646 | ByRef DecimalDigits As SQLSMALLINT, ByRef Nullable As SQLSMALLINT) As SQLRETURN
|
---|
647 |
|
---|
648 | Declare Function SQLDisconnect Lib "odbc32.dll" (ConnectionHandle As SQLHDBC) As SQLRETURN
|
---|
649 |
|
---|
650 | Declare Function SQLEndTran Lib "odbc32.dll" (HandleType As SQLSMALLINT, Handle As SQLHANDLE,
|
---|
651 | CompletionType As SQLSMALLINT) As SQLRETURN
|
---|
652 |
|
---|
653 | Declare Function SQLError Lib "odbc32.dll" (EnvironmentHandle As SQLHENV,
|
---|
654 | ConnectionHandle As SQLHDBC, StatementHandle As SQLHSTMT,
|
---|
655 | Sqlstate As *SQLCHAR, ByRef NativeError As SQLINTEGER,
|
---|
656 | MessageText As *SQLCHAR, BufferLength As SQLSMALLINT,
|
---|
657 | ByRef TextLength As SQLSMALLINT) As SQLRETURN
|
---|
658 |
|
---|
659 | Declare Function SQLExecDirect Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
660 | StatementText As *SQLCHAR, TextLength As SQLINTEGER) As SQLRETURN
|
---|
661 |
|
---|
662 | Declare Function SQLExecute Lib "odbc32.dll" (StatementHandle As SQLHSTMT) As SQLRETURN
|
---|
663 |
|
---|
664 | Declare Function SQLFetch Lib "odbc32.dll" (StatementHandle As SQLHSTMT) As SQLRETURN
|
---|
665 |
|
---|
666 | Declare Function SQLFetchScroll Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
667 | FetchOrientation As SQLSMALLINT, FetchOffset As SQLLEN) As SQLRETURN
|
---|
668 |
|
---|
669 | Declare Function SQLFreeConnect Lib "odbc32.dll" (ConnectionHandle As SQLHDBC) As SQLRETURN
|
---|
670 |
|
---|
671 | Declare Function SQLFreeEnv Lib "odbc32.dll" (EnvironmentHandle As SQLHENV) As SQLRETURN
|
---|
672 |
|
---|
673 | Declare Function SQLFreeHandle Lib "odbc32.dll" (HandleType As SQLSMALLINT, Handle As SQLHANDLE) As SQLRETURN
|
---|
674 |
|
---|
675 | Declare Function SQLFreeStmt Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
676 | Option As SQLUSMALLINT) As SQLRETURN
|
---|
677 |
|
---|
678 | Declare Function SQLGetConnectAttr Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
679 | Attribute As SQLINTEGER, Value As SQLPOINTER,
|
---|
680 | BufferLength As SQLINTEGER, ByRef StringLength As SQLINTEGER) As SQLRETURN
|
---|
681 |
|
---|
682 | Declare Function SQLGetConnectOption Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
683 | Option As SQLUSMALLINT, Value As SQLPOINTER) As SQLRETURN
|
---|
684 |
|
---|
685 | Declare Function SQLGetCursorName Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
686 | CursorName As *SQLCHAR, BufferLength As SQLSMALLINT,
|
---|
687 | ByRef NameLength As SQLSMALLINT) As SQLRETURN
|
---|
688 |
|
---|
689 | Declare Function SQLGetData Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
690 | ColumnNumber As SQLUSMALLINT, TargetType As SQLSMALLINT,
|
---|
691 | TargetValue As SQLPOINTER, BufferLength As SQLLEN,
|
---|
692 | ByRef StrLen_or_Ind As SQLLEN) As SQLRETURN
|
---|
693 |
|
---|
694 | Declare Function SQLGetDescField Lib "odbc32.dll" (DescriptorHandle As SQLHDESC,
|
---|
695 | RecNumber As SQLSMALLINT, FieldIdentifier As SQLSMALLINT,
|
---|
696 | Value As SQLPOINTER, BufferLength As SQLINTEGER,
|
---|
697 | ByRef StringLength As SQLINTEGER) As SQLRETURN
|
---|
698 |
|
---|
699 | Declare Function SQLGetDescRec Lib "odbc32.dll" (DescriptorHandle As SQLHDESC,
|
---|
700 | RecNumber As SQLSMALLINT, Name As *SQLCHAR,
|
---|
701 | BufferLength As SQLSMALLINT, ByRef StringLength As SQLSMALLINT,
|
---|
702 | ByRef iType As SQLSMALLINT, ByRef SubType As SQLSMALLINT,
|
---|
703 | ByRef Length As SQLLEN, ByRef Precision As SQLSMALLINT,
|
---|
704 | ByRef Scale As SQLSMALLINT, ByRef Nullable As SQLSMALLINT) As SQLRETURN
|
---|
705 |
|
---|
706 | Declare Function SQLGetDiagField Lib "odbc32.dll" (HandleType As SQLSMALLINT, Handle As SQLHANDLE,
|
---|
707 | RecNumber As SQLSMALLINT, DiagIdentifier As SQLSMALLINT,
|
---|
708 | DiagInfo As SQLPOINTER, BufferLength As SQLSMALLINT,
|
---|
709 | ByRef StringLength As SQLSMALLINT) As SQLRETURN
|
---|
710 |
|
---|
711 | Declare Function SQLGetDiagRec Lib "odbc32.dll" (HandleType As SQLSMALLINT, Handle As SQLHANDLE,
|
---|
712 | RecNumber As SQLSMALLINT, Sqlstate As *SQLCHAR,
|
---|
713 | ByRef NativeError As SQLINTEGER, MessageText As *SQLCHAR,
|
---|
714 | BufferLength As SQLSMALLINT, ByRef TextLength As SQLSMALLINT) As SQLRETURN
|
---|
715 |
|
---|
716 | Declare Function SQLGetEnvAttr Lib "odbc32.dll" (EnvironmentHandle As SQLHENV,
|
---|
717 | Attribute As SQLINTEGER, Value As SQLPOINTER,
|
---|
718 | BufferLength As SQLINTEGER, ByRef StringLength As SQLINTEGER) As SQLRETURN
|
---|
719 |
|
---|
720 | Declare Function SQLGetFunctions Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
721 | FunctionId As SQLUSMALLINT, ByRef Supported As SQLUSMALLINT) As SQLRETURN
|
---|
722 |
|
---|
723 | Declare Function SQLGetInfo Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
724 | InfoType As SQLUSMALLINT, InfoValue As SQLPOINTER,
|
---|
725 | BufferLength As SQLSMALLINT, ByRef StringLength As SQLSMALLINT) As SQLRETURN
|
---|
726 |
|
---|
727 | Declare Function SQLGetStmtAttr Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
728 | Attribute As SQLINTEGER, Value As SQLPOINTER,
|
---|
729 | BufferLength As SQLINTEGER, ByRef StringLength As SQLINTEGER) As SQLRETURN
|
---|
730 |
|
---|
731 | Declare Function SQLGetStmtOption Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
732 | Option As SQLUSMALLINT, Value As SQLPOINTER) As SQLRETURN
|
---|
733 |
|
---|
734 | Declare Function SQLGetTypeInfo Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
735 | DataType As SQLSMALLINT) As SQLRETURN
|
---|
736 |
|
---|
737 | Declare Function SQLNumResultCols Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
738 | ByRef ColumnCount As SQLSMALLINT) As SQLRETURN
|
---|
739 |
|
---|
740 | Declare Function SQLParamData Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
741 | ByRef Value As SQLPOINTER) As SQLRETURN
|
---|
742 |
|
---|
743 | Declare Function SQLPrepare Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
744 | StatementText As *SQLCHAR, TextLength As SQLINTEGER) As SQLRETURN
|
---|
745 |
|
---|
746 | Declare Function SQLPutData Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
747 | Data As SQLPOINTER, StrLen_or_Ind As SQLLEN) As SQLRETURN
|
---|
748 |
|
---|
749 | Declare Function SQLRowCount Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
750 | ByRef RowCount As SQLLEN) As SQLRETURN
|
---|
751 |
|
---|
752 | Declare Function SQLSetConnectAttr Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
753 | Attribute As SQLINTEGER, Value As SQLPOINTER,
|
---|
754 | StringLength As SQLINTEGER) As SQLRETURN
|
---|
755 |
|
---|
756 | Declare Function SQLSetConnectOption Lib "odbc32.dll" (ConnectionHandle As SQLHDBC,
|
---|
757 | Option As SQLUSMALLINT, Value As SQLULEN) As SQLRETURN
|
---|
758 |
|
---|
759 | Declare Function SQLSetCursorName Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
760 | CursorName As *SQLCHAR, NameLength As SQLSMALLINT) As SQLRETURN
|
---|
761 |
|
---|
762 | Declare Function SQLSetDescField Lib "odbc32.dll" (DescriptorHandle As SQLHDESC,
|
---|
763 | RecNumber As SQLSMALLINT, FieldIdentifier As SQLSMALLINT,
|
---|
764 | Value As SQLPOINTER, BufferLength As SQLINTEGER) As SQLRETURN
|
---|
765 |
|
---|
766 | Declare Function SQLSetDescRec Lib "odbc32.dll" (DescriptorHandle As SQLHDESC,
|
---|
767 | RecNumber As SQLSMALLINT, iType As SQLSMALLINT,
|
---|
768 | SubType As SQLSMALLINT, Length As SQLLEN,
|
---|
769 | Precision As SQLSMALLINT, Scale As SQLSMALLINT,
|
---|
770 | Data As SQLPOINTER, ByRef StringLength As SQLLEN,
|
---|
771 | ByRef Indicator As SQLLEN) As SQLRETURN
|
---|
772 |
|
---|
773 | Declare Function SQLSetEnvAttr Lib "odbc32.dll" (EnvironmentHandle As SQLHENV,
|
---|
774 | Attribute As SQLINTEGER, Value As SQLPOINTER,
|
---|
775 | StringLength As SQLINTEGER) As SQLRETURN
|
---|
776 |
|
---|
777 | Declare Function SQLSetParam Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
778 | ParameterNumber As SQLUSMALLINT, ValueType As SQLSMALLINT,
|
---|
779 | ParameterType As SQLSMALLINT, LengthPrecision As SQLULEN,
|
---|
780 | ParameterScale As SQLSMALLINT, ParameterValue As SQLPOINTER,
|
---|
781 | ByRef StrLen_or_Ind As SQLLEN) As SQLRETURN
|
---|
782 |
|
---|
783 | Declare Function SQLSetStmtAttr Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
784 | Attribute As SQLINTEGER, Value As SQLPOINTER,
|
---|
785 | StringLength As SQLINTEGER) As SQLRETURN
|
---|
786 |
|
---|
787 | Declare Function SQLSetStmtOption Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
788 | Option As SQLUSMALLINT, Value As SQLULEN) As SQLRETURN
|
---|
789 |
|
---|
790 | Declare Function SQLSpecialColumns Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
791 | IdentifierType As SQLUSMALLINT, CatalogName As *SQLCHAR,
|
---|
792 | NameLength1 As SQLSMALLINT, SchemaName As *SQLCHAR,
|
---|
793 | NameLength2 As SQLSMALLINT, TableName As *SQLCHAR,
|
---|
794 | NameLength3 As SQLSMALLINT, Scope As SQLUSMALLINT,
|
---|
795 | Nullable As SQLUSMALLINT) As SQLRETURN
|
---|
796 |
|
---|
797 | Declare Function SQLStatistics Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
798 | CatalogName As *SQLCHAR, NameLength1 As SQLSMALLINT,
|
---|
799 | SchemaName As *SQLCHAR, NameLength2 As SQLSMALLINT,
|
---|
800 | TableName As *SQLCHAR, NameLength3 As SQLSMALLINT,
|
---|
801 | Unique As SQLUSMALLINT, Reserved As SQLUSMALLINT) As SQLRETURN
|
---|
802 |
|
---|
803 | Declare Function SQLTables Lib "odbc32.dll" (StatementHandle As SQLHSTMT,
|
---|
804 | CatalogName As *SQLCHAR, NameLength1 As SQLSMALLINT,
|
---|
805 | SchemaName As *SQLCHAR, NameLength2 As SQLSMALLINT,
|
---|
806 | TableName As *SQLCHAR, NameLength3 As SQLSMALLINT,
|
---|
807 | TableType As *SQLCHAR, NameLength4 As SQLSMALLINT) As SQLRETURN
|
---|
808 |
|
---|
809 | Declare Function SQLTransact Lib "odbc32.dll" (EnvironmentHandle As SQLHENV,
|
---|
810 | ConnectionHandle As SQLHDBC, CompletionType As SQLUSMALLINT) As SQLRETURN
|
---|
811 |
|
---|
812 |
|
---|
813 | #endif '_INC_SQL
|
---|