Jeder Treiber für ein bestimmtes Datenbank-Managemement-System
veranlasst einen Eintrag in die Konfigurationsdatei.
Eine weitere Konfigurationsdatei enthält Einträge mit den
Verbindungs- und Zugangsdaten für bestimmte Datenquellen
(DSNs).
Handles |
| SQLHENV env | | |
| SQLHDBC dbc | | |
| SQLHSTMT stm | | |
| SQLHDESC dsc | | |
Allgemein |
| SQLAllocHandle | (type, input, * output); | |
| SQLCancelHandle | (type, input); | |
| SQLFreeHandle | (type, handle); | |
| SQLGetDiagField | (type, handle, | |
| | rec, identifier, | |
| | info, max, * length); | |
| SQLGetDiagRec | (type, handle, | |
| | rec, state, * native, | |
| | message, max, * length); | |
Environment |
| SQLAllocEnv | (SQLHENV * env); | |
| SQLFreeEnv | (env); | |
| SQLGetEnvAttr | (env, attr, value, * length); | |
| SQLSetEnvAttr | (env, attr, value, length); | |
| SQLDataSources | (env, direction, | |
| | server, max1, * length1, | |
| | desc, max2, * length2); | |
| SQLError | (env, dbc, stm, | |
| | state, * native, | |
| | message, max, * length); | |
Connection |
| SQLAllocConnect | (env, SQLHDBC * dbc); | |
| SQLFreeConnect | (dbc); | |
| SQLConnect | (dbc, server, length1, | |
| | username, length2, | |
| | password, length3); | |
| SQLDisconnect | (dbc); | |
| SQLGetFunctions | (dbc, func, * supported); | |
| SQLGetInfo | (dbc, type, info, max, * length); | |
| SQLGetConnectAttr | (dbc, attr, value, * length); | |
| SQLSetConnectAttr | (dbc, attr, value, length); | |
| SQLGetConnectOption | (dbc, option, value); | |
| SQLSetConnectOption | (dbc, option, value); | |
| SQLTransact | (env, dbc, completion); | |
| SQLEndTran | ( type, handle, completion); | |
Schema |
| SQLTables | (stm, catalog, length1, | |
| | schema, length2, | |
| | table, length3, | |
| | type, length4); | |
| SQLColumns | (stm, catalog, length1, | |
| | schema, length2, | |
| | table, length3, | |
| | column, length4); | |
| SQLSpecialColumns | (stm, type, | |
| | catalog, length1, | |
| | schema, length2, | |
| | table, length3, | |
| | scope, nullable); | |
| SQLDescribeCol | (stm, column, | |
| | name, max, * length, | |
| | * type, * size, | |
| | * digits, * nullable); | |
| SQLColAttribute | (stm, column, field, | |
| | charattr, max, * length, | |
| | * num_attr); | |
| SQLGetTypeInfo | (stm, type); | |
| SQLStatistics | (stm, catalog, length1, | |
| | schema, length2, | |
| | table, length3, | |
| | unique, reserved); | |
Descriptor |
| SQLGetDescField | (dsc, rec, field, value, * length); | |
| SQLSetDescField | (dsc, rec, field, value, max); | |
| SQLGetDescRec | (dsc, rec, name, max, * length, | |
| | * type, | |
| | * subtype, | |
| | * length, | |
| | * precision, | |
| | * scale, | |
| | * nullable); | |
| SQLSetDescRec | (dsc, rec, | |
| | type, | |
| | subtype, | |
| | length, | |
| | precision, | |
| | scale, | |
| | data, * length2, * indicator); | |
| SQLCopyDesc | (dsc, SQLHDESC target); | |
Statement |
| SQLAllocStmt | (dbc, SQLHSTMT * stm); | |
| SQLFreeStmt | (stm, opt); | |
| SQLExecDirect | (stm, statement, length); | |
| SQLGetStmtAttr | (stm, attr, value, * length); | |
| SQLSetStmtAttr | (stm, attr, value, length); | |
| SQLGetStmtOption | (stm, option, value); | |
| SQLSetStmtOption | (stm, option, value); | |
Bind |
| SQLPrepare | (stm, statement, length); | |
| SQLSetParam | (stm, number, vtype, ptype, precision, | |
| | scale, value, * indicator); | |
| SQLParamData | (stm, * value); | |
| SQLBindParam | (stm, number, vtype, ttype, precision, | |
| | scale, value, * indicator); | |
| SQLBindCol | (stm, column, ttype, | |
| | target, max, * indicator); | |
| SQLExecute | (stm); | |
| SQLCancel | (stm); | |
Fetch |
| SQLNumResultCols | (stm, * count); | |
| SQLRowCount | (stm, * count); | |
| SQLFetch | (stm); | |
| SQLFetchScroll | (stm, orientation, offset); | |
| SQLGetData | (stm, column, ttype, | |
| | target, max, * indicator); | |
| SQLPutData | (stm, source, indicator); | |
Cursor |
| SQLGetCursorName | (stm, cursor, max, * length); | |
| SQLSetCursorName | (stm, cursor, length); | |
| SQLCloseCursor | (stm); | |