The first thing you should do is check to see if there's blocking in the
server. You can use sp_who (or sp_who2, which gives you additional info) to
get a list of processes and connections to the server. Then use sp_lock to
get detailed lock information by process. Use DBCC INPUTBUFFER to see the
query that a process is running, well, you get the first part of the query
if it's too long. Sometimes slowness is due to server load, so you can
monitor memory and cpus with performance monitor. You'll find more
information regarding specific performance monitor counters in books online.
Sp_who also gives you information about cpu and disk used by processes, so
you can use this info to detect long running queries, or queries that take a
lot of system resources.
--
Carlos E. Rojas
SQL Server MVP
Co-Author SQL Server 2000 Programming by Example
"vind" <vind74 (AT) yahoo (DOT) com> wrote
Quote:
Hi
If the users are compaling that the production environment
is slow, what are the sequence of steps/files to look into?
Thanks
vind |