I have a table with an identity field (Sql Server 7). I want a script to scan the table and return the record before a gap in the sequence.
(I have a gap in the sequence when a transaction failed and the inserted record is removed.)
Is it possible to do without creating a cursor to loop through the data?
thanks for your help,
Brit
(I have a gap in the sequence when a transaction failed and the inserted record is removed.)
Is it possible to do without creating a cursor to loop through the data?
thanks for your help,
Brit