Best way to allocate record numbers (1 Viewer)

penfold1992

Registered User.
Local time
Today, 00:05
Joined
Nov 22, 2012
Messages
169
Hello All,

What is the best way to allocate a record number to the end user?

I have had problems where users have come back to me saying that both of them created the same record number at the same time and I am not sure why that is happening.

To be certain, I am using INSERT rather than UPDATE which was my initial concern (an update would just over write the previous record)

How can we check the last value, uniquely assign that value to a person at the point of creating the record and ensure that no one else can take it...
Is it possible that a laggy server would cause these issues? (as the code executes roughly the same time as another person also executes code, they overlap?)

Kind Regards,
Penfold
 

Users who are viewing this thread

Top Bottom