General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Carla
You can use a NEXTID type table to hold the last numeric value used by the table, then when you need the next value, you can obtain it from this table, then bump the id up by 1.
Kev
>Hi,
>
>I have a multiuser application, and some table have a numeric field that must be incremented before the TableUpdate.
>this field can´t be an identity column, so i have to find the last number in the table to replace this field with the new number before the tableupdate. How can I do this operation and without that another user can insert a new record with the same number.
>
>I`m using Remote Views and manual transactions.
>
>Thanks,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only