Re: Jet >SQL conversion
From: Albert D. Kallal (PleaseNOOOsPAMMkallal_at_msn.com)
Date: 07/31/04
- Next message: Douglas J. Steele: "Re: Change Access 2003 macro security from VBA"
- Previous message: Albert D. Kallal: "Re: Change Access 2003 macro security from VBA"
- In reply to: Kevin: "Re: Jet >SQL conversion"
- Next in thread: Kevin: "Re: Jet >SQL conversion"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 31 Jul 2004 00:18:46 -0600
"Kevin" <BudStJohn@hotpop.com> wrote in message
news:410AFE9D.6070505@hotpop.com...
> Oh, thank you Albert! I was reacting to Rick Dobson's statement on page
> 1 paragraph 1 of Programming Access 2003: "While DAO can still perform a
> few selected tasks for the Jet engine that are impossible or very
> difficult to do with ADO, accessing data from sources other than Jet
> using DAO can be very awkward or impossible depending on the context."
> Other statements reinforce this.
The above is actually true to a point. You can for example build a dao
connect object (this is called jet direct), but ado is more suited to this.
The same applies to ado, and building, or executing stored procedures on the
server side (ado is again somewhat better).
However, for existing stuff, and most stuff, dao is ok. I mean, sure...if
you start a new application, then I certainly would suggest using ado when
working with sql server, but really, linked dao tables work just fine.
> But the tip about combo boxes is interesting:
> many of my forms have a dozen or so combo boxes on them, and some load
> pretty slowly, even with a one-record recordset. I wonder if populating
> the rowsource OnEnter into the combobox control and dropping it OnExit
> would speed things up for those that don't use dataless keys?
You certanly can consier the above. As metnoend, after just a few combo
boxes, the form will start to load slow. However, if you read carauflay, not
only do I mention to create a vew, but ALSO to make sure you do NOT use sql
in the combo box souce, but JUST the view you created on the server side.
This approach speeds things up quite a bit (saves the sql load and
translation). So, building a view and useing that for the combo souce does
make things more snappy. This means you can get away with more combo boxes
and not having to write a lot of code. The fastest way to solve the combo
box load stuff is to use a call back function, but then we are talking more
work.
> With the exception of the few forms which load slowly, as above,
> performance hasn't been an issue, and this app can have several hundred
> thousand records in a number of related tables. It's the occasional
> compact and repair which pops up that's more of a reason to move to SQL.
>
> I'm afraid Mr. Dobson gave me quite a scare... thanks for ameliorating it!
You are correct that upsizing to sql is some work, but the secret is to get
things working, and the attach each performance bottle neck one by one. And,
of course from a reliability and security point of view...sql server is
certainly a good path to go.
-- Albert D. Kallal (Access MVP) Edmonton, Alberta Canada pleaseNOOSpamKallal@msn.com http://www.attcanada.net/~kallal.msn
- Next message: Douglas J. Steele: "Re: Change Access 2003 macro security from VBA"
- Previous message: Albert D. Kallal: "Re: Change Access 2003 macro security from VBA"
- In reply to: Kevin: "Re: Jet >SQL conversion"
- Next in thread: Kevin: "Re: Jet >SQL conversion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|