Created
July 14, 2020 12:40
-
-
Save viniciusgati/4fbb5bcecbaa09a434c6dd2c67b4503e to your computer and use it in GitHub Desktop.
queries em execução SQL Server
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 | |
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