Join | Login | Why Join?   
SQL Server, Oracle, DB2, Sybase, MySQL Help - SSWUG.ORG HACKER SAFE certified sites prevent over 99.9% of hacker crime.
Search SSWUG:   
 
Access to 510 free guest articles, discussions and more, just create your free SSWUG User ID:
Email address:  
This will be your login ID - we'll email you your password - you'll even receive the newsletter, opt-out at any time.
Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

 

Minimal Logging changes in SQL Server 2008 (part-2)

Available for Members. This is an off-site link.  Please review our Terms of Service (bottom of page) for additional information.


 Article Abstract:

(Sunil Agarwal) In the previous example, I described minimal logging while moving data from a source table into a heap. You may recall that it requires a X table lock to get minimal logging. Now, I will show you what happens when you move data from a source table into a btree. In order to get minimal logging with btree, the only requirements are

--Like minimal logging for heap, the database must be set to bulk-logged or simple recovery model
--The input data must be sorted in the index key order. Note, it does not require X tablelock or the btree to be empty. SQL Server accompolishes this by acquiring a X range lock. So for example, if you have an existing btree with values 1, 100, 1001, 1004. Any now you want to insert 500 rows with the key range from 110 thru 610, the SQL Server does that by acquring a X range lock between 100 and 1001 and accompolishes the load. The other transactions can access any data that is outside the range (100, 1001).

 Read this article...



Key (Please note):
(R) - registration may be required for access at the target site
($) - target site may require paid membership for access to this or other content


No Comments/Feedback Posted Yet. Post Your Comments/Feedback

Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

   




 

[ Register ] [ Webcasts ] [ Podcasts ] [ Newsletter Archive ] [ RSS/Feeds ]
[ About ] [ Advertise ] [ Contact ] [ Privacy ] [ Terms of Service ]
[ Link to SSWUG ] [ List Server Archives ] [ Recent Orig. Content ]
(c) 1997-2008, Bits on the Wire, Inc.  (0)

Some names and products covered by SSWUG are the registered trademarks of their respective owners.
DAA10354WWW004