Say an example
you have last value of auto increment field is 10 in deleted records and now want to add new record then increment value would be 11 if step is 1.
So what to do if we want to reevalutate value of autoincrement to 1.
Just fire below syntax
DBCC CHECKIDENT(table Name,RESEED,0)
This will reevalute value of autoincrement field to 0.
Hope this will be useful ....
No comments:
Post a Comment