admin posted on July 19, 2009 12:34

What’s going on behind the scenes


I found a great blog entry by one of the Microsoft boyz on truncating the transaction log, and what is happening behind the scenes. This step-by-step gives you the complete lowdown on this sometimes misunderstood topic, so check it out.  Just remember when you try this demo all of your Current LSNs will be different, so just make sure and jot down the operation value = LOP_BEGIN_CKPT  as this will be the minimum LSN after each checkpoint. You can also follow them as they move from MIN LSN to MIN LSN if you don’t do a tlog backup between row inserts. Also note that SQL Server throws in a checkpoint here and there as well.

It’s also interesting to know that the SQL server transaction logs wrap, and that checkpoints roll transactions to the next log VLF, or log segment. Depending on the transactions, and as shown in the demo, more than one can be active at a given point in time.

 

Lee

 

---------------------------------

 

Now if I can just find a place to use this exhilarating and newfound knowledge

 

 

 

 

 

http://blogs.msdn.com/suhde/archive/2009/07/18/revealing-the-secrets-truncating-a-transaction-log-file.aspx


Posted in: SQL Administration  Tags:
blog comments powered by Disqus

by Lee Everest, M.S.

Poll

Do you use Azure or cloud in your organization?



Show Results

Ads

Search


Month List

Calendar

«  February 2012  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2012 Lee Everest's SQL Server, etc. weblog