In Access I used a composite index of 2 fields, but unsure best option in MSSQL for performance to avoid a duplicate record of the combination of the 2 fields?
In the child table (relevant to topic) I have a foreign-key & a normal field.
I think I have 2 options?
In the child table (relevant to topic) I have a foreign-key & a normal field.
I think I have 2 options?
- Composite Index like in Access? Should I be concerned about Composite Index Fragmentation? Also creating an unnecessary index on a field.
- Trigger on creating the record to test if they exist & avoid creating the record if it does. I'm already going to have triggers so probably best to avoid this & simplify I imagine.
Last edited: