Explanation of SQL Server waiting for resources

Source: Internet
Author: User

Many people have encountered blocking problems. When querying, they will see the waiting resources. What do they mean?

 

Compile

Format

Example

 

Table

Databaseid: objectid: indexid

Tab: 5: 261575970: 1
In this case, Database ID 5 is the pubs sample database and Object ID 261575970 is the titles table and 1 is the clustered index.

 

Page

Databaseid: fileid: pageid

Page:
In this case, Database ID 5 is pubs, file ID 1 is the primary data file, and page 104 is a page belonging to the titles table.
To identify the Object ID that the page belongs to, use the DBCC page (dbid, fileid, pageid, output_option) command, and look at the m_objid. For example:
DBCC traceon (3604)
DBCC page (5, 1,104, 3)

 

Key

Databaseid: hobt_id (hash value for index key)

Key: 5: 72057594044284928 (3300a4f361aa)

In this case, Database ID 5 is pubs, hobt_id 72057594044284928 corresponds to non clustered index_id 2 for Object ID 261575970 (Titles table ). use the sys. partitions catalog view to associate the hobt_id to a participant index ID and Object ID. there is no way
To unhash the index key hash to a specific index key value.

Row

Databaseid: fileid: pageid: slot (ROW)

RID: 5: 1: 104: 3

In this case, Database ID 5 is pubs, file ID 1 is the primary data file, page 104 is a page belonging to the titles table, and slot 3 indicates the row's position on the page.

 

Compile

Databaseid: objectid [[compile]

Tab: 5: 834102012 [[compile] This is not a table lock, but rather a compile lock on a stored procedure. database ID 5 is pubs, Object ID 834102012 is stored procedure usp_myprocedure. see Knowledge Base Article 263889
For more information on blocking caused by compile locks.

 

 

 

For more details, see INF: understanding and resolving SQL Server blocking problems.

 

 

 

 

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.