April 21, 2022 at 9:41 am
Heres a some selection of columns u can query from DMVs that SQL Server offers.
SELECT DER.session_id
,DER.status
,txt.text
,DER.user_id
,Database_Name = db.name
,total_elapsed_time
FROM sys.dm_exec_requests DER
inner join sys.databases DB on DER.database_id = DB.database_id
CROSS APPLY sys.dm_exec_sql_text(sql_handle) txt
I want to be the very best
Like no one ever was
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy