TABLE_CONSTRAINTS Rowset

OLE DB Programmer's Reference

GUID: DBSCHEMA_TABLE_CONSTRAINTS

Number of restriction columns: 7

Restriction columns: CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, CONSTRAINT_NAME, TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, CONSTRAINT_TYPE

Default sort order: CONSTRAINT_CATALOG, CONSTRAINT_SCHEMA, CONSTRAINT_NAME, TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, CONSTRAINT_TYPE

Description: The TABLE_CONSTRAINTS rowset identifies the table constraints defined in the catalog that are owned by a given user.

Column name Type indicator Description
CONSTRAINT_CATALOG DBTYPE_WSTR Catalog name. NULL if the provider does not support catalogs.
CONSTRAINT_SCHEMA DBTYPE_WSTR Unqualified schema name. NULL if the provider does not support schemas.
CONSTRAINT_NAME DBTYPE_WSTR Constraint name.
TABLE_CATALOG DBTYPE_WSTR Catalog name in which the table is defined. NULL if the provider does not support catalogs.
TABLE_SCHEMA DBTYPE_WSTR Unqualified schema name in which the table is defined. NULL if the provider does not support schemas.
TABLE_NAME DBTYPE_WSTR Table name.
CONSTRAINT_TYPE DBTYPE_WSTR Constraint type. One of the following:
"UNIQUE"
"PRIMARY KEY"
"FOREIGN KEY"
"CHECK"
IS_DEFERRABLE DBTYPE_BOOL VARIANT_TRUE—The table constraint is deferrable.

VARIANT_FALSE—The table constraint is not deferrable.

INITIALLY_DEFERRED DBTYPE_BOOL VARIANT_TRUE—The table constraint is initially deferred.

VARIANT_FALSE—The table constraint is initially immediate.

DESCRIPTION DBTYPE_WSTR Human-readable description of the column

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net