MDAC 2.5 SDK - OLE DB Providers
OSP Toolkit
ADO, as an OLE DB consumer, makes requests to a provider to access data sources and retrieve the desired information. In ADO, you supply the name of the provider either as part of a connection string or in the Provider property of the Connection object. The steps to make the connection depend on whether your OSP is registered as a full OLE DB provider.
To make a connection if your OSP is registered as a full OLE DB provider
The corresponding code follows:
con.Provider = "SampleOSP_VB"
con.Open
rs.Open " C:\Platform SDK\Samples\DataAccess\Samples\Osp\Customer.txt", con
To make a connection if your OSP is not registered as a full OLE DB provider but its data source object is registered
The corresponding code follows:
con.Provider = "MSDAOSP"
con.Properties("Data Source") = "SampleOSP_VB.MyDataSource"
con.Open
rs.Open " C:\Platform SDK\Samples\DataAccess\Osp\Customer.txt", con