concurency or locks

  • Hi experts,

    need some valuble suggessins to fix this issue

    Process : We have one procedure which will process the .csv file with thousands of data and update/insert into the transaction table.

    The procedure is scheduled for every 5 min.

    Issue : Wile the job starts, and inserts/updates to transaction table, we will not be able to read the data from the transaction table.

    So we would like to know, if it’s not supporting the concurrency or tables are being locked?

    thanks in advance

  • When you have bulk updates and inserts, the table gets exclusive lock during that time. If you want your Selects to work, there are two ways to do it.

    1. Using Snapshot Isolation (Row Level Version) You can search here itself to read more about it. There are lots of articles regarding it here.

    2. Dirty Read. Using the Hints of NOLOCK. (Not recommended)

    -Roy

  • thank you very much for your reply

    can i get the some of the useful links for the above issue.

    any other experts valuable suggestions pls .

    thanks in advance

  • Check this link[/url] for Row level version

    But test it out in a test environment before doing anything to your production.

    -Roy

  • thanks for the reply

    but we are using sql server 2000. not 2005

    thanks in advance.

  • Why every 5 mins?

    "Keep Trying"

  • any updated suggestions pls

  • If you are just reading from that table, Set up replication and read from the replicated server

    -Roy

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply