We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
An autoincrement field is specified as
fieldname int IDENTITY NOT NULL
To reset the increment counter:
DBCC CHECKIDENT ('tablename', RESEED, 0);
-- rowguid uniqueidentifier ROWGUIDCOL NOT NULL, rowguid uniqueidentifier DEFAULT newid() NOT NULL, CONSTRAINT constraintname PRIMARY KEY (rowguid)
There was an error while loading. Please reload this page.