The question was clear enough, as was the answer. Mark was trying to
see what the basis for the question was, thinking that you might be trying
to do this because you need a provider for OLE DB to work with CSV files.
Since you didn't specify either way what your reasoning for wanting to do
this when there is already something in place (for example, as a learning
exercise), Mark made a (IMO valid) guess as to what you were trying to do.
That being said, there is no sample in C# to create a custom OLE DB
provider. You can use the C++ sample, and convert it to C#, but be warned,
it is not a direct conversion, and will require a good amount of retooling
and interop (but it IS possible).
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
George said:
Hi Mark,
Maybe I have not make my question clear. I have not seen any relationship
between your reply and my question.
What you provide is how to use OLE DB provider (as an OLE DB consumer),
but
what I am looking for is how to implement OLE DB provider, here is the
related sample in C++,
http://msdn2.microsoft.com/en-us/library/ms715011.aspx
I am looking for a C# sample.
regards,
George