Hi,
I have a table XYZ which has a column as Item_Id. I had to create this with an identity seed but missed out. Now the table has been created in production. I want to alter this column to have a IDENTITY.
I tried the following syntax
Alter Table XYZ
Alter column Item_Id int Identity(1,1)
Go
But I am having a problem with the syntax. Can anybody help me with solving this small problem?
Thanks,
Warnie
I have a table XYZ which has a column as Item_Id. I had to create this with an identity seed but missed out. Now the table has been created in production. I want to alter this column to have a IDENTITY.
I tried the following syntax
Alter Table XYZ
Alter column Item_Id int Identity(1,1)
Go
But I am having a problem with the syntax. Can anybody help me with solving this small problem?
Thanks,
Warnie