Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Increment numeric fields without Identity columns.
Message
From
11/12/2001 11:06:42
 
 
To
11/12/2001 11:02:21
Carla Silva
Http - Produtos Informaticos, Lda.
Odivelas, Portugal
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00592696
Message ID:
00592699
Views:
19
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
Map
View

Click here to load this message in the networking platform