I need to insert a record and then retrieve the value of the autonumber field associated with the record. I can easily do this with an insert followed by a select max(id) from table1 (where id is an autonumber field). What I'm looking for is how to ensure that two inserts at the same time don't return the same value for "ID".
In Cold Fusion, all I have to do is put <cflock> tags around the insert and select queries to ensure single threaded execution. What I'm looking for is the way to do this in ASP to ensure that even on high traffic sites, there is no chance for a mixup.
Thanks
GJ
In Cold Fusion, all I have to do is put <cflock> tags around the insert and select queries to ensure single threaded execution. What I'm looking for is the way to do this in ASP to ensure that even on high traffic sites, there is no chance for a mixup.
Thanks
GJ