Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)

OLE DB Programmer's Reference

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.

1998-2001 Microsoft Corporation. All rights reserved.

Категории