Re: Concurrency problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Johnny,

I did not make much attention that you was using a transaction.

A transaction is in my idea something that should be avoided as much as possible, because it can lock your tables unwished completely

In this case therefore in my idea completely stupid.

Cor

"Jonny Bergdahl" <jonny.bergdahl@xxxxxxxxxxxxxxxx> wrote in message news:EEB8F159-0AB2-42E9-ABA8-D7D1E54DC1C6@xxxxxxxxxxxxxxxx
I have a GUI application that displays historical data, and a batch application that loads new data into the database.

My problem is that while the baych application is updating the database, the GUI application gets locked out. The batch application is using one transaction for the update, which can run for up to 15 minutes.

Question is what properties do I need to set on the Connection/Command objects to let the GUI ignore the locks and access the data anyway? Since it it historic data it is not important that it is not fully up to date, what is important is that the user is not locked out during the update.

I am using SQL Server 2005, ADO.NET with a MSDTC transaction, and C#.

Any help is much appreciated!

regards;
/jb

.



Relevant Pages

  • Re: Cross Platform FIFO Queue
    ... need a database to handle user accounts anyway. ... MySQL can handle record locking. ... If the database does not support the write lock at select ... I am in doubt that MySQL fully supports transaction ...
    (comp.programming.threads)
  • Re: Cross Platform FIFO Queue
    ... need a database to handle user accounts anyway. ... Hopefully MySQL can handle record locking. ... If the database does not support the write lock at select ... I am in doubt that MySQL fully supports transaction ...
    (comp.programming.threads)
  • Re: How to handle mouse events during a long-running database transaction?
    ... isolate your blocking transaction in another thread, ... code is not thread safe as I mentioned earlier. ... The application has TCP/IP, UDP/IP connections, local memory database ... and the GUI. ...
    (comp.lang.tcl)
  • Re: I need the ODBC 2.0 Oracle equivalent of a record lock
    ... The trick was that if CommitTransaction was not made, we had to record, in ... it was rolled back before the database system became publicly ... So database integrity is NEVER an issue: a transaction ... when the database is restarted, etc. So if you lock table B, then lock table A, make a ...
    (microsoft.public.vc.mfc)
  • Re: I need the ODBC 2.0 Oracle equivalent of a record lock
    ... So database integrity is NEVER an issue: a transaction ... when the database is restarted, etc. So if you lock table B, then lock table A, make a ... and it is part of what they guarantee as part of the product. ...
    (microsoft.public.vc.mfc)