Full Registration

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.

Registration Steps

Perform the following steps to fully register a provider:

  1. Register the Simple Provider DLL (MSDAOSP.DLL) with regsvr32.exe.

  2. Register the OSP object. (For Visual C++ and Visual J++ users only; Visual Basic users will omit this step because that environment automatically registers the DLL.)
    • If you are using Visual C++ and have compiled and linked your OSP object (the DLL containing the OSP implementations and data source object), register it using regsvr32.exe.

    • If you are using Visual J++, register the Java class code for the OSP object using javareg.
  3. Copy, rename, and complete the RegisterProvider.reg template file.

  4. Double-click the RegisterProvider.reg file to import the settings into the Windows registry.

Windows Registry Entries

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”