Skip to content

Commit 26a89d4

Browse files
10th batch. 20 files with table column header fixes.
1 parent ea0e104 commit 26a89d4

20 files changed

Lines changed: 528 additions & 271 deletions

docs/odbc/reference/appendixes/sqlgetstmtoption-cursor-library.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@ ms.author: v-daenge
2020
This topic discusses the use of the **SQLGetStmtOption** function in the cursor library. For general information about **SQLGetStmtOption**, see [SQLGetStmtOption Function](../../../odbc/reference/syntax/sqlgetstmtoption-function.md).
2121

2222
The cursor library supports the following statement options with **SQLGetStmtOption**:
23-
24-
|||
25-
|-|-|
26-
|SQL_BIND_TYPE|SQL_ROW_NUMBER|
27-
|SQL_CONCURRENCY|SQL_ROWSET_SIZE|
28-
|SQL_CURSOR_TYPE|SQL_SIMULATE_CURSOR|
29-
|SQL_GET_BOOKMARK||
23+
24+
:::row:::
25+
:::column:::
26+
SQL_BIND_TYPE
27+
SQL_CONCURRENCY
28+
SQL_CURSOR_TYPE
29+
SQL_GET_BOOKMARK
30+
:::column-end:::
31+
:::column:::
32+
SQL_ROW_NUMBER
33+
SQL_ROWSET_SIZE
34+
SQL_SIMULATE_CURSOR
35+
:::column-end:::
36+
:::row-end:::

docs/odbc/reference/appendixes/sqlsetstmtattr-cursor-library.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,24 @@ ms.author: v-daenge
2020
This topic discusses the use of the **SQLSetStmtAttr** function in the cursor library. For general information about **SQLSetStmtAttr**, see [SQLSetStmtAttr Function](../../../odbc/reference/syntax/sqlsetstmtattr-function.md).
2121

2222
The cursor library supports the following statement attributes with **SQLSetStmtAttr**:
23-
24-
|||
25-
|-|-|
26-
|SQL_ATTR_CONCURRENCY|SQL_ATTR_ROW_BIND_OFFSET_PTR|
27-
|SQL_ATTR_CURSOR_TYPE|SQL_ATTR_ROW_BIND_TYPE|
28-
|SQL_ATTR_FETCH_BOOKMARK_PTR|SQL_ATTR_ROWSET_ARRAY_SIZE|
29-
|SQL_ATTR_PARAM_BIND_OFFSET_PTR|SQL_ATTR_SIMULATE_CURSOR|
30-
|SQL_ATTR_PARAM_BIND_TYPE|SQL_ATTR_USE_BOOKMARKS|
31-
23+
24+
:::row:::
25+
:::column:::
26+
SQL_ATTR_CONCURRENCY
27+
SQL_ATTR_CURSOR_TYPE
28+
SQL_ATTR_FETCH_BOOKMARK_PTR
29+
SQL_ATTR_PARAM_BIND_OFFSET_PTR
30+
SQL_ATTR_PARAM_BIND_TYPE
31+
:::column-end:::
32+
:::column:::
33+
SQL_ATTR_ROW_BIND_OFFSET_PTR
34+
SQL_ATTR_ROW_BIND_TYPE
35+
SQL_ATTR_ROWSET_ARRAY_SIZE
36+
SQL_ATTR_SIMULATE_CURSOR
37+
SQL_ATTR_USE_BOOKMARKS
38+
:::column-end:::
39+
:::row-end:::
40+
3241
The cursor library supports only the SQL_CURSOR_FORWARD_ONLY and SQL_CURSOR_STATIC values of the SQL_ATTR_CURSOR_TYPE statement attribute.
3342

3443
For forward-only cursors, the cursor library supports the SQL_CONCUR_READ_ONLY value of the SQL_ATTR_CONCURRENCY statement attribute. For static cursors, the cursor library supports the SQL_CONCUR_READ_ONLY and SQL_CONCUR_VALUES values of the SQL_ATTR_CONCURRENCY statement attribute.

docs/odbc/reference/develop-app/asynchronous-execution-polling-method.md

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,43 @@ Prior to ODBC 3.8 and the Windows 7 SDK, asynchronous operations were permitted
3030

3131
## Executing Statement Operations Asynchronously
3232
The following statement functions operate on a data source and can execute asynchronously:
33-
34-
||||
35-
|-|-|-|
36-
|[SQLBulkOperations](../../../odbc/reference/syntax/sqlbulkoperations-function.md)|[SQLColAttribute](../../../odbc/reference/syntax/sqlcolattribute-function.md)|[SQLColumnPrivileges](../../../odbc/reference/syntax/sqlcolumnprivileges-function.md)|
37-
|[SQLColumns](../../../odbc/reference/syntax/sqlcolumns-function.md)|[SQLDescribeCol](../../../odbc/reference/syntax/sqldescribecol-function.md)|[SQLDescribeParam](../../../odbc/reference/syntax/sqldescribeparam-function.md)|
38-
|[SQLExecDirect](../../../odbc/reference/syntax/sqlexecdirect-function.md)|[SQLExecute](../../../odbc/reference/syntax/sqlexecute-function.md)|[SQLFetch](../../../odbc/reference/syntax/sqlfetch-function.md)|
39-
|[SQLFetchScroll](../../../odbc/reference/syntax/sqlfetchscroll-function.md)|[SQLForeignKeys](../../../odbc/reference/syntax/sqlforeignkeys-function.md)|[SQLGetData](../../../odbc/reference/syntax/sqlgetdata-function.md)|
40-
|[SQLGetTypeInfo](../../../odbc/reference/syntax/sqlgettypeinfo-function.md)|[SQLMoreResults](../../../odbc/reference/syntax/sqlmoreresults-function.md)|[SQLNumParams](../../../odbc/reference/syntax/sqlnumparams-function.md)|
41-
|[SQLNumResultCols](../../../odbc/reference/syntax/sqlnumresultcols-function.md)|[SQLParamData](../../../odbc/reference/syntax/sqlparamdata-function.md)|[SQLPrepare](../../../odbc/reference/syntax/sqlprepare-function.md)|
42-
|[SQLPrimaryKeys](../../../odbc/reference/syntax/sqlprimarykeys-function.md)|[SQLProcedureColumns](../../../odbc/reference/syntax/sqlprocedurecolumns-function.md)|[SQLProcedures](../../../odbc/reference/syntax/sqlprocedures-function.md)|
43-
|[SQLPutData](../../../odbc/reference/syntax/sqlputdata-function.md)|[SQLSetPos](../../../odbc/reference/syntax/sqlsetpos-function.md)|[SQLSpecialColumns](../../../odbc/reference/syntax/sqlspecialcolumns-function.md)|
44-
|[SQLStatistics](../../../odbc/reference/syntax/sqlstatistics-function.md)|[SQLTablePrivileges](../../../odbc/reference/syntax/sqltableprivileges-function.md)|[SQLTables](../../../odbc/reference/syntax/sqltables-function.md)|
45-
33+
34+
:::row:::
35+
:::column:::
36+
[SQLBulkOperations](../../../odbc/reference/syntax/sqlbulkoperations-function.md)
37+
[SQLColAttribute](../../../odbc/reference/syntax/sqlcolattribute-function.md)
38+
[SQLColumnPrivileges](../../../odbc/reference/syntax/sqlcolumnprivileges-function.md)
39+
[SQLColumns](../../../odbc/reference/syntax/sqlcolumns-function.md)
40+
[SQLDescribeCol](../../../odbc/reference/syntax/sqldescribecol-function.md)
41+
[SQLDescribeParam](../../../odbc/reference/syntax/sqldescribeparam-function.md)
42+
[SQLExecDirect](../../../odbc/reference/syntax/sqlexecdirect-function.md)
43+
[SQLExecute](../../../odbc/reference/syntax/sqlexecute-function.md)
44+
[SQLFetch](../../../odbc/reference/syntax/sqlfetch-function.md)
45+
:::column-end:::
46+
:::column:::
47+
[SQLFetchScroll](../../../odbc/reference/syntax/sqlfetchscroll-function.md)
48+
[SQLForeignKeys](../../../odbc/reference/syntax/sqlforeignkeys-function.md)
49+
[SQLGetData](../../../odbc/reference/syntax/sqlgetdata-function.md)
50+
[SQLGetTypeInfo](../../../odbc/reference/syntax/sqlgettypeinfo-function.md)
51+
[SQLMoreResults](../../../odbc/reference/syntax/sqlmoreresults-function.md)
52+
[SQLNumParams](../../../odbc/reference/syntax/sqlnumparams-function.md)
53+
[SQLNumResultCols](../../../odbc/reference/syntax/sqlnumresultcols-function.md)
54+
[SQLParamData](../../../odbc/reference/syntax/sqlparamdata-function.md)
55+
[SQLPrepare](../../../odbc/reference/syntax/sqlprepare-function.md)
56+
:::column-end:::
57+
:::column:::
58+
[SQLPrimaryKeys](../../../odbc/reference/syntax/sqlprimarykeys-function.md)
59+
[SQLProcedureColumns](../../../odbc/reference/syntax/sqlprocedurecolumns-function.md)
60+
[SQLProcedures](../../../odbc/reference/syntax/sqlprocedures-function.md)
61+
[SQLPutData](../../../odbc/reference/syntax/sqlputdata-function.md)
62+
[SQLSetPos](../../../odbc/reference/syntax/sqlsetpos-function.md)
63+
[SQLSpecialColumns](../../../odbc/reference/syntax/sqlspecialcolumns-function.md)
64+
[SQLStatistics](../../../odbc/reference/syntax/sqlstatistics-function.md)
65+
[SQLTablePrivileges](../../../odbc/reference/syntax/sqltableprivileges-function.md)
66+
[SQLTables](../../../odbc/reference/syntax/sqltables-function.md)
67+
:::column-end:::
68+
:::row-end:::
69+
4670
Asynchronous statement execution is controlled on either a per-statement or a per-connection basis, depending on the data source. That is, the application specifies not that a particular function is to be executed asynchronously, but that any function executed on a particular statement is to be executed asynchronously. To find out which one is supported, an application calls [SQLGetInfo](../../../odbc/reference/syntax/sqlgetinfo-function.md) with an option of SQL_ASYNC_MODE. SQL_AM_CONNECTION is returned if connection-level asynchronous execution (for a statement handle) is supported; SQL_AM_STATEMENT if statement-level asynchronous execution is supported.
4771

4872
To specify that functions executed with a particular statement are to be executed asynchronously, the application calls **SQLSetStmtAttr** with the SQL_ATTR_ASYNC_ENABLE attribute and sets it to SQL_ASYNC_ENABLE_ON. If connection-level asynchronous processing is supported, the SQL_ATTR_ASYNC_ENABLE statement attribute is read-only and its value is the same as the connection attribute of the connection on which the statement was allocated. It is driver-specific whether the value of the statement attribute is set at statement allocation time or later. Attempting to set it will return SQL_ERROR and SQLSTATE HYC00 (Optional feature not implemented).
@@ -150,12 +174,22 @@ while ((rc = SQLExecDirect(hstmt1, SQLStatement, SQL_NTS)) == SQL_STILL_EXECUTIN
150174
- Efficient asynchronous ODBC calls and the ability to cancel connection operations enable an application to allow the user to cancel any slow operation without having to wait for timeouts.
151175

152176
The following functions, which operate on connection handles, can now be executed asynchronously:
153-
154-
||||
155-
|-|-|-|
156-
|[SQLBrowseConnect](../../../odbc/reference/syntax/sqlbrowseconnect-function.md)|[SQLConnect](../../../odbc/reference/syntax/sqlconnect-function.md)|[SQLDisconnect](../../../odbc/reference/syntax/sqldisconnect-function.md)|
157-
|[SQLDriverConnect](../../../odbc/reference/syntax/sqldriverconnect-function.md)|[SQLEndTran](../../../odbc/reference/syntax/sqlendtran-function.md)|[SQLSetConnectAttr](../../../odbc/reference/syntax/sqlsetconnectattr-function.md)|
158-
177+
178+
:::row:::
179+
:::column:::
180+
[SQLBrowseConnect](../../../odbc/reference/syntax/sqlbrowseconnect-function.md)
181+
[SQLConnect](../../../odbc/reference/syntax/sqlconnect-function.md)
182+
:::column-end:::
183+
:::column:::
184+
[SQLDisconnect](../../../odbc/reference/syntax/sqldisconnect-function.md)
185+
[SQLDriverConnect](../../../odbc/reference/syntax/sqldriverconnect-function.md)
186+
:::column-end:::
187+
:::column:::
188+
[SQLEndTran](../../../odbc/reference/syntax/sqlendtran-function.md)
189+
[SQLSetConnectAttr](../../../odbc/reference/syntax/sqlsetconnectattr-function.md)
190+
:::column-end:::
191+
:::row-end:::
192+
159193
To determine whether a driver supports asynchronous operations on these functions, an application calls **SQLGetInfo** with SQL_ASYNC_DBC_FUNCTIONS. SQL_ASYNC_DBC_CAPABLE is returned if asynchronous operations are supported. SQL_ASYNC_DBC_NOT_CAPABLE is returned if asynchronous operations are not supported.
160194

161195
To specify that functions executed with a particular connection are to be executed asynchronously, the application calls **SQLSetConnectAttr** and sets the SQL_ATTR_ASYNC_DBC_FUNCTIONS_ENABLE attribute to SQL_ASYNC_DBC_ENABLE_ON. Setting a connection attribute before establishing a connection always executes synchronously. Also, the operation setting the connection attribute SQL_ATTR_ASYNC_DBC_FUNCTIONS_ENABLE with **SQLSetConnectAttr** always executes synchronously.

docs/odbc/reference/develop-app/descriptor-fields.md

Lines changed: 68 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,78 @@ ms.author: v-daenge
1919
Descriptors contain *header* and *record* fields that completely describe columns or parameters.
2020

2121
A descriptor contains a single copy of the following header fields. Changing a header field affects all columns or parameters.
22-
23-
|||
24-
|-|-|
25-
|SQL_DESC_ALLOC_TYPE|SQL_DESC_BIND_TYPE|
26-
|SQL_DESC_ARRAY_SIZE|SQL_DESC_COUNT|
27-
|SQL_DESC_ARRAY_STATUS_PTR|SQL_DESC_ROWS_PROCESSED_PTR|
28-
|SQL_DESC_BIND_OFFSET_PTR||
29-
22+
23+
:::row:::
24+
:::column:::
25+
SQL_DESC_ALLOC_TYPE
26+
SQL_DESC_ARRAY_SIZE
27+
SQL_DESC_ARRAY_STATUS_PTR
28+
SQL_DESC_BIND_OFFSET_PTR
29+
:::column-end:::
30+
:::column:::
31+
SQL_DESC_BIND_TYPE
32+
SQL_DESC_COUNT
33+
SQL_DESC_ROWS_PROCESSED_PTR
34+
:::column-end:::
35+
:::row-end:::
36+
3037
A descriptor contains zero or more descriptor records. Each record describes a column or parameter, depending on the type of descriptor. When a new column or parameter is bound, a new record is added to the descriptor. When a column or parameter is unbound, a record is removed from the descriptor. Each record contains a single copy of the following fields:
31-
32-
|||
33-
|-|-|
34-
|SQL_DESC_AUTO_UNIQUE_VALUE|SQL_DESC_LOCAL_TYPE_NAME|
35-
|SQL_DESC_BASE_COLUMN_NAME|SQL_DESC_NAME|
36-
|SQL_DESC_BASE_TABLE_NAME|SQL_DESC_NULLABLE|
37-
|SQL_DESC_CASE_SENSITIVE|SQL_DESC_OCTET_LENGTH|
38-
|SQL_DESC_CATALOG_NAME|SQL_DESC_OCTET_LENGTH_PTR|
39-
|SQL_DESC_CONCISE_TYPE|SQL_DESC_PARAMETER_TYPE|
40-
|SQL_DESC_DATA_PTR|SQL_DESC_PRECISION|
41-
|SQL_DESC_DATETIME_INTERVAL_CODE|SQL_DESC_SCALE|
42-
|SQL_DESC_DATETIME_INTERVAL_PRECISION|SQL_DESC_SCHEMA_NAME|
43-
|SQL_DESC_DISPLAY_SIZE|SQL_DESC_SEARCHABLE|
44-
|SQL_DESC_FIXED_PREC_SCALE|SQL_DESC_TABLE_NAME|
45-
|SQL_DESC_INDICATOR_PTR|SQL_DESC_TYPE|
46-
|SQL_DESC_LABEL|SQL_DESC_TYPE_NAME|
47-
|SQL_DESC_LENGTH|SQL_DESC_UNNAMED|
48-
|SQL_DESC_LITERAL_PREFIX|SQL_DESC_UNSIGNED|
49-
|SQL_DESC_LITERAL_SUFFIX|SQL_DESC_UPDATABLE|
50-
38+
39+
:::row:::
40+
:::column:::
41+
SQL_DESC_AUTO_UNIQUE_VALUE
42+
SQL_DESC_BASE_COLUMN_NAME
43+
SQL_DESC_BASE_TABLE_NAME
44+
SQL_DESC_CASE_SENSITIVE
45+
SQL_DESC_CATALOG_NAME
46+
SQL_DESC_CONCISE_TYPE
47+
SQL_DESC_DATA_PTR
48+
SQL_DESC_DATETIME_INTERVAL_CODE
49+
SQL_DESC_DATETIME_INTERVAL_PRECISION
50+
SQL_DESC_DISPLAY_SIZE
51+
SQL_DESC_FIXED_PREC_SCALE
52+
SQL_DESC_INDICATOR_PTR
53+
SQL_DESC_LABEL
54+
SQL_DESC_LENGTH
55+
SQL_DESC_LITERAL_PREFIX
56+
SQL_DESC_LITERAL_SUFFIX
57+
:::column-end:::
58+
:::column:::
59+
SQL_DESC_LOCAL_TYPE_NAME
60+
SQL_DESC_NAME
61+
SQL_DESC_NULLABLE
62+
SQL_DESC_OCTET_LENGTH
63+
SQL_DESC_OCTET_LENGTH_PTR
64+
SQL_DESC_PARAMETER_TYPE
65+
SQL_DESC_PRECISION
66+
SQL_DESC_SCALE
67+
SQL_DESC_SCHEMA_NAME
68+
SQL_DESC_SEARCHABLE
69+
SQL_DESC_TABLE_NAME
70+
SQL_DESC_TYPE
71+
SQL_DESC_TYPE_NAME
72+
SQL_DESC_UNNAMED
73+
SQL_DESC_UNSIGNED
74+
SQL_DESC_UPDATABLE
75+
:::column-end:::
76+
:::row-end:::
77+
5178
Many statement attributes correspond to the header field of a descriptor. Setting these attributes through a call to **SQLSetStmtAttr** and setting the corresponding descriptor header field by calling **SQLSetDescField** have the same effect. The same is true for **SQLGetStmtAttr** and **SQLGetDescField**, both of which retrieve the same information. Calling the statement functions instead of the descriptor functions has the advantage that a descriptor handle does not have to be retrieved.
5279

5380
The following header fields can be set by setting statement attributes:
54-
55-
|||
56-
|-|-|
57-
|SQL_DESC_ARRAY_SIZE|SQL_DESC_BIND_TYPE|
58-
|SQL_DESC_ARRAY_STATUS_PTR|SQL_DESC_ROWS_PROCESSED_PTR|
59-
|SQL_DESC_BIND_OFFSET_PTR||
60-
81+
82+
:::row:::
83+
:::column:::
84+
SQL_DESC_ARRAY_SIZE
85+
SQL_DESC_ARRAY_STATUS_PTR
86+
SQL_DESC_BIND_OFFSET_PTR
87+
:::column-end:::
88+
:::column:::
89+
SQL_DESC_BIND_TYPE
90+
SQL_DESC_ROWS_PROCESSED_PTR
91+
:::column-end:::
92+
:::row-end:::
93+
6194
This section contains the following topics.
6295

6396
- [Record Count](../../../odbc/reference/develop-app/record-count.md)

docs/odbc/reference/develop-app/level-1-interface-conformance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ms.author: v-daenge
1818
# Level 1 Interface Conformance
1919
The Level 1 interface conformance level includes the Core interface conformance level functionality plus additional features, such as transactions, that are usually available in an OLTP relational DBMS. A Level 1 interface-conformant driver lets the application do the following, in addition to the features in the Core interface conformance level:
2020

21-
|||
21+
|Feature number|Description|
2222
|-|-|
2323
|101|Specify the schema of database tables and views (using two-part naming). (For more information, see the three-part naming feature 201 in [Level 2 Interface Conformance](../../../odbc/reference/develop-app/level-2-interface-conformance.md).)|
2424
|102|Invoke true asynchronous execution of ODBC functions, where applicable ODBC functions are all synchronous or all asynchronous on a given connection.|

docs/odbc/reference/develop-app/level-2-interface-conformance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ms.author: v-daenge
1818
# Level 2 Interface Conformance
1919
The Level 2 interface conformance level includes the Level 1 interface conformance-level functionality plus the following features:
2020

21-
|||
21+
|Feature number|Description|
2222
|-|-|
2323
|201|Use three-part names of database tables and views. (For more information, see the two-part naming support feature 101 in [Level 1 Interface Conformance](../../../odbc/reference/develop-app/level-1-interface-conformance.md).)|
2424
|202|Describe dynamic parameters, by calling **SQLDescribeParam**.|

docs/odbc/reference/syntax/sqlcolumns-function.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,22 @@ SQLRETURN SQLColumns(
142142
|RADIX|NUM_PREC_RADIX|
143143
144144
The following columns have been added to the result set returned by **SQLColumns** for ODBC 3.*x*:
145-
146-
|||
147-
|-|-|
148-
|CHAR_OCTET_LENGTH|ORDINAL_POSITION|
149-
|COLUMN_DEF|SQL_DATA_TYPE|
150-
|IS_NULLABLE|SQL_DATETIME_SUB|
151-
145+
146+
:::row:::
147+
:::column:::
148+
CHAR_OCTET_LENGTH
149+
COLUMN_DEF
150+
:::column-end:::
151+
:::column:::
152+
IS_NULLABLE
153+
ORDINAL_POSITION
154+
:::column-end:::
155+
:::column:::
156+
SQL_DATA_TYPE
157+
SQL_DATETIME_SUB
158+
:::column-end:::
159+
:::row-end:::
160+
152161
The following table lists the columns in the result set. Additional columns beyond column 18 (IS_NULLABLE) can be defined by the driver. An application should gain access to driver-specific columns by counting down from the end of the result set instead of specifying an explicit ordinal position. For more information, see [Data Returned by Catalog Functions](../../../odbc/reference/develop-app/data-returned-by-catalog-functions.md).
153162
154163
|Column name|Column<br /><br /> number|Data type|Comments|

0 commit comments

Comments
 (0)