CRestrictions::Open

Returns a result set according to the user-supplied restrictions.

HRESULT Open(
   const CSession& session,
   LPCTSTR lpszParam 1 = NULL,
   LPCTSTR lpszParam 2 = NULL,
   LPCTSTR lpszParam 3 = NULL,
   LPCTSTR lpszParam 4 = NULL,
   LPCTSTR lpszParam 5 = NULL,
   LPCTSTR lpszParam 6 = NULL,
   LPCTSTR lpszParam 7 = NULL,
   bool bBind = true
);

Parameters

  • session
    [in] Specifies an existing session object used to connect to the data source.

  • lpszParam
    [in] Specifies the restrictions on the schema rowset.

  • bBind
    [in] Specifies whether to bind the column map automatically. The default is true, which causes the column map to be bound automatically. Setting bBind to false prevents the automatic binding of the column map so that you can bind manually. (Manual binding is of particular interest to OLAP users.)

Return Value

One of the standard HRESULT values.

Remarks

You can specify a maximum of seven restrictions on a schema rowset.

See IDBSchemaRowset for information about the defined restrictions on each schema rowset.

Requirements

Header: atldbsch.h

See Also

Reference

CRestrictions Class

Schema Rowset Classes and Typedef Classes

Other Resources

CRestrictions Members