Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Generate index on foreign key columns

By tklimczak,

This scrip can be usefull to automaticy create missing index on Fkey's.

This script is very easy to change to:

  • Present all (or missing) primary and foreign key and indexes in database,
  • Check if index name are consistent with code standard

Total article views: 2948 | Views in the last 30 days: 9
 
Related Articles
FORUM

index

index

FORUM

Index

Index

FORUM

Index

index

FORUM

Indexes

Clustered Index and Nonclustered Index

Tags
indexing    
 
Contribute