How to avoid deadlocks in a table

  • I have table which have inserts almost every 10 secs , what is the best practice to avoid deadlocks for a table of this kind?

  • you can use the NOLOCK hint on select statements or SET the isolation level to read uncommitted

  • JDixon-385826 (10/10/2009)


    you can use the NOLOCK hint on select statements or SET the isolation level to read uncommitted

    Beware of the consequences too!!

    using NOLOCK, you'll read inconsistent data at times. If it's fine with you, you can proceed using this hint in ur select queries...

    Check our for correct indexes on your tables to avoid deadlocks...



    Pradeep Singh

Viewing 3 posts - 1 through 2 (of 2 total)

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