Initialization Properties Used
The following lists the initialization properties currently used by the
Table: 5.7.4.1.1. OLE-DB Initialization Properties
Property | Description |
---|---|
DBPROP_INIT_HWND | Passed as the value of the hwnd argument in |
DBPROP_INIT_PROMPT | Passed as the value of the fDriverCompletion parameter in |
DBPROP_INIT_MODE | Mapped to the ODBC connect option SQL_ACCESS_MODE. |
DBPROP_INIT_PROVIDERSTRING | Specifies extended properties for controlling ODBC Cursor Library usage (through the 'Cursors' keyword) and the whether bookmarks are exposed by default on rowsets (through the ' |
DBPROP_INIT_CATALOG | Sets the initial catalog for data sources which recognise catalogs. |
DBPROP_AUTH_USERID | Passed as the value of the UID keyword in |
DBPROP_AUTH_PASSWORD | Passed as the value of the PWD keyword in |
DBPROP_INIT_DATASOURCE | Passed as the value of the DSN keyword in |
DBPROP_INIT_TIMEOUT | Mapped to the ODBC connect option SQL_LOGIN_TIMEOUT. |
Setting and Getting Provider Properties
The data source object is the first object created when a consumer instantiates the provider by calling
The data source object provides the starting point for communications between the provider and consumer.
For example, a consumer can call The data source object is responsible for setting and returning information about the properties supported by the provider and exposing the list of supported keywords and literals.
This functionality is supported through the mandatory
-
GetProperties returns the list of properties currently set on the data source object.
-
GetPropertyInfo returns information about supported rowset and data source properties.
-
SetProperties sets the properties on the data source object.
The
-
GetKeywords returns a list of supported keywords.
-
GetLiteralInfo returns information about literals used in text commands.
Referenced by...