select
text
FROM
sys.dm_exec_requests er
INNER JOIN sys.sysprocesses sp ON er.session_id = sp.spid
CROSS APPLY sys.dm_exec_sql_text(er.sql_handle)as qt
WHERE
session_Id > 50 and -- exclude system stuff
text like '%create index%' -- find something we care about
and session_id <> @@spid -- exclude this session
Tuesday, May 26, 2020
Subscribe to:
Post Comments (Atom)
Thank you to share with us this information website development company in Surat Gujarat Through this tutorials.
ReplyDelete