Last active
March 2, 2019 07:56
-
-
Save mvodep/69434cde71655f130059c2ea3a0297d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT sqltext.TEXT, | |
req.session_id, | |
req.status, | |
req.command, | |
req.cpu_time, | |
req.total_elapsed_time, | |
DB_NAME(req.database_id) | |
FROM sys.dm_exec_requests req | |
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment