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:

Comments

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading




by Lee Everest, M.S.

Search


Ads

Calendar

«  July 2010  »
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
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 2010 Lee Everest's SQL Server, etc. weblog