You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select
datediff(seconds, starttime, endtime) as time_taken_in_secs,
querytxt,
*from stl_query
-- NOTE: Querying only those that were executed in the last hourwhere starttime >= dateadd(hours, -1, getdate()) and endtime < getdate()
order by time_taken_in_secs desc;