I
Ive
Hi,
I'm developping a couple of applications in .NET (VB more specifically) on
top of SQL Server 2000.
I use transactions in ADO.NET to make sure that when someone opens a record
which is already opened by another user, the second user can't make changes
to the record. I use Stored procs everywhere to open, create or update
records. The isolation level of the transaction is "repeatable read".
Everything is working fine, but when a second copy of a record is opened I
can't seem to be able to find out whether this record is already locked for
the transaction while opening. I tried @@TRANCOUNT in my Stored proc but
this doesn't seem to hold a correct figure.
I would like to show a messagebox or something similar in which there is
"Read Only" so the user knows his record is read-only.
What am I doing wrong? Should I use another isolation level or another way
to achieve this?
Any help is greatly appreciated!
Ive
I'm developping a couple of applications in .NET (VB more specifically) on
top of SQL Server 2000.
I use transactions in ADO.NET to make sure that when someone opens a record
which is already opened by another user, the second user can't make changes
to the record. I use Stored procs everywhere to open, create or update
records. The isolation level of the transaction is "repeatable read".
Everything is working fine, but when a second copy of a record is opened I
can't seem to be able to find out whether this record is already locked for
the transaction while opening. I tried @@TRANCOUNT in my Stored proc but
this doesn't seem to hold a correct figure.
I would like to show a messagebox or something similar in which there is
"Read Only" so the user knows his record is read-only.
What am I doing wrong? Should I use another isolation level or another way
to achieve this?
Any help is greatly appreciated!
Ive