Collection Name
| Number of restrictions |
Remarks
|
---|---|---|
Catalogs |
1
|
Lists all connected catalogs.
When restricted by name mask, returns all catalogs that match the mask.
|
Columns |
3
|
Returns list of columns, their type and some extra information.
|
DatasourceInformation |
0
|
Returns information about the data source.
|
DataTypes |
0
|
Returns information about data types supported by the data source.
|
ForeignKeyColumns |
3
|
Returns list of columns used by foreign keys in the catalog.
Restrict it with catalog name, table name, and the foreign key name pattern.
|
ForeignKeys |
3
|
Returns list of columns that participate in foreign keys.
|
IndexColumns |
4
|
Returns list of indexed columns in the catalog, their type and some extra information.
Restrict it with catalog name, table name, index name pattern, and column name pattern.
|
Indexes |
3
|
Returns list of indexes and their details.
|
MetaDataCollections |
0
|
Returns this list. Same as using GetSchema() method without parameters.
|
PrimaryKeys |
2
|
Returns list of columns that participate in primary keys.
|
ReservedWords |
0
|
Lists all reserved words used in the server.
|
Restrictions |
0
|
Returns list of possible restrictions and their default values for the metadata collections.
|
Tables |
2
|
GetSchema("Tables") returns list of tables in "main" catalog.
|
UniqueKeys |
2
|
|
ViewColumns |
3
|
Returns list of columns used by views in the catalog.
Restrict it with catalog name, table name and column name.
|
Views |
2
|
GetSchema("Views") returns list of views in "main" catalog.
|
原文:http://www.cnblogs.com/geovindu/p/4362420.html