?
Solved

lock escalation count since when

Posted on 2017-11-14
3
Low Priority
?
40 Views
Last Modified: 2017-11-16
Hi,

I have a question that below query show the lock escalation count. That count is since when? Is it
- since database created?
- since database server restarted?


SELECT
db_name(dios.database_id) AS database_name,
object_name(dios.object_id, dios.database_id) AS
object_name,
i.name as index_name,
dios.partition_number,
dios.index_lock_promotion_attempt_count,
dios.index_lock_promotion_count,
(cast(dios.index_lock_promotion_count AS real) /
dios.index_lock_promotion_attempt_count) AS
percent_success
FROM
sys.dm_db_index_operational_stats(db_id(), null,
null, null) dios
INNER JOIN
sys.indexes i
on dios.object_id = i.object_id
and dios.index_id = i.index_id
WHERE dios.index_lock_promotion_count > 0
ORDER BY index_lock_promotion_count desc;
0
Comment
Question by:baberamin
  • 2
3 Comments
 
LVL 49

Expert Comment

by:PortletPaul
ID: 42368370
sys.dm_db_index_operational_stats (Transact-SQL)
How the Counters in the Metadata Cache Are Reset
and the cumulative counts may reflect activity since the instance of SQL Server was last started.
1
 

Author Comment

by:baberamin
ID: 42369953
can you please explain in few words for me?
0
 
LVL 49

Accepted Solution

by:
PortletPaul earned 1000 total points
ID: 42370201
That count is since database server restarted.

Nothing more to explain. The documentation is quite clear.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

594 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question