Home > Archive > MS SQL Server > March 2006 > xp_sqlmaint









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author xp_sqlmaint
zomer

2006-03-29, 11:23 am

I am using xp_sqlmaint 'switch string here' to obtain log file dumps
every six hours. The problem is that log continues to grow. DB is on
full recovery mode. Full DB backup is taken twice a week but log is
never fully backed up. How do I specify in maintenance plan or in
switch string to truncate the log when its backed up.

Thank you.

Sue Hoegemeier

2006-03-31, 3:23 am

A log is truncated when it is backed up. Truncate doesn't
mean reduce the size of the physical file. The option in
sqlmaint to shrink a database is -RmUnusedSpace
threshold_percent free_percent
But it's not really a good idea to setup shrinking on a
regular basis. The size is the usually just the amount of
space SQL Server needs between the log backups.You want to
focus more and appropriately sizing your files. You can find
more info in the following article:
http://www.karaszi.com/sqlserver/info_dont_shrink.asp

-Sue

On 29 Mar 2006 08:48:38 -0800, "zomer" <noneee@gmail.com>
wrote:

>I am using xp_sqlmaint 'switch string here' to obtain log file dumps
>every six hours. The problem is that log continues to grow. DB is on
>full recovery mode. Full DB backup is taken twice a week but log is
>never fully backed up. How do I specify in maintenance plan or in
>switch string to truncate the log when its backed up.
>
>Thank you.


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com