CDaoWorkspace Members

Base Class Members

CObject Members

Data Members

m_pDAOWorkspace

Points to the underlying DAO workspace object.

Construction

CDaoWorkspace

Constructs a workspace object. Afterwards, call Create or Open.

Attributes

GetIsolateODBCTrans

Returns a value that indicates whether multiple transactions that involve the same ODBC data source are isolated via forced multiple connections to the data source.

GetName

Returns the user-defined name for the workspace object.

GetUserName

Returns the user name specified when the workspace was created. This is the name of the workspace owner.

IsOpen

Returns nonzero if the workspace is open.

SetIsolateODBCTrans

Specifies whether multiple transactions that involve the same ODBC data source are isolated by forcing multiple connections to the data source.

Operations

Append

Appends a newly created workspace to the database engine's Workspaces collection.

BeginTrans

Begins a new transaction, which applies to all databases open in the workspace.

Close

Closes the workspace and all of the objects it contains. Pending transactions are rolled back.

CommitTrans

Completes the current transaction and saves the changes.

CompactDatabase

Compacts (or duplicates) a database.

Create

Creates a new DAO workspace object.

GetDatabaseCount

Returns the number of DAO database objects in the workspace's Databases collection.

GetDatabaseInfo

Returns information about a specified DAO database defined in the workspace's Databases collection.

GetWorkspaceCount

Returns the number of DAO workspace objects in the database engine's Workspaces collection.

GetWorkspaceInfo

Returns information about a specified DAO workspace defined in the database engine's Workspaces collection.

Idle

Allows the database engine to perform background tasks.

Open

Explicitly opens a workspace object associated with DAO's default workspace.

RepairDatabase

Attempts to repair a damaged database.

Rollback

Ends the current transaction and does not save the changes.

Database Engine Properties

GetIniPath

Returns the location of the Microsoft Jet database engine's initialization settings in the Windows registry.

GetLoginTimeout

Returns the number of seconds before an error occurs when the user attempts to log in to an ODBC database.

GetVersion

Returns a string that contains the version of the database engine associated with the workspace.

SetDefaultPassword

Sets the password that the database engine uses when a workspace object is created without a specific password.

SetDefaultUser

Sets the user name that the database engine uses when a workspace object is created without a specific user name.

SetIniPath

Sets the location of the Microsoft Jet database engine's initialization settings in the Windows registry.

SetLoginTimeout

Sets the number of seconds before an error occurs when the user attempts to log in to an ODBC data source.

See Also

Reference

CDaoWorkspace Class

Hierarchy Chart