Home Forums SQL Server 7,2000 T-SQL Generate Sequence Number Safely RE: Generate Sequence Number Safely
recycled
Mr or Mrs. 500
Points: 529
More actions
December 30, 2003 at 10:16 am
#488227
We use a table named LNUs (LastNumbersUsed) with an integer value for LNU. There is a trigger on the table to update the LNU = LNU + 1 from deleted and the current value of LNU is taken and then updated by a delete statement.