sql server - Find out the list of recently run stored procs with start and end times -


Does anyone know if there is a command created in SQL Server that list recently run stored procs Finds out in the last two hours). I tried different articles on the web but there is no satisfactory answer or we have to write our own custom query to get it>

thanks

This query can help you

  select DatabaseName = DB_NAME (st.dbid), schemma = OBJECT_SCHEMA_NAME (St.objectid, dbid), stored processor = OBJECT_NAME (st.objectid, dbid), cp.last_execution_Time from sys.dm_exec_query_stats cp CRSAP / CD / CSAP / CSAP / CSP / C Minister / div>  

Comments