Microsoft® SQL Server™ provides several Transact-SQL statements and system stored procedures that allow ad hoc monitoring of a computer running SQL Server. Use these statements when you want to determine, at a glance, information about server performance and activity. The most common information monitored using Transact-SQL statements includes:
Most of this information can also be monitored using either SQL Server Enterprise Manager, SQL-DMO, or Windows NT Performance Monitor.
To view the current locks
To view the current server activity
To view the last command batch for a connection
To view the data space information for a database
To view the log space information for a database
To view the oldest active transaction in the database
To view performance information
To view procedure cache usage
To view general statistics about SQL Server activity and usage
Monitoring with SQL Server Enterprise Manager | Monitoring with Windows NT Performance Monitor |