dbTalk Databases Forums  

Truncate database after backup

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Truncate database after backup in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sgrigg
 
Posts: n/a

Default Truncate database after backup - 06-10-2010 , 10:59 AM






With SQL 2000 our backup provider (EMC Legato) told each database to truncate
the logs after a successfull backup. SQL 2008 doesn't seem to have these
features, what is the best way to keep logs truncated (automated) yet keep
them available in case they are needed for a restore?

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Truncate database after backup - 06-10-2010 , 03:23 PM






sgrigg (sgrigg (AT) discussions (DOT) microsoft.com) writes:
Quote:
With SQL 2000 our backup provider (EMC Legato) told each database to
truncate the logs after a successfull backup. SQL 2008 doesn't seem to
have these features, what is the best way to keep logs truncated
(automated) yet keep them available in case they are needed for a
restore?
You should backup your transaction logs regularly.

I'm not really sure what you mean with "truncate" but if you mean
TRUNCATE_ONLY or NO_LOG, that was a bad idea, since you lost the
ability to restore to a point-in-time. You can still truncate the
log in that way if you want to: just switch to simple recovery.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.