The Catalog property specifies the name of the catalog in which the connection will initially be established.
Connection Object |
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) |
When establishing a connection using the Microsoft OLE DB Provider for SQL Server, the Catalog property is a database name.
String
Read/write
HRESULT GetCatalog(BSTR *pRetVal);
HRESULT SetCatalog(BSTR NewValue);