Generating Indexes for Foreign Keys
Surprisingly, SQL Server doesn’t automatically create indexes just because you have a foreign key. So at the end of a development project, I just used the script below to generate the SQL needed. Copy Text Copied Use a different Browser select 'create index indx_'+t.name +'_' + c.name + ' on ' + t.name + '(' […]
Generating Indexes for Foreign Keys Read More »
