When SQL Server (2000/2005/2008) is running sluggishly, what is the first command you run to see where the problem is?
The purpose of this question is that when all the answers are compiled, it may be helpful to other users by executing their selection command to separate it where the problem may be. There are other troubleshooting messages regarding SQL Server performance, but they can only be useful for specific cases.
If you deploy and run your own SQL script,
then you could tell others that
- the goal of the script is
- returns (return value)
- to find out where the problem is
If you could provide a source for the script, submit it.
In my case
sp_lock
I run to find out if there are any locks (target) for returning SQL server lock information. Since the identifiers of the objects are displayed in the result set (thus, this is not so clear for a person), I would usually look at the result to see if there are abnormally many locks.
Feel free to update tags.
sql sql-server
Sung
source share