CDaoTableDef::GetAttributes

long GetAttributes( );
throw( CDaoException, CMemoryException );

Return Value

Returns a value that indicates one or more characteristics of a CDaoTableDef object.

Remarks

For a CDaoTableDef object, the return value specifies characteristics of the table represented by the CDaoTableDef object and can be a sum of these constants:

Constant Description
dbAttachExclusive For databases that use the Microsoft Jet database engine, indicates the table is an attached table opened for exclusive use.
dbAttachSavePWD For databases that use the Microsoft Jet database engine, indicates that the user ID and password for the attached table are saved with the connection information.
dbSystemObject Indicates the table is a system table provided by the Microsoft Jet database engine.
dbHiddenObject Indicates the table is a hidden table provided by the Microsoft Jet database engine.
dbAttachedTable Indicates the table is an attached table from a non-ODBC database, such as a Paradox database.
dbAttachedODBC Indicates the table is an attached table from an ODBC database, such as Microsoft SQL Server.

A system table is a table created by the Microsoft Jet database engine to contain various internal information.

A hidden table is a table created for temporary use by the Microsoft Jet database engine.

For more information on tabledefs, see the articles DAO Tabledef and DAO Tabledef: Using Tabledefs in Visual C++ Programmer's Guide. For related information, see the topic "Attributes Property" in DAO Help.

CDaoTableDef OverviewClass MembersHierarchy Chart

See Also   CDaoTableDef::SetAttributes