Link to home
Start Free TrialLog in
Avatar of Robert Berke
Robert BerkeFlag for United States of America

asked on

MS Access table with KeyUID in two indexes.

I just noticed that our database's largest table has two indexes that appear to do nearly the same thing:

Index Name    Field Name  Primary Unique IgnoreNulls
PrimaryKey     KeyUID          Yes        Yes      No
IndexKeyUID   KeyUID         No         No       No

I am tempted to delete IndexKeyUID.  Is that a bad idea?

In fact, I am not sure I know if the index name really matters.  Could it be called "George" and still accomplish the same thing?
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and BTW, if you are enforcing RI, JET/ACE automatically created a hidden index on the child table, so if you've defined an index in a child table on the foreign key field, it's a dup and you can delete it.

 Another thing that will catch you; there is a feature in Access (look in options), that will automatically add an index if it see's a field with "ID", etc in it.   Do yourself a favor and turn the feature off.

Jim.
Avatar of Robert Berke

ASKER

Thanks for the tips
BTW  options>object designers > AutoIndex on Import/create   had ID;key;code;num

I deleted all 4.
rberke