Unique Incremental Number for Each Inserted Row without Using an IDENTITY Column
If you need to generate a unique incremental number for each inserted row without using an IDENTITY column, you must protect the MAX() value lookup inside a transaction. This prevents …
