i am using a column for Seuqence which is INT , NOT NULL , PK and AutoGenerated by 1 , to some extent it maintains the sequence but after a while it disturbs the sequence , here it is :
Identity will never decrease its value
1. If record is delete that value will never been assigned to othe record.
2. If insert fails that time also Identity is incremented. Though no record is inserted.
You need to insert record in such a way that first you need to get the Max (Id) + 1 from table and insert the record with this Id.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.