Craig, the primary key is an automatically generated GUID...
To you all, thank you for all the efforts and time. Whether the examples given
are reality or not, in theory the problem could exist in any system.
I think I've found a solution of some kind:
The Connection object has a property called IsolationLevel. You can set this
property in conjunction with the BeginTrans method. If you set this property to
adXactIsolated any transaction on a table will be isolated (even reads).
I have to test it thoroughly, but at first sight it works fine.
Thanks,
Octavie
-----Original Message-----
Hello Octavie.
Maybe I missed something here, but couldn't you use a primary key to
accomplish this task?
--
HTH
Craig Hunt, MCSE, MCDBA
AISA Logic, Inc.
http://aisalogic.com
--Think when you breathe.
Hai there,
I have this problem (It has to work at financial companies, anyway):
Multi user system:
Two users work with the same customer's data. Both users want to ADD a
record
(let's say data of a contact person for the current customer) at the same
time.
I want to prevent this. The customer shouldn't get two records with the same
contact person.
Isn't this one of the basics of transactions?
I can't get it done with the BeginTrans, CommitTrans and Rollback methods.
Anyone got an idea?
Thanx,
Octavie
.