2

In MS SQL Server 2008, I would like to investigate and tune the queries that are being executed by an application in a limited time interval. Can I, e.g. from SQL Server Management Studio, generate a log of all SQL being executed and how long time each query took (and which parameters they were executed with)?

someName
  • 1,275
  • 2
  • 14
  • 33

2 Answers2

3

You can use Profiler for this purpose - from SSMS, go to Tools -> SQL Server Profiler.

Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
2

You need to use the MS SQL Profiler to do this

http://msdn.microsoft.com/en-us/library/ms181091.aspx

codingbadger
  • 42,678
  • 13
  • 95
  • 110