Jerry, thanks for your reply. BTW my application uses a Jet database.
I did just what you suggested and googled. The results were appalling
to say the least. Why did Microsoft put the switch for an important
development feature in the registry of all places? Access 2003 is a
mature product; an option on an Access menu (Tools -> Database
Utilities perhaps) is a far more appropriate and sensible spot for it.
Anyway, I ran a query like this:
SELECT column FROM table ORDER BY column
where "column" was the FIRST of the three in the primary key.
Here's what came out:
- Inputs to Query -
Table 'run_schedule'
Using index 'PrimaryKey'
Having Indexes:
PrimaryKey 509 entries, 4 pages, 509 values
which has 3 columns, fixed, unique, primary-key, no-nulls
- End inputs to Query -
01) Scan table 'run_schedule'
Using index 'PrimaryKey'
However running the same query against either of the other two columns
gives this:
- Inputs to Query -
Table 'run_schedule'
- End inputs to Query -
01) Sort table 'run_schedule'
.... which is just what Gunny predicted.
It turns out that this particular table has far too few rows to become
a performance bottleneck, but the lesson was meaningful nevertheless;
I learned that there's a showplan feature for Jet and I learned
something about multi-column primary keys (which may come in handy
later on).
Thanks all for your help!
Rick