SQL Server Performance Forum – Threads Archive
dbcc sqlper(logspace)
Hello When i make this instruction ;I see huge log database (log 12 G)(log space used%)=99%
How do you do to empty this logfile and after shrink logfile
without disturb production environement
Thank you
Regards
BACKUP LOG WITH NO_LOG or TRUNCATE_ONLY and books online refers:
NO_LOG | TRUNCATE_ONLY
Removes the inactive part of the log without making a backup copy of it and truncates the log. This option frees space. Specifying a backup device is unnecessary because the log backup is not saved. NO_LOG and TRUNCATE_ONLY are synonyms. After backing up the log using either NO_LOG or TRUNCATE_ONLY, the changes recorded in the log are not recoverable. For recovery purposes, immediately execute BACKUP DATABASE. Satya SKJ
Moderator
http://www.SQL-Server-Performance.Com/forum
This posting is provided “AS IS†with no rights for the sake of knowledge sharing.
Yes, Shrink willnot release the free space to OS. Trucate log after you do Shrink operation, You will get your log in MB size . Happy trucation !!!! <img src=’/community/emoticons/emotion-1.gif’ alt=’

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by gkrishn</i><br /><br />Yes, Shrink willnot release the free space to OS. Trucate log after you do Shrink operation, You will get your log in MB size . Happy trucation !!!! <img src=’/community/emoticons/emotion-1.gif’ alt=’

If you need a tailor-made output then you must use query to access sytem tables which is discouraged by MS in this case, so stick to the pre-supplied SPs. Satya SKJ
Moderator
http://www.SQL-Server-Performance.Com/forum
This posting is provided “AS IS†with no rights for the sake of knowledge sharing.
]]>