Re: DAO vs ADO
From: Joe Fallon (jfallon1_at_nospamtwcny.rr.com)
Date: 08/08/04
- Next message: david epsom dot com dot au: "Re: Access 2.0 Conversion to Access 2003"
- Previous message: Douglas J. Steele: "Re: Access 97 and Access 2003 runtime together"
- In reply to: Steve Jorgensen: "Re: DAO vs ADO"
- Next in thread: Mary Chipman: "Re: DAO vs ADO"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 8 Aug 2004 17:52:02 -0400
Steve,
Very interesting post.
I think your last statement is an excellent prediction.
I am also betting that MS is working hard on developing some sort of
Access.Net version.
(I do not have any inside info on this topic....)
-- Joe Fallon Access MVP "Steve Jorgensen" <nospam@nospam.nospam> wrote in message news:degah01rgi5volbm3qka0djiej42hthaea@4ax.com... > I believe it is not a universal truth that DAO/JET is less efficient than ADO > for querying server data. In fact, if you're not knowledgeable about all the > details of ADO operation and careful in implementation, ADO can incur a lot of > extra overhead retrieving metadata from the server for each query. Since PCs > are so fast these days, an extra layer of abstraction on the client, more or > less, is unlikely to be the bottleneck in a transaction that communicates > across a network, and then with a data store on a disk drive. > > I'm not actually saying DAO is preferable to ADO for accessing server data, > but I feel DAO is not as unsuitable as is often assumed. I used it > successfully with Access 97 C/S solutions for years before there was an ADO, > and that was on what would now be considered antique hardware. Also, I still > find that the tried and true Access MDB/DAO combination is much more stable > and predictable than ADP/ADO (or MDB/ADO which is an odd hybrid), so when > Access is the front-end, I've learned to stick mostly to DAO (except when I > want parameterized server SP calls or disconnected recordsets - and not with > forms) regardless of the back-end. This may change later if Microsoft > improves the ADP/ADO technology, but I'm thinking it's more likely that a > better Access.NET solution will arise first, and ADPs will never really take > off. > > On Sat, 07 Aug 2004 10:44:30 -0400, Mary Chipman <mchip@online.microsoft.com> > wrote: > > >The best rule of thumb to go by is: use DAO when working with local > >Access/Jet objects, and ADO when working with SQL Server data. In the > >case of DSN-less links, you are working with local Jet QueryDef > >objects. The links contain only connection info and not the actual > >tables, which makes DAO a good choice. If you were to create a > >recordset in code, you'd want to use ADO since it would be going > >against SQL Server to retrieve the data. Using DAO in this case would > >add additional overhead by loading Jet, making it very inefficient. > >FWIW, in a linked table app it is far more efficient to work with > >pass-through queries to execute stored procedures and the like, which > >you can also manipulate easily by using DAO to set the connection and > >.SQL properties. > > > >--Mary > >Microsoft Access Developer's Guide to SQL Server > >http://www.amazon.com/exec/obidos/ASIN/0672319446 > > > >On Fri, 6 Aug 2004 14:56:50 -0400, "Sirocco" <NB2002@arczip.com> > >wrote: > > > >>I found an article that contains DAO code to create a DSN-less link to SQL > >>Server. This is exciting to me because I thought ADO must be used when the > >>tables were on a SQL Server, and have been somewhat anxious about converting > >>my existing DAO to ADO, and have even started using ADO in some of my new > >>coding projects. Granted I'll have to re-code my existing VB when I > >>transfer my tables to a SQL back end, in particular to define my data > >>source, but can I in fact use DAO, as this article suggests? > >> > >>Also, generally, when using a SQL back end, when MUST I use ADO and when can > >>I just use my existing DAO? > >> > >>Many thanks in advance. > >> >
- Next message: david epsom dot com dot au: "Re: Access 2.0 Conversion to Access 2003"
- Previous message: Douglas J. Steele: "Re: Access 97 and Access 2003 runtime together"
- In reply to: Steve Jorgensen: "Re: DAO vs ADO"
- Next in thread: Mary Chipman: "Re: DAO vs ADO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|