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

Setting DBPROP_CURRENTCATALOG only affects the initial session created with the data source object. This might not be the expected behavior of setting this property.

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.

See Also

Reference

Properties (Alphabetical)