Link to home
Start Free TrialLog in
Avatar of chaitu chaitu
chaitu chaituFlag for India

asked on

how to find on which query is taking lot of time and also table getting locked

our application is developed in sql server and java.this application will be hit by concurrent users.

we have written somewhat big queries in this application. sometimes tables are getting locked.we want to know during executing which query  this table is getting locked .can we have any option in toad to see these or do we have any queries to see this infornation?
Avatar of plusone3055
plusone3055
Flag of United States of America image

im not that familiar with Toad
but you can look at the queries in text and any of the that have (tablock) in them are locking tables

here is a great article from MSDN (not a competing site)
regarding locks
http://msdn.microsoft.com/en-us/library/ms190345.aspx
SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial