SQL Express restrictions

Avyayah 1,271 Reputation points
2022-09-15T21:54:32.277+00:00

One of the application is giving error "Error processing XML: Transaction(Process ID 74) was deadlocked on lock resources with another process and has been chosen as deadlock victim Rerun the transaction". Currently we have sql express installed. Do you think if we install sqlserver standard edition this error will disappear?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,670 questions
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 110.3K Reputation points
    2022-09-16T21:37:44.247+00:00

    Do you think if we install sqlserver standard edition this error will disappear?

    If you are lucky it will. I would not hold my breath, though.

    If you have problems with deadlock, you cannot just make stabs in the dark, but you need to retrieve the deadlock XML and analyse the deadlock to be able to take action.

    As it happens, I am giving a talk on exactly this topic next week at the Data Platform Summit My session is scheduled for Wednesday.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. PandaPan-MSFT 1,911 Reputation points
    2022-09-16T01:40:32.707+00:00

    Hi @Avyayah ,
    This occurs when two Sql Server processes are accessing the same resources, but in a different order. Therefore they end up both waiting for the other process, which is a deadlock.
    There are a number of ways to prevent it, including:
    •Avoid taking unneccessary locks. Review the transaction isolation level required for the query, use with (nolock) locking hint for queries where appropriate.
    •Make sure that when taking locks you take locks on objects in the same order in each query.

    You can see the error situation in the way like this:
    241702-image.png

    And the soultion is in this link:https://sqlbak.com/academy/transaction-process-id-was-deadlocked-on-lock-resources-with-another-process-and-has-been-chosen-as-the-deadlock-victim-msg-1205


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment"


  2. Olaf Helper 44,296 Reputation points
    2022-09-16T04:56:02.41+00:00

    Do you think if we install sqlserver standard edition this error will disappear?

    Definitive no, the error isn't related to the SQL Server edition.

    as been chosen as deadlock victim Rerun the transaction

    Deadlock can happen in current situation, where several process accesses same resources (tables).
    The application should be design to do, what the message suggest: Rerun the transaction.
    See
    https://en.wikipedia.org/wiki/Deadlock

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.