i set id as identity(1,1) column,i entered about 10 columns,i deleted the data.
after if we are entering data id starts at 11.but i need to start from 1.
can anyone says this............
plz urgent?
About identity column
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 28, 2013, 1:55 AM EDT
delete will not reset the identity so truncate the data.
sql query to truncate:
Truncate Table Tablename
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 28, 2013, 1:54 AM EDT
After deleting you need to reset the identity value like this
DBCC CHECKIDENT('YourTableName', RESEED, 1)
Regards,
Iftikar
Rosi Sreenivasa Reddy137 reputationPosted Aug 28, 2013, 2:31 AM EDT
your logic is working but it is starting number as 2 .
DBCC CHECKIDENT('YourTableName', RESEED, 1) instead of 1 we have to set as 0 it is perfectly working.......................