All the
SAS providers extend the COLUMNS schema rowset to include metadata
that is specific to SAS data sets. These custom schema rowset columns
include the same information that is returned by the ISASColumnsInfo
interface. However, there are some differences in how the information
is made available. Specifically, the ISASColumnsInfo interface
returns SAS metadata one data set at a time and is limited to OLE
DB consumers. By contrast, the COLUMNS schema rowset extensions include
all columns (variables) that are in all tables (data sets) in a data
source. They are also available to both OLE DB and ADO consumers.
Each custom
column maps to a member of the SASCOLUMNINFO structure that is returned
by ISASColumnsInfo::GetColumnInfo. A ninth member in that structure,
pwszColDesc, does not have a corresponding custom column because it
returns a variable label that is included in the OLE DB specification's
standard DESCRIPTION column.
The following
table lists the columns that are added to the COLUMNS schema rowset.
The columns are returned following the standard columns in the OLE
DB specification and in the order in which they appear in the following
table.
Rowset Extensions
|
|
|
|
|
|
|
Stored format
name. If no format is associated with this column, this member is
NULL.
|
|
|
|
Stored width
of the formatted data.
|
|
|
|
Stored decimal
width of the formatted data.
|
|
|
|
|
|
|
|
Stored width
to use when applying the default informat.
|
|
|
|
Stored decimal
width to use when applying the default informat.
|
|
|
|
A signed short
value that indicates the column's position in any applied sorting
hierarchy. This member is not valid for all providers, and it is applicable
only if the data set is the result of a SORT procedure. (See What SORT_ORDER Means.)
|
|
|
|
VARIANT_TRUE
when the variable is indexed; otherwise, it is VARIANT_FALSE.
|