Rejuvenated: Script Creates and Drops for Candidate Keys and Referencing Foreign Keys

Posted by Adam Machanic on SQL Blog See other posts from SQL Blog or by Adam Machanic
Published on Mon, 05 Apr 2010 02:48:00 GMT Indexed on 2010/04/05 3:33 UTC
Read the original article Hit count: 648

Once upon a time it was 2004, and I wrote what I have to say was a pretty cool little script . (Yes, I know the post is dated 2006, but that's because I dropped the ball and failed to back-date the posts when I moved them over here from my prior blog space.) The impetus for creating this script was (and is) simple: Changing keys can be a painful experience. Sometimes you want to make a clustered key nonclustered, or a nonclustered key clustered. Or maybe you want to add a column to the key. Or remove...(read more)

© SQL Blog or respective owner

Related posts about foreign keys

Related posts about indexes