The OLE DB sample consumer, SampClnt.exe, is a learning tool for application developers new to OLE DB. With it, you can learn about building OLE DB applications by displaying the code in the debugger. Although this application uses a simple interface to retrieve and log data, it demonstrates the general procedures that you need to follow to get data from an OLE DB provider that uses IOpenRowset as its only means of exposing data.
Sample Consumer Features
The sample consumer is a console application that interacts with the OLE DB sample provider, SampProv.dll. SampClnt.exe reads the data in the rowset exposed by SampProv.dll and writes it to the log file, SampClnt.out. The rowset is created over the entire data source, which is a comma-separated value file. SampClnt.exe uses the only command recognized by SampProv.dll, SELECT * FROM CUSTOMER.CSV, to request the data.
Sample Consumer Limitations
The following are limitations in SampClnt.exe: