Hello
I have a stand alone Java application that uses SQL Server 2000 on the
same machine. Sometimes, when we run the applications and follow a
certain steps, the SQL server locks some of the table. At that point of
time, if we try to query Select * on those table, in Query Analyzer, it
just keep spinning and doesn't return anything. That tells me that the
tables are locked. If I close the application then it frees up the
connection and those tables are accessible again.
My question is how do I find out how and what query/update causes the
tables to be locked. Is there a tool (some kind of a profiler) that can
tell me what was the last insert/update/delete quesry was run before it
got locked?
Please help me.