To fully register a provider, you include a special entry for the OSP Data Object in the registration template file, RegisterProvider.reg. Including this entry eliminates the need to write code that loads the OSP Data Object and hands it off to the MSDAOSP.DLL.
Perform the following steps to fully register a provider:
Following are the entries that are written to the Windows registry after performing steps 1, 2, and 4 in the previous section.
The first group of registry entries, shown below, consists of entries listed under the CLSID subkey that are generated by running regsvr32.exe on MSDAOSP.DLL (step 1).
HKEY_CLASSES_ROOT
CLSID
{CLSID of MSDAOSP.DLL}
InprocServer32
(Default) = "C:\PROGRAMFILES\COMMON FILES\
SYSTEM\OLE DB\MSDAOSP.DLL”
OLE DB Provider
(Default) = "Microsoft OLE DB Simple Provider”
ProgID
(Default) = "MSDAOSP.1”
VersionIndependentProgID
(Default) = "MSDAOSP”
The second group of registry entries, shown below, consists of entries listed under the CLSID subkey that are generated by running regsvr32.exe on the provider DLL (step 2).
HKEY_CLASSES_ROOT
CLSID
{CLSID of OSP Data Object }
InprocServer32
(Default) = "Path of OSP DataObject DLL”
Threading Model = “Both”
ProgID
(Default) = "ProgID for the OSP Data Object”
VersionIndependentProgID
(Default) = "Version independent ProgID for this provider”
The third group of registry entries, shown below, lists the entries under the CLSID subkey that are generated after running the registration template file (step 4).
HKEY_CLASSES_ROOT
CLSID
{CLSID of your OLE DB Provider}
InprocServer32
(Default) = "C:\PROGRAMFILES\COMMON FILES\
SYSTEM\OLE DB\MSDAOSP.DLL”
OLE DB Provider
(Default) = "YOUR SIMPLE PROVIDER NAME”
ProgID
(Default) = "YOUR_PROGID.1”
VersionIndependentProgID
(Default) = "YOUR_PROGID”
OSP Data Object
(Default) = "ProgID of OSP Data Object”