MDAC 2.5 SDK - Technical Articles


 

The TRUSTEE Schema

The TRUSTEE schema enumerates the trustees for a data source. For information about schema rowsets, see Appendix B, "Schema Rowsets," in the OLE DB Programmer's Reference.

To get the TRUSTEES rowset, use the GetRowset method of the IDBSchemaRowset interface.

This following table lists the GUID and the restrictions that are available for the TRUSTEES rowset.

GUID Number of
restrictions
Restriction columns
DBSCHEMA_TRUSTEE 4 TRUSTEE_NAME
TRUSTEE_GUID
TRUSTEE_PROPID
TRUSTEE_TYPE

The TRUSTEES rowset identifies the trustees defined in the data source. It contains the columns described in the following table.

Column name Type indicator Description
TRUSTEE_NAME DBTYPE_WSTR Trustee name.
TRUSTEE_GUID DBTYPE_GUID GUID that uniquely identifies the trustee. Providers that do not use GUIDs to identify trustees should return NULL in this column.
TRUSTEE_PROPID DBTYPE_UI4 PropID that uniquely identifies the trustee. Providers that do not use PropIDs to identify trustees should return NULL in this column.
TRUSTEE_TYPE DBTYPE_UI4 Trustee type. One of the following:

TRUSTEE_IS_UNKNOWN—The trustee is an unknown type but not necessarily an invalid type.

TRUSTEE_IS_USER—The trustee account is a user account.

TRUSTEE_IS_GROUP—The trustee is a group account.


Default Sort Order: TRUSTEE_NAME, TRUSTEE_GUID, TRUSTEE_PROPID, TRUSTEE_TYPE