Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2005, 06:38 AM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default Blocking in Sql Server

Please anybody help me about the "Blocking" in SQL Server? Is it related to the ADO along with SQL Server or is there any keywords available in SQL Server?

SK
__________________
Thanks in advance.

Regards,

Senthil Kumar M.
 
Old March 23rd, 2005, 08:09 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

http://support.microsoft.com/default...;en-us;q263889

http://www.sql-server-performance.com/blocking.asp





Gokulan Ethiraj
 
Old March 23rd, 2005, 08:15 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Block-Buster: SQL 2005 and Blocking/Deadlocking
If you'd like some help in going to sleep at night, try thinking about how concurrency is controlled behind the scenes in SQL Server. No guarantees however: you may wake up in the middle of the night having nightmares about blocking and deadlocking. Seriously though, the real nightmare would be the opposite... uncontrolled concurrency = sheer chaos

Many ways exist to prevent or eliminate blocking: isolation levels, hints, sp_indexoption, transaction boundaries, order of processing etc etc. Aside from the classics, if you are fighting blocking and deadlocking, SQL Server 2005 has a few things to offer:

1. Snapshot Isolation Level and Database Snapshots: If the blocking is a certain types of reader/writer conflict these are great ways to go.

2. Asynchronous Statistics Calculation: If the blocking is due to stats getting recomputed, this will help.

3. Statement Level Recompile: If the blocking was due to large stored procedures recompiling, this will certainly help.

4. Service Broker: If you are suffering from long transactions. SB can help you break things up into smaller chunks.

5. Online Index Operations: If you were being blocked by maintenance tasks (index rebuilds, defrags etc) online index operations can help increase concurrency.

6. Table and Index Partitioning: If you were being blocked by large data imports or data purging activities, partitioning can help eliminate blocking on large data movements by reducing the need for moving data.

All of these should have good explanation in recent 2005 books online but if you cannot find something in there, let me know.

Wishing you days without new-kids-on-the block =p. Sorry couldn't resist.



Gokulan Ethiraj





Similar Threads
Thread Thread Starter Forum Replies Last Post
Conflict in SQL Server 2000 and SQL Server 2005 ayan.mukherjee SQL Language 0 June 30th, 2008 03:34 AM
SQL Server Reg. SQL Server does not exist error Arsi SQL Server 2000 1 June 11th, 2008 11:20 AM
blocking of page in IE austinf Javascript 0 March 13th, 2007 08:23 AM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.