When the SQL Server (2000/2005/2008) is running sluggish, what is the first command that you run to see where the problem is?
The purpose of this question is that, when all the answer is compiled, other users can benefit by running your command of choice to segregate where the problem might be.
There are other troubleshooting
posts regarding SQL Server performances but they can be useful only for specific cases.
If you roll out and run your own custom SQL script,
then would you let others know what
- the purpose of the script is
- it returns (return value)
- to do to figure out where problem is
If you could provide source for the script, please post it.
In my case,
sp_lock
I run to figure out if there are any locks (purpose) to return SQL server lock information. Since result set displays object IDs (thus not so human readable), I would usually skim through result to see if there are abnormally many locks.
Feel free to update tags