Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Expensive Query

Author  Topic 

sanjay5219
Posting Yak Master

240 Posts

Posted - 2013-12-09 : 12:15:36
Hi All,

Is there any way to get the queries which is taking more time to execute

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-12-09 : 12:44:03
Define "more time".

Setup so_whoisactive to log active queries every minute. Alternatively, you can use run a trace or setup an extended event session.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -