Roy Frieband
2004-07-04 19:12:22 UTC
Hi,
I have an autoincrement routine for generating unique integer primary keys.
Obviously this need to be done so 2 users can never get the same primary
key. Both CFTRANSACTION and a named CFLOCK seem to work to protect this
process. Is one safer or better than the other? Is there any reason to use
them both, i.e. a named lock inside of a transaction?
--
Regards,
Roy F.
To Reply by email remove NOMORESPAM from the email address
I have an autoincrement routine for generating unique integer primary keys.
Obviously this need to be done so 2 users can never get the same primary
key. Both CFTRANSACTION and a named CFLOCK seem to work to protect this
process. Is one safer or better than the other? Is there any reason to use
them both, i.e. a named lock inside of a transaction?
--
Regards,
Roy F.
To Reply by email remove NOMORESPAM from the email address