Re: .NET data provider or OLEDB provider?



Hi Mark,

Having taught an OLE DB provider class and written material on ADO.NET data
providers.... (and written both)....

An OLE DB provider will be infinately more difficult to write. And to get
right. You can use it in a few more places (third party tools, SQL Server
linked servers, etc). There's an OleDb .NET "bridge" provider, but it only
supports a subset of OLE DB interfaces/properties.

A .NET data provider would be *much* easier. The model is simpler and there
are minimal (no) reference counting issues. I'd start with a .NET data
provider. Only problem (which could be bigger for ISAM style database) is
that the .NET model doesn't support scrollable, updateable cursors. .NET
provider model is written after the client-server/three tier model where
these are evil, so cursor support is left out. You could write your own
extension classes, though.

You could also write an ODBC driver, but the bridges (OLE DB provider for
ODBC and .NET Odbc "bridge" provider) are pretty flakey and hard for folks
(your clients) to work with. Some MS and third-party tools have dropped
support for accessing ODBC drivers through the bridges.

If you decide that Java is your only programming language/API environment,
JDBC driver is the way to go.

Oh, and there are third-party "your code goes here" toolkits/frameworks for
building OLE DB/ODBC/JDBC. And ATL provider templates for OLE DB. I don't
think there are toolkits for bulding ADO.NET data providers yet, maybe
because its lots easier?

Hope this helps,
Bob Beauchemin
http://www.SQLskills.com/blogs/bobb


"Mark" <swozz_@xxxxxxxxxxx> wrote in message
news:uTieN$j3FHA.3844@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> We have a propriety database format currently in use by a DOS program.
> There are some 1500 big customers using this system! The application that
> sits on this database is complex and a rewrite would be a 2 year project
> with massive upgrade/training issues at the end of it. This is why a
> rewrite hasn't been commisioned - it's expensive and risky for a small
> company to undertake even if it's 10 years overdue!
>
> To allow for a smoother less risky transition, we intend to rewrite the
> front end using a combination of Windows/Web based technology (.NET)
> whilst still utilizing the existing database. This will allow us the
> gradually replace the front end. Once this is complete, we can port the
> DOS database to something like SQL Server with relatively little
> modifications required for the newly written front end.
>
> This means that we need SQL access to the existing DOS based ISAM style
> data so that we can begin working on the new front end.
>
> The existing database was originally based on Borland Database Toolbox
> (1985?) but has been significantly modified to work in a multiuser
> environment.
>
> The way I see it, we could either write a .NET data provider or an OLEDB
> provider.
>
> If we write a .NET data provider then we will also have to write a query
> engine to support SQL type access. My question is that if we decide to
> write an OLEDB provider to access the ISAM database, is there already a
> Query Engine service that can take advantage of this provider to allow us
> to access the data using SQL?
>
> Any help much appreciated...
>
> --
> Best regards
> Mark
>
>


.



Relevant Pages

  • Problem with Linked Server from SQL to DB2
    ... I'm trying to setup a linked server from SQL to DB2 UDB. ... Microsoft provided OLE DB driver for DB2 and the IBM DB2 OLE DB ... -- Invalid schema or catalog specified for provider 'IBMDADB2'. ...
    (microsoft.public.sqlserver.server)
  • Re: VS.net installs sql express as default datastore for role/membersh
    ... I can use sql or access databases for dataaccess, ... Asp.net web site administration tool. ... Select provider configuration ... it seems easy to select an other database. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: application design problem
    ... Actual action is depends on your Provider which provide service for a particual database or data store. ... When I would click Button1 this sql would execute: ... I dont think its a good idea to put all your client spcific logic ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: question about mining external databases and exporting mining models into pmml
    ... have a provider that we can work with (OLE DB provider or .Net data ... I think Oracle has both an OLE DB provider and a managed ... On the second question: models' PMML may be exported with a statement like: ... database on sql server database engine. ...
    (microsoft.public.sqlserver.datamining)
  • Re: question about mining external databases and exporting mining models into pmml
    ... have a provider that we can work with (OLE DB provider or .Net data ... I think Oracle has both an OLE DB provider and a managed ... On the second question: models' PMML may be exported with a statement like: ... database on sql server database engine. ...
    (microsoft.public.sqlserver.datamining)

Loading