Re: ADO

From: Mike Epprecht \(SQL MVP\) (mike_at_epprecht.net)
Date: 02/13/05


Date: Sun, 13 Feb 2005 02:12:30 +0100

Hi

OLE DB, you need to usually use C++ as you are calling API's directly.
ADO.NET is the correct way of utilizing data access in .NET, including
ASP.NET.

When doing .NET development, you are not using the best tool for the job if
you are not using the managed .NET data providers, and means ADO.NET.
ADO is ASP.NET, IMHO, is for lazy developers who don't want to change any
code that they used to use in the bad ASP/VB6 days.

Eventually, ADO will no longer be supported, and ADO.NET is the way forward
for Microsoft.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"Hassan" <fatima_ja@hotmail.com> wrote in message
news:#xgat8VEFHA.3824@TK2MSFTNGP10.phx.gbl...
> Could you in lay man terms explain why one would use ADO instead of OLEDB
> directly ? And can we use ADO in ASP.net as well ?
>
> A simple example on using ADO vs using OLEDB would help ?
>
> Thanks
>
> "Mike Epprecht (SQL MVP)" <mike@epprecht.net> wrote in message
> news:uwFZ8lTEFHA.1348@TK2MSFTNGP14.phx.gbl...
> > Hi
> >
> > ADO is the programming interface to ODBC, OLE DB etc. It is a layer
above
> > the drivers, your assumption is correct.
> > It relies on the other components in the MDAC stack, plus data
> > driver/providers supplied by Microsoft and other vendors.
> >
> > DAO was used mostly for Microsoft Access (and later SQL Server) and was
> the
> > first non direct API interface, then came RDO, then ADO and now ADO.NET.
> >
> > All of the above 4 programming interfaces can communicate with ODBC and
> OLE
> > DB providers.
> >
> > Regards
> > --------------------------------
> > Mike Epprecht, Microsoft SQL Server MVP
> > Zurich, Switzerland
> >
> > IM: mike@epprecht.net
> >
> > MVP Program: http://www.microsoft.com/mvp
> >
> > Blog: http://www.msmvps.com/epprecht/
> >
> > "Hassan" <fatima_ja@hotmail.com> wrote in message
> > news:e397LgTEFHA.3120@TK2MSFTNGP12.phx.gbl...
> > > So is ADO just another data access component then ? And is it bundled
> with
> > > MDAC ?
> > >
> > > I thought ADO is a layer over ODBC or OLE DB and uses one of those
> > > components , but did not know it was another access component .
> > >
> > > "David Gugick" <davidg-nospam@imceda.com> wrote in message
> > > news:uU65JiNEFHA.548@TK2MSFTNGP14.phx.gbl...
> > > > Hassan wrote:
> > > > > Do front end apps have to use ADO to connect to SQL Server ? If
not,
> > > > > what else can they use ? Just trying to get familiar with the
> > > > > terminology from a client portion of the code that uses SQL Server
> > > >
> > > > ADO.Net, ADO, ODBC, RDO, dbLib, and so on.
> > > >
> > > > If you're writing an application in .Net, use the native SQL Server
> > > > driver. ADO and ODBC are good options as well.
> > > >
> > > >
> > > > --
> > > > David Gugick
> > > > Imceda Software
> > > > www.imceda.com
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Recommended data access model
    ... This is from MDAC 2.8 SDK. ... "The Role of ADO in MDAC ... The Microsoft Data Access Components provide data access that is ... easy-to-use interface to OLE DB. ...
    (comp.databases.ms-access)
  • Re: Table adapter ???
    ... ADO was a lightweight COM layer built on top of OLE DB. ... ADO and OLE DB updates came in downloads of the MDAC pack (Microsoft Data ... It also came with a OLE DB provider for ODBC which meant ...
    (microsoft.public.data.ado)
  • Re: ADO
    ... OLE DB is a data access paradigm designed to provide an object interface to ... OLE DB data "providers". ... The original question asked which is better: ADO or OLE DB. ...
    (microsoft.public.data.ado)
  • Re: Fujitsu ADO Data access guidance needed
    ... Microsoft SQL server, under Fujitsu PowerCobol v6.1 ... here stating that ADO is better. ... I'm hoping to come up with some simple code to perform typical COBOL ... First of all DO NOT use their control. ...
    (comp.lang.cobol)
  • Re: CADORecordBinding ... adDate
    ... That's ado ENUM reference "adDBTimeStamp". ... So, speaking from and OLE DB perspective, which is where I am when I do ... >> The sample in MSDN states using a DBDATE variable, ...
    (microsoft.public.data.ado)