|
-
Mar 14th, 2001, 06:06 AM
#1
Thread Starter
Member
I'm using Con.BeginTrans etc. so that i can wrap into one transaction a query that gets the MAX value of an id field out of my database and a query that then uses this with some other data to do an INSERT back into the database. Can anyone tell me how i can lock the whole table while the transaction runs to eliminate the possibility of two people getting the same MAX value for the id. This is the only way i could think of doing it.
Thanks in advance
Ian.
Ian Clarke BSc (Hons) - Web Applications Programmer
Ricardo Consulting Engineers Ltd.
Email : [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|