Link to home
Start Free TrialLog in
Avatar of mchetan78
mchetan78

asked on

Locking in SQL Server

I have put a query in SQL Query Analyzer Select top 17777* from <Table name> It takes lot of time to get the output.I stopped it using stop button in Query analyser. Now that process ID is blocking any other query to be executed on the same table. This does not happen everytime. But I would like to know if someone is facing the same problem.
ASKER CERTIFIED SOLUTION
Avatar of Racim BOUDJAKDJI
Racim BOUDJAKDJI
Flag of Algeria 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
Avatar of mchetan78
mchetan78

ASKER

Thanks for your comment..Pls find my replies to your comments.
1. I have a clustered key on the table.
2.Using WITH NOLOCK option does help in preventing this problem.