chaitu chaitu
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?
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?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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