Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.47 KB

result-set-metadata.md

File metadata and controls

23 lines (19 loc) · 1.47 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Result Set Metadata
Result Set Metadata
David-Engel
davidengel
01/19/2017
sql
connectivity
conceptual
result sets [ODBC], metadata
metadata [ODBC]

Result Set Metadata

Metadata is data that describes other data. For example, result set metadata describes the result set, such as the number of columns in the result set, the data types of those columns, their names, precision, nullability, and so on.

Interoperable applications should always check the metadata of result set columns. The metadata for a column in a result set might differ from the metadata for the column as returned by a catalog function. For example, suppose that an updatable column is included in a result set created by joining two tables. While SQLColumnPrivileges might indicate that a user can update the column, the result set metadata might not if the column is on the "many" side of the join; many data sources can update columns on the "one" side of a join but not on the "many" side. Even data types cannot be assumed to be the same, because the data source might promote the data type while creating the result set.

This section contains the following topics.