skip to main content
Developing ADO Applications : Supported OLE DB Property Groups : Initialization Property Group
 

Initialization Property Group

The following table provides the supported initialization properties for the ADO Client. The properties are read/write. For more information, refer to the Microsoft OLE DB programming documentation.
 
Table 13: Initialization Properties Supported by the ADO Client  
Property Name
Default Value and Description
DBPROP_AUTH_ PASSWORD
Specifies the password to be used for connecting to the data source or enumerator.
This corresponds to the Password connection attribute. See Connecting with a Provider String for more information about connection attributes.
DBPROP_AUTH_PERSIST_SENSITIVE_ AUTHINFO
VALUE=VARIANT_FALSE. The data source object cannot store the password or other sensitive authentication information.
DBPROP_AUTH_ USERID
Specifies the User ID to be used for connecting to the data source.
This corresponds to the User ID connection attribute. See Connecting with a Provider String for more information about connection attributes.
DBPROP_INIT_CATALOG
Specifies the name of the initial or default catalog to use when connecting to the data source.
DBPROP_INIT_ DATASOURCE
Specifies the name of the data source or enumerator to which to connect.
DBPROP_INIT_ HWND
Specifies the window handle to use if the data source object or enumerator needs to prompt for additional information.
DBPROP_INIT_LCID
Specifies the preferred locale ID for the consumer.
DBPROP_INIT_ MODE
VALUE=DB_MODE_READ. The default is read-only.
DBPROP_INIT_OLEDBSERVICES
VALUE=0. The data provider does not enable the OLE DB services.
DBPROP_INIT_PROMPT
VALUE=DBPROMPT_COMPLETE. Display a connection dialog only if missing information is needed.
DBPROP_INIT_ PROVIDERSTRING
Specifies a provider-specific string that contains extra initialization information. See Connecting with a Provider String for information about using the provider string.
Consumers should use this property only for provider-specific connection information as described in Defining Custom Properties.