Most of MSDN blogging was shut down last week for a site upgrade, but I happened across this one that I thought was interesting.  Apparently for all versions of SQL Server (beginning 2005) there's a problem with expanding the transaction log:

whenever the difference between the new size and the current size is a multiple number of pages of any value between 0x80000 and 0x8001F the log will only grow 31 pages (MIN_LOG_FILE_SIZE / PAGESIZE).

Why the dude didn't write 8000-8001 MB and instead gave us binary I have no idea.  Maybe he'd like my bitmasking series on SQLSevercentral? LOL.  Anyway, here's what you get when you run his script:

 

image

I expanded it to 12GB and got the below, which seemed to follow his disclaimer. Upping from here 8GB finishes in a millisecond (doesn't grow) and then I run again and it then expands to 20GB.

image

 

Lee

 

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

Pretty freaky

scared0008

 

 

Portillo, 2010. Weird behavior of transaction log growth in SQL Server 2005, 2008, and R2. Retrieved 5/30/2010 from http://blogs.msdn.com/b/ialonso/archive/2010/05/27/weird-behavior-of-transaction-log-growth-in-sql-server-2005-2008-and-r2.aspx


Posted in: The Best of MSDN Blogs  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