Created
December 26, 2013 21:08
-
-
Save JamesSkemp/8138701 to your computer and use it in GitHub Desktop.
SQL to add a new identity column to an existing table.
This file contains hidden or 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
-- See http://stackoverflow.com/a/3698824/11912 | |
alter table JobSupplies add Id INT IDENTITY | |
alter table JobSupplies add constraint PK_JobSupplies primary KEY(Id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will be maintained at https://gist.github.com/JamesSkemp/5a481d8c46dc4e7df3a7