About this question
Please help me to get the details for a long running query. ProcessID, process name, database, host, user, process login time, query start time and query duration. What is the method to get long running queries in sql server? I want a query or the SP that fetches me this data.