Hi,
USING VB.NET / SQL SERVER 2000 / ADO
I am currently writing a multi-user booking application.
I have a program which updates a group of clinics in a
clinic file, this can take a few minutes as there is a
lot of processing involved.
The problem I have is that we are doing all of this
within a transaction, the program loops through each
clinic and updates it, but once the first update has
processed it locks the entire clinic file. This results
in other users not being able to read any records from
the clinic file. (When I remove the transaction from the
code, everything works fine - but this is not good enough
for the application).
Is there a way not to lock the entire clinic file whilst
using transactions.
Thanks for your help
Dan
Val Mazur - 30 Aug 2003 01:48 GMT
Hi Daniel,
Locking inside transactions managed by server and it is hard to say at which
moment of time which part of table will be locked. may you should check if
you could improve your code to remove looping and make it in some batches to
get better response

Signature
Val Mazur
Microsoft MVP
Check Virus Alert, stay updated
http://www.microsoft.com/security/incident/blast.asp
> Hi,
>
[quoted text clipped - 21 lines]
>
> Dan