Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding list of queries ran

Status
Not open for further replies.

CylonLove4Life

Technical User
Feb 15, 2005
53
ES
Is there anyway I can see a log of which queries ran, and how long they took, or at least the slow ones?

Preferabbly, I'd like to do this remotely via the command line.
 
you can use profiler to capture queries ran and performance. SQL ships with a template trace that captures the exact info you are asking for.

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
it isn't a command it is one of the SQL Tools installed. Yes it can be ran against a remote server as long as the account you login to the SQL server with has SA rights.

Shoot Me! Shoot Me NOW!!!
- Daffy Duck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top