User Profile
Collapse
-
That is not acceptable in this case. The reason being it is a legacy app that generates autonumbers for different ranges for many different entities. Basically, if I were to use an identity column, I would have to have a different table for each entitiy, which would mean about 500 different tables. -
Concurrency Issue
Hello All,
Basically I am trying to implement assigning of unique consecutive integers from a particular row in a table in MSSQL 2000.
Example pseudocode:
<code>
SET ISOLATION LEVEL REPEATABLE READ
SELECT @VAR1 = NextAvailableNu mberColumn FROM TheTable WHERE pk=@pk
UPDATE TheTable SET NextAvailableNu mberColumn = @VAR1 + 1 WHERE pk=@pk
RETURN @VAR1
...
No activity results to display
Show More
Leave a comment: