|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, September 19, 2012 8:39 AM
Points: 595,
Visits: 1,226
|
|
Great question. This is what the QOD is all about. A great explanation of the answer as well.
Converting oxygen into carbon dioxide, since 1955.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 11:21 AM
Points: 2,163,
Visits: 2,148
|
|
| Thanks for the great question! I am learning so much more from these questions and their explanations.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 8:49 AM
Points: 2,672,
Visits: 2,417
|
|
Got it wrong. 
Thanks for a good explanation.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 4:38 PM
Points: 6,368,
Visits: 8,230
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 10:53 AM
Points: 1,662,
Visits: 1,709
|
|
This is a great question, thank you Paul. It would have been very difficult to answer it correctly, but fortunately for me, incorrect options were clearly incorrect, and therefore it was not too difficult to not answer the question incorrectly:
B. VLFs are physically deleted? No, VLF is, well, VLF, a fragment C. VLFs are overwritten with zeroes? No, in Windows nothing is overwritten with zeroes as there is no need to do that. Even formatting the drive does not actually overwrite data with zeroes.
With above out of the way, All of the above and Answers A and C have to go too.
This leaves only A and D to seriously consider, and while this is true that the only way to shrink the file is to first have it inactive VLFs (Status = 0 when running dbcc loginfo()) bunched in its tail, the log file shrinks when dbcc shrinkfile is called.
Thus, answer A is the only answer which is not incorrect.
Oleg
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Yesterday @ 7:18 PM
Points: 10,989,
Visits: 10,532
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 10:53 AM
Points: 1,662,
Visits: 1,709
|
|
Thank you Paul, it is good to know. Usually, Windows does not need to write any zeroes (when you delete files or format drive, just the records from allocation table are deleted and this is good enough), but initializing a log file with zeroes does make a lot of sense.
Since the question was about clearing existing log file, I think that my assumption about not overwriting existing inactive fragments with zeroes is still OK. If not then I guess I got lucky while dismissing options which I perceived as incorrect. In any case, I got my 2 points out of the question posted by Paul Randall, and to get those is never a trivial task.
Oleg
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 2:53 AM
Points: 1,528,
Visits: 359
|
|
thanks Paul of all the QOTD, i find your questions the most difficult...
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 5:45 AM
Points: 457,
Visits: 316
|
|
I "Lost" 2 points but "gained" a very good knowledge 
_____________________________________________
Kindest Regards, - Tushar  MCP,MCDBA(SQL 2000),MCTS(SQL 2005),MCITP(SQL 2005)
" Most Good Experience Comes From Judgement, Most Judgement Comes From Bad Experience "
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Friday, May 03, 2013 5:36 AM
Points: 220,
Visits: 53
|
|
| Another good question which made reading the relevant tech pages to answer it interesting and well worth the time.
|
|
|
|