Re: Way to interface with Dataset through ODBC or OLE?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Nov 6, 1:25 pm, Andrew Faust <andrew [at] andrewfaust.com> wrote:
Writing an ODBC driver is not trivial. You basically have to create a
standard Win32 DLL (not-managed) that exposes an interface conforming to the
ODBC standard. Your DLL can call in to managed code for the bulk of the
processing, but you'd still have to deal with formatting responses correctly.
I looked in to it once for work and was able to build a very basic proof of
concept driver to do a simple read of all records on a table.

If I can track down the code to my POC I'll post it on my website and
provide a link. I had changed source control since then, though, and didn't
bring it across. I'll need to dust off some backups.

The resources I used were the Open Source ODBC drivers for PostgreSQL & SQL
Lite as well as the ODBC API documentation in the MSDN library.

Depending on how databases are going to be accessed you may not need to do
this. You could build a set of classes that inherit from DbConnection,
DbCommand, DbDataReader, etc. that provides access. This would allow .Net
coders to access your database via standard .Net development. The downside is
it would only work for .Net development. Other tools that only talk to plain
ODBC wouldn't work.

--
Andrew Fausthttp://www.andrewfaust.com




Andrew,

Unfortunately, I wanted to avoid a .NET dependency - if I was going to
go to all the trouble to create classes inheriting from
System.Data.Db*, I'd just as soon spit out the resultant Dataset and
have the app deal with it clientside.

If you can find the POC, I'd be grateful. I'd at least like to give it
a shot if there's at least a basic framework to go by - and the real
benefit is that it would only need to accept SELECT statements, as
this is a one-way connection.

Thanks!

.



Relevant Pages

  • Re: How to I write DBASE files without ODBC
    ... HTML, XML, SQLite - they are ok. ... not only standard field types. ... ODBC is good for this, but I want to create standalone exe, without ...
    (comp.lang.python)
  • Re: Database Model - Class, objects and interaction [LONG]
    ... If you implement an ODBC driver or JDBC driver for your back end, ... I have an ODBC client which makes a request. ... Is it standard, ... You can also make available a JDBC driver, ...
    (comp.object)
  • Re: Windows Ada database support.
    ... But I meant data bases, ... ODBC is just that a cross-platform standard to access any ... abstracts SQL, but you still have to use SQL. ...
    (comp.lang.ada)
  • Re: Testing for the existence of a table
    ... "Greg Shannan" wrote in message ... > I am using ODBC with an ingres database; and I don't really want to open a ... > I'm just wondering if there is a standard way in ado with ODBC. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Kein ODBC Support im SQL Server 2005 x64?
    ... Es gibt *keinen* ODBC Support im SQL Server 2005 x64 Standard mehr. ... Den Provider MSDASQL gibt es nicht mehr unter SQL2005 x64!! ...
    (microsoft.public.de.sqlserver)