hi,
i wish to know how to set the initial value for the autoincrement in sql server.can anyone suggest me pls.
Thank u
How to set the autoincrement initial valiue in sql
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Micke BlomqvistRank #1,660 · 923 reputationPosted Feb 22, 2011, 1:37 AM EST
You set the initial value and the increment seed when you create the table:
CREATE TABLE [dbo].[test_table](
[id_col] [int] IDENTITY(1,1) NOT NULL,
[test_col] [varchar](50) NOT NULL
) ON [PRIMARY]
The first value after the IDENTITY is the initital value and the second one is the increment seed.
Shambhu55 reputationPosted Mar 14, 2011, 3:19 AM EDT
U can also do the same thing at design level. If the table is already created right click on table and go to design. then select the column u want to set identity and seed by increment value. set IsIdentity to Yes, increment to 1, and seeding 1.
U can ref. images also.
It will generate column value automatically with increment by 1.
Please, don't forget to mark as answered if you think my post was helpful, thank's!