SQL Script to create indexes for Foreign keys

Posted by Michael Freidgeim on June 5, 2011

http://stackoverflow.com/questions/278982/are-foreign-keys-indexed-automatically-in-sql-server
I've used SQL script similar to paul_nielsen's to Create Indexes for Foreign Keys and added “if not exists” condition
DECLARE @SQL VARCHAR(max); SET @SQL = ''

SELECT @SQL = @SQL +
'if not exists (select... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.