SQL Server has exceeded lock request timeout period 1222 error

Source: Internet
Author: User
Tags management studio microsoft sql server management studio sql server management sql server management studio

Today in SSMs (Microsoft SQL Server Management Studio), click on the left side of the explorer to view the database corresponding to the table, you will encounter "Lock Request time out period exceeded." (Microsoft SQL Server, error 1222) ", the corresponding Chinese error prompt is" the lock request time-out period has been exceeded. (Microsoft SQL Server, Error: 1222) ".

This is caused by a deadlock, execute the following statement

SELECT *
From Master. sysprocesses
where db_name (DbID) = ' database name '
and spId <> @ @SpId
and DbID <> 0
>0; blocked

Get results:

spid Kpid Blocked
59 760 339
95 26224 285
225 27444 285
285 7248 339
318 -31804 285
This is because the 339 process causes a deadlock, which returns to normal after executing the statement kill 339.


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

SQL Server has exceeded lock request timeout period 1222 error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.