• Steven Willis (6/22/2011)


    Now a second question...I personally avoid using UNIQUEIDENTIFIER cols as part of a primary key. But sometimes I have no choice when I've inherited a schema from someone else. I've not found a way to avoid index scans on these cols. Any advice?

     

    Yes. Determine if the schema requires the primary key to be the clustered index. The two are not the same thing.

    Check out http://ask.sqlservercentral.com/questions/12/should-my-primary-key-be-clustered for starters.