Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / August 2003



Tip: Looking for answers? Try searching our database.

Locking In a Transaction

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel Sayer - 29 Aug 2003 13:49 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.