The Catalog property specifies the name of the catalog in which the connection is initially established.
object.Catalog [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list. |
value | Name of a catalog (for example, a database). |
String
Read/write
HRESULT GetCatalog(BSTR *pRetVal);
HRESULT SetCatalog(BSTR NewValue);
When the connection uses the Microsoft® OLE DB Provider for SQL Server, the Catalog property is a database name.