Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 [SS 2000] Checking locks

Author  Topic 

Ciupaz
Posting Yak Master

232 Posts

Posted - 2010-10-19 : 10:09:19
Hi all
I am not a DBA or a system engineer, but I need some tool (queries, etc.) that allow me to monitor what is happening in a SQL Server 2000 database.
Especially my .NET application lock and often find that they send timeout in exception to the application itself, and I need some t-SQL script to figure out which table is locked, by whom, how long, etc. and all information that may be useful.
Has anyone ideas?

Thanks in advance.

Luigi

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-10-19 : 12:30:03
You can use sp_lock, master..sysprocesses, sp_who, sp_who2, SQL Profiler, DMV queries, etc. to gather this information. I'd start with checking for blocking and finding the long-running queries.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -