MDAC 2.5 SDK - OLE DB Programmer's Reference
Appendix C: OLE DB Properties


 

DBPROP_CURRENTCATALOG

Property group: Data Source

Property set: DBPROPSET_DATASOURCE

Type: VT_BSTR

Typical R/W: R/W

Description: Current Catalog

The name of the current catalog. The consumer can use the CATALOGS schema rowset to enumerate catalogs.

Note   Some providers support changing the current catalog (database) on a connection through provider-specific mechanisms, such as executing SQL SET statements. However, to ensure interoperability and to prevent inconsistent provider states, consumers should instead change the current catalog by setting DBPROP_CURRENTCATALOG rather than by executing provider-specific statements.