CDaoDatabase Members
Base Class Members
CDaoDatabase Members
Data Members
A pointer to the underlying DAO database object. |
|
A pointer to the CDaoWorkspace object that contains the database and defines its transaction space. |
Construction
Constructs a CDaoDatabase object. Call Open to connect the object to a database. |
Attributes
Returns nonzero if the database supports transactions. |
|
Returns nonzero if the CDaoDatabase object is updatable (not read-only). |
|
Returns the connection string used to connect the CDaoDatabase object to a database. Used for ODBC. |
|
Returns the name of the database currently in use. |
|
Returns the number of seconds after which database query operations will time out. Affects all subsequent open, add new, update, and edit operations and other operations on ODBC data sources (only) such as Execute calls. |
|
Returns the number of records affected by the last update, edit, or add operation or by a call to Execute. |
|
Returns the version of the database engine associated with the database. |
|
Returns nonzero if the CDaoDatabase object is currently connected to a database. |
|
Sets the number of seconds after which database query operations (on ODBC data sources only) will time out. Affects all subsequent open, add new, update, and delete operations. |
Operations
Closes the database connection. |
|
Creates the underlying DAO database object and initializes the CDaoDatabase object. |
|
Defines a new relation among the tables in the database. |
|
Deletes a querydef object saved in the database's QueryDefs collection. |
|
Deletes an existing relation between tables in the database. |
|
Deletes the definition of a table in the database. This deletes the actual table and all of its data. |
|
Executes an action query. Calling Execute for a query that returns results throws an exception. |
|
Returns the number of queries defined for the database. |
|
Returns information about a specified query defined in the database. |
|
Returns the number of relations defined between tables in the database. |
|
Returns information about a specified relation defined between tables in the database. |
|
Returns the number of tables defined in the database. |
|
Returns information about a specified table in the database. |
|
Establishes a connection to a database. |