Administering Microsoft SQL Server 2012/2014 Databases — Question 28

You administer a Microsoft SQL Server.
A process that normally runs in less than 10 seconds has been running for more than an hour.
You examine the application log and discover that the process is using session ID 60.
You need to find out whether the process is being blocked.
Which Transact-SQL statement should you use?

Answer options

Correct answer:

Explanation

The correct answer is A, as executing 'SELECT * FROM sys.dm_exec_requests WHERE session_id = 60' allows you to see the current status of the request associated with that session ID, including whether it is being blocked. The other options do not provide information about the blocking status of the specific request; they either show session details, input buffers, or transaction states without focusing on the request's execution status.