Browse by Tags

All Tags » tsql » running
  • TSQL to detect long running queries against the database

    When I'm performing a performance analysis on a 24/7 application and dealing with PSS I had been given the following TSQL to identify the long running queries against a database. select r.session_id, s.host_name, s.program_name, s.host_process_id, r.status, r.wait_time,wait_type,r.wait_resource, substring(qt.text,(r.statement_start_offset/2) +1, ...
    Posted to SQL Server Aggregator (Weblog) by Anonymous on August 29, 2007