Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

OLE DB Sample Provider

The OLE DB sample provider, SAMPPROV.DLL, is a learning tool for developers new to OLE DB. Users can display the source code in the debugger to learn about building OLE DB providers. Although this provider uses a simple interface to access data in the underlying data source, it demonstrates the general procedures that developers need to follow when using IOpenRowset to expose rowsets over a file-based data source.

The sample provider offers access to a fixed-length text data file using OLE DB interfaces. The purpose of the sample provider is purely illustrative, and the capabilities of the sample provider are limited; these limitations are discussed in Sample Provider Limitations.

The sample provider opens the sample data file and enables the consumer to read the data, using the IRowset interface, in a forward-only fashion. The consumer can update or delete the current row but cannot add new rows.

This section includes the following topics:

© 2015 Microsoft