Mimer Data Provider

MimerDataReader.GetSchemaTable Method 

Returns a DataTable that describes the column metadata of the MimerDataReader.

[Visual Basic]
Public Function GetSchemaTable() _
    Implements IDataReader.GetSchemaTable As DataTable
[C#]
public DataTable GetSchemaTable();
[C++]
public: DataTable* GetSchemaTable();
[JScript]
public function GetSchemaTable(): DataTable;

Return Value

The DataTable that describes the column metadata.

Implements

IDataReader.GetSchemaTable

Remarks

GetSchemaTables returns metadata about the result set. The following columns are returned:

Column nameRemarks
ColumnName The column label, or column name if no label has been specified. If there is no name a null value is returned. Please note that the values may not be unique.
ColumnOrdinal Ordinal position of row starting with one.
ColumnSize The maximum possible length of a value in the column. For columns that use a fixed-length data type, this is the size of the data type.
NumericPrecision If ProviderType is a numeric data type, this is the maximum precision of the column. The precision depends on the definition of the column. If ProviderType is not a numeric data type, this is a null value.
NumericScale If ProviderType is decimal or numeric, this is the number of digits to the right of the decimal point. Otherwise, this is a null value.
DataType .NET Framework data type.
ProviderType The indicator of the column's data type. This column cannot contain a null value.
IsLong Set if the column contains a Binary Large Object (BLOB), Character Large Object (CLOB), or National Character Large Object (NCLOB).
AllowDBNull Indicates whether the column may contain null values or not.
IsReadOnly true if the column cannot be modified; otherwise false.
IsRowVersion Set if the column contains a persistent row identifier that cannot be written to, and has no meaningful value except to identity the row. The Mimer Data Provider currently always returns false.
IsUnique true if no two rows in the base table (the table returned in BaseTableName) can have the same value in this column. IsUnique is guaranteed to be true if the column constitutes a key by itself or if there is a constraint of type UNIQUE that applies only to this column. false if the column can contain duplicate values in the base table.

When connected to a Mimer SQL Mobile database this property is always false.
IsKey true if the column is one of a set of columns in the rowset that, taken together, uniquely identify the row. The set of columns with IsKey set to true must uniquely identify a row in the rowset. There is no requirement that this set of columns is a minimal set of columns. This set of columns may be generated from a base table primary key, a unique constraint or a unique index. false if the column is not required to uniquely identify the row.

When connected to a Mimer SQL Mobile database this property is always false.
IsAutoIncrement Mimer Data Provider returns true if the default value is a sequence, otherwise false.

When connected to a Mimer SQL Mobile database this property is always false.
BaseSchemaName The name of the schema in the database that contains the column.
BaseCatalogName Mimer Data Provider currently always return null in this column.
BaseTableName The name of the table or view in the database that contains the column. A null value if the base table name cannot be determined.
BaseColumnName The name of the column in the table or view in the database. This might be different than the column name returned in the ColumnName column if an label was used. A null value if the base column name cannot be determined or if the rowset column is derived, but not identical to, a column in the database. A null value if the base table name cannot be determined.

See Also

MimerDataReader Class | Mimer.Data.Client Namespace