Created
October 4, 2018 22:01
-
-
Save sqldeployhelmet/797b1bfd78aae1ca5fef64abaad60a5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE dbo.superbusytable DROP CONSTRAINT PK_BestKeyEver | |
GO | |
ALTER TABLE dbo.superbusytable | |
ADD CONSTRAINT PK_BestKeyEver | |
PRIMARY KEY CLUSTERED (id, insertdate ) ON ps_MonthlyWindow(insertdate); -- insertdate is an ever increasing date, we'll never be inserting "old" records | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment