CDaoWorkspaceInfo Structure

The CDaoWorkspaceInfo structure has the following form:

struct CDaoWorkspaceInfo
{
   CString m_strName;           // Primary
   CString m_strUserName;       // Secondary
   BOOL m_bIsolateODBCTrans;    // All
};

The CDaoWorkspaceInfo structure contains information about a workspace defined for data access objects (DAO) database access. The workspace is an object of class CDaoWorkspace. The references to Primary, Secondary, and All above indicate how the information is returned by the GetWorkspaceInfo member function in class CDaoWorkspace.

Members

m_strName

Uniquely names the workspace object. To retrieve the value of this property directly, call the querydef object’s GetName member function. For more information, see the topic "Name Property" in DAO Help.

m_strUserName

A value that represents the owner of a workspace object. For related information, see the topic "UserName Property" in DAO Help.

m_bIsolateODBCTrans

A value that indicates whether multiple transactions that involve the same ODBC database are isolated. For more information, see CDaoWorkspace::SetIsolateODBCTrans. For related information, see the topic "IsolateODBCTrans Property" in DAO Help.

Comments

Information retrieved by the CDaoWorkspace::GetWorkspaceInfo member function is stored in a CDaoWorkspaceInfo structure. CDaoWorkspaceInfo also defines a Dump member function in debug builds. You can use Dump to dump the contents of a CDaoWorkspaceInfo object. For information on using this and other MFC DAO Info structures, see the article DAO Collections: Obtaining Information About DAO Objects in Visual C++ Programmer's Guide.

See Also   CDaoWorkspace