Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Administration
»
blocking
blocking
Rate Topic
Display Mode
Topic Options
Author
Message
charipg
charipg
Posted Monday, August 24, 2009 4:57 PM
Old Hand
Group: General Forum Members
Last Login: Thursday, May 16, 2013 12:43 AM
Points: 378,
Visits: 897
how to understand blocking in sqlserver2000 and how to find solutions?
Post #776368
Swarndeep
Swarndeep
Posted Wednesday, August 26, 2009 9:41 PM
SSC-Addicted
Group: General Forum Members
Last Login: Friday, May 10, 2013 3:20 PM
Points: 481,
Visits: 311
I can share with you a small overview of blockings in sql 2000. Blocking happens when an object is being locked by a process (say process 100) and before the lock is released another process (Process 101) wants to lock same object, but Process B can not lock the same object because that object is already locked by Process 100.
At this time if look at the result of sp_who2, you will notice that process 101 is locked by process 100. As soon as process 100 is completed or you explicitly kill process 100 it releases the lock, then process 101 will start executing.
There are number of locks like shared lock, exclusive locks, update locks etc. I have just provided a very basic idea of blocking to start with, however, this is big concept in itself not only limited to blockings but also includes locking, deadlocks, various isolation levels etc.
Hope this will help to understand.
Swarndeep
http://talksql.blogspot.com
Post #778028
Swarndeep
Swarndeep
Posted Wednesday, August 26, 2009 9:48 PM
SSC-Addicted
Group: General Forum Members
Last Login: Friday, May 10, 2013 3:20 PM
Points: 481,
Visits: 311
Always there is a reason for blocking. The blocking happens for the time when the process is active and runnable. You need to point out why the process is runnable for long time. There might be poor query/joins, you need to verify the query and optimize it if possible. Add nolock to queries, if possible.
If blocking is because of hardware, there might be CPU bottlenecks, you need to check CPU usage for that. There might be memory bottlenecks, for that you need to confirm if the memory allocated to SQL Server is enough. There might hardware issues, like latency in writing and reading, than you need better IO devices or controllers.
There could be some jobs running in parallel to the queries which are consuming resources, you may check that too.
It is not easy to identify bottleneck easily, but is possible enhance the performance to avoid blocking.
Swarndeep
http://talksql.blogspot.com
Post #778032
joeroshan
joeroshan
Posted Wednesday, August 26, 2009 11:38 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Today @ 5:48 AM
Points: 573,
Visits: 1,169
http://support.microsoft.com/kb/271509
http://www.databasejournal.com/features/mssql/article.php/3422471/Monitor-Blocking-in-SQL-Server-2000---Part-1.htm
http://www.sqlservercentral.com/articles/Performance+Tuning/67134/
-- Roshan Joe
*******************************************
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #778047
kjplreddy
kjplreddy
Posted Tuesday, August 31, 2010 12:31 AM
Grasshopper
Group: General Forum Members
Last Login: Friday, January 07, 2011 8:37 AM
Points: 10,
Visits: 64
Hi
This is Jayapal reddy
i was read u r ans for blocking.it is good to understood about blocking
i need a small help.
am new to server 2005
plz give me wat is the processes to avoid blocking in realtime senarios
plz help me
Regards,
Jayapal
Post #977709
deepalakshmib.tech
deepalakshmib.tech
Posted Tuesday, August 31, 2010 1:58 AM
Grasshopper
Group: General Forum Members
Last Login: Sunday, April 24, 2011 3:52 AM
Points: 15,
Visits: 45
Jaypal,
Start a new thread for your question.
Post #977742
kjplreddy
kjplreddy
Posted Tuesday, August 31, 2010 2:57 AM
Grasshopper
Group: General Forum Members
Last Login: Friday, January 07, 2011 8:37 AM
Points: 10,
Visits: 64
Hi Deepa,
how ?
Post #977772
joeroshan
joeroshan
Posted Tuesday, August 31, 2010 7:06 AM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Today @ 5:48 AM
Points: 573,
Visits: 1,169
Pls use add topic link below
-- Roshan Joe
*******************************************
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #977938
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.