Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

How can i monitor running SQL Statements for my SQL-Server, is it possible using only SQL Server without 3rd part tools?

As an alternative can anybody recommend any free tool which can monitor running statements over ODBC connections?

Thank you.

share|improve this question

migrated from stackoverflow.com Feb 22 '13 at 8:40

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 5 down vote accepted

There's Sql Server Profiler which comes with the installation. It allows you to monitor all SQL statements with various filter criteria. You could also pair it up with PerfMon to investigate performance.

MSDN Sql Server Profiler

I also found this site Receiving Profiler Events. Which allows real-time tracking in .NET.

share|improve this answer

If you use SQL Profiler, you can monitor all the goings on in the SQL DB.

share|improve this answer
  1. Send this command to the server: set global general_log=1;
  2. Find the log file (the default on Win7 it resides in C:\ProgramData\MySQL\MySQL Server 5.1\data) and has a name just like the computer.
  3. Examine the log :)
  4. Set the general_log back to 0 to return the DB server performance back to normal.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.