- Local time
- Today, 03:07
- Joined
- Feb 19, 2002
- Messages
- 46,413
I used SSMA today for the first time in years to convert an old Access application and discovered a bug.
NONE of the hidden FK indexes were converted. Just to remind you all, when you create a FK relationship using the Relationship window, Access automagically creates an index on the FK field and names it "yourtablenameyourFKname". This index does NOT show up when you view the index dialog but you can see it if you run a documentation tool. If you make a mistake and create your own index on this field, you end up with two indexes on the same field and this I think might be one of those things that causes corruption as well as slowness.
I know I can create a bunch of CREATE .. INDEX statements but why is MS making me do this?
I installed SQL Server 2022 last month so of course the old version won't work so I downloaded version 9.5 for Access 32-bit and here I am, a very unhappy camper.
I would be very happy if someone were to tell me that SQL Server 2022 doesn't care, that it also creates a hidden index if the stupid DBA doesn't do it.
PS,
Does anyone have a query to share that will list all the indexes in a SQL Server database along with it’s type and a row for each column?
NONE of the hidden FK indexes were converted. Just to remind you all, when you create a FK relationship using the Relationship window, Access automagically creates an index on the FK field and names it "yourtablenameyourFKname". This index does NOT show up when you view the index dialog but you can see it if you run a documentation tool. If you make a mistake and create your own index on this field, you end up with two indexes on the same field and this I think might be one of those things that causes corruption as well as slowness.
I know I can create a bunch of CREATE .. INDEX statements but why is MS making me do this?
I installed SQL Server 2022 last month so of course the old version won't work so I downloaded version 9.5 for Access 32-bit and here I am, a very unhappy camper.
I would be very happy if someone were to tell me that SQL Server 2022 doesn't care, that it also creates a hidden index if the stupid DBA doesn't do it.
PS,
Does anyone have a query to share that will list all the indexes in a SQL Server database along with it’s type and a row for each column?
Last edited: