Getting blockage on Update Statement

  • Hi,

    Need your help. I've a SP that is using Update statement on a table.

    2-3 processes are updating this table at the same time. I'm getting frequent blockage. How can we handle to prevent blockage?

    Will using SET XACT_ABORT ON can help?

    Or setting to isolation level can help?

    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    Kindly suggest.

     

     

     

     

     

  • anshu.shikha wrote:

    I'm getting frequent blockage. 

    What makes you think this?

    anshu.shikha wrote:

    Will using SET XACT_ABORT ON can help? 

    Nothing to do with locking.

    anshu.shikha wrote:

    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    Will not affect UPDATE locks and potentially dangerous elsewhere.

    If you think you have excesive blocking there are plenty of resources. eg

    Understand and resolve blocking problems - SQL Server | Microsoft Learn

     

    • This reply was modified 11 hours, 23 minutes ago by  Ken McKelvey.

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

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