Re: Fastest record create method with JET 4.0
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Tue, 12 Sep 2006 07:29:08 -0500
"pauladams777" <pauladams777@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3BC7659E-FA67-41CF-AD4A-FF30224AD493@xxxxxxxxxxxxxxxx
See interleaved below.......).
"Ralph" wrote:
Are you talking about using DAO in C++?
Yes - DAO in C++.
There are DAO classes in MFC. (Look up CDaoDatabase, CDaoWorkspace,
to
Unfortunately, in Borland C++, not Microsoft...
Here is something you might find interesting. It was written to show how
'backwards'convert DAO to ADO, but as you already know ADO you can read it
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaroffdev/html/godao.aspso to speak. It does point out all the basic differences.
That was informative, but without the matching MFC, somewhat obscure...
The DAO contains a ton of collections. They are the *Key* to getting the
most out of DAO. Easiest way to learn is just define one and go play.
multple
DAO with a local (or near <g>) MS Access database will be quicker. But
unless you are careful, it is very easy to write very inefficient code.
Unlike using ADO where there is often only one way, there are often
goways with subtle differences in DAO. (That's why you want to become good
friends with the collections named above.)
So if your first effort is a dog - Don't Panic! Open up the profiler and
Jetlooking. <g>
[If this doesn't work out. Next step is using OLE DB directly with the
4.0 for OLE DB provider. Which is only about 10/15% slower. But still
magnitudes faster than Automation.]
Anyway, hopes this helps.
-ralph
Thanks Ralph - all those tips are sure to come in handy!
Sorry to hear you are using Borland C++. [Surprised to learn those compilers
are still around. I thought you all had gone Java by now. <G>]
Would truly have been easier with MFC.
BUT, All is not lost - take a look at these articles...
http://www.codeguru.com/cpp/data/mfc_database/dao/article.php/c10359/
http://www.codeguru.com/cpp/data/mfc_database/dao/article.php/c4279/
As you will notice you don't need a wrapper, you can still use DAO directly
or write your own, it will be a mildly tougher ferreting out info, that's
all, but can be done. I know I have seen articles showing how to use OLE DB
from Borland, so there must be some DAO stuff out there as well.
Just need to dig deeper.
Give it a try. If you get stuck holler back.
-ralph
.
- References:
- Re: Fastest record create method with JET 4.0
- From: Ralph
- Re: Fastest record create method with JET 4.0
- Prev by Date: Re: Fastest record create method with JET 4.0
- Next by Date: Re: Data from MS SQL db to Excel
- Previous by thread: Re: Fastest record create method with JET 4.0
- Next by thread: Re: Fastest record create method with JET 4.0
- Index(es):
Relevant Pages
|
|