SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

NEWID vs NEWSEQUENTIALID: What Each Does to Your Index

NEWID vs NEWSEQUENTIALID decides whether new uniqueidentifier keys land at random in your clustered index or in order at the end. This post loads 20,000 rows with each default, measures pages, fullness and fragmentation, and shows the limits of NEWSEQUENTIALID. It also answers what happens when you switch the default on a table that already has rows.

Continue Reading