Developing Microsoft SQL Server Databases — Question 4

You need to identify which long running transactions use an index.
Which dynamic management view should you use?

Answer options

Correct answer: A

Explanation

The correct answer is A, sys.dm_exec_query_optimizer_info, which provides insights into the behavior of the query optimizer, including information on long-running transactions that use indexes. The other options do not specifically target long-running transactions or provide index usage details; for example, B focuses on execution plan attributes, C deals with currently executing requests, and D provides statistics on stored procedures.