Find the property group and property ID for the property you want. (See OLE DB Properties in the OLE DB Programmer's Reference.)
In the provider code generated by the Wizard, find the property map corresponding to the property group. (The name of the property group usually corresponds to the name of the object. Command and rowset properties can be found in the command or rowset; data source and initialization properties can be found in the data source object.)
In the property map, add a PROPERTY_INFO_ENTRY macro. PROPERTY_INFO_ENTRY takes four parameters:
"DBPROP_"
) from the front of the property name. For example, if you want to add DBPROP_MAXROWS, pass MAXROWS
as the first element.DBPROPFLAGS_ROWSET | DBPROPFLAGS_READ | DBPROPFLAGS_WRITE
Note Some properties are connected or "chained" to other properties, such as bookmarks or updating. When a consumer sets one property to true, another property may also be set. The OLE DB Provider templates support this through the method CUtlProps::OnPropertyChanged. For an example of how to use OnPropertyChanged, see the MyProv: Sample.