SQL provider

D

Duncan Winn

I am WRITING (not using) an ADO.NET provider to provide access to my custom
data source (C++ classes). My clients are hoping to access the data in my
classes, through the provider, using SQL, however my data source does not
support SQL. Will I have to parse the SQL to get the relevant data from the
data source, or does the provider have classes or components that
automatically do this?
 
N

Nicholas Paldino [.NET/C# MVP]

Duncan,

You will have to do this yourself. The SQL provider might do some
parsing, but those APIs are not exposed, and a good part of the work is
being done on the server anyways. The provider is just issuing the commands
to the server.

You will want to write your own or find a third party component that
does this. You might be able to pick up the SQL 92 language specification
in BNF notation, and then run it through some sort of parser/analyzer to
generate classes that will do the parsing for you, creating programattic
representations of the language elements.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top