Mimer SQL Data Provider help
GetSchemaTable Method




Mimer.Data.Client Namespace > MimerDataReader Class : GetSchemaTable Method
Returns a System.Data.DataTable that describes the column metadata of the MimerDataReader.
Syntax
'Declaration
 
Public Overrides NotOverridable Function GetSchemaTable() As DataTable
public override DataTable GetSchemaTable()
public function GetSchemaTable(): DataTable; override; 
public override function GetSchemaTable() : DataTable;
public: DataTable* GetSchemaTable(); override 

Return Value

The System.Data.DataTable that describes the column metadata.
Remarks
GetSchemaTable returns metadata about the result set. The following columns are returned:
Column name Remarks
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. For a structured user-defined type zero is returned.
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. This set of columns may not be a minimal set of columns. The columns may be generated from a base table primary key, a unique constraint, or a unique index. false if the column is not included in a unique constraint.

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.
Requirements

.NET Framework
Version 2.0 or later

See Also

Reference

MimerDataReader Class
MimerDataReader Members