Following statement can reset seed
DBCC CHECKIDENT ('TableName', RESEED, 1)
but this time I have to change its increment .
Following statement can reset seed
DBCC CHECKIDENT ('TableName', RESEED, 1)
but this time I have to change its increment .
Hope this helps
ALTER TABLE MyCustomers
ALTER COLUMN CustId IDENTITY (200, 2)
Code from ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/ssmprog3/html/5719d3e4-14db-4073-bed7-d08f39416a39.htm
The following SQL statement does not work
ALTER TABLE MyCustomers ALTER COLUMN CustId IDENTITY (200, 2)
Can you give correct syntax ?
Was the T-SQL for this determined? The SQL statement originally posted by petergo and edited by Ian Quigley doesn't work for me, either. I get "Incorrect syntax near the keyword 'IDENTITY'." and adding the column data type to the alter statement doesn't help.