I have a column named FinderLogId
in a table named FinderLog
.
I wanna make it primary key and auto increment. What I tried is the following:
ALTER TABLE [gheymatyab.com_db].[dbo].[FinderLog]
ALTER COLUMN [FinderLogId] int NOT NULL IDENTITY PRIMARY KEY
And what I see in the result is this:
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'IDENTITY'.
Whats the problem?