Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 keeping log file size low after backups

Author  Topic 

femig
Starting Member

5 Posts

Posted - 2004-06-24 : 13:07:09
what i want to achieve is this;
1) i take full bkps every sunday
2) differential bkps every nite
3) log bkps every hour
4) i want to be able to restore the db to the closest point in time possible..
5) my recovery model is full
6) i want to keep my log files as small as possible by truncating them using bkps..


will this log bkp code achieve this;

BACKUP LOG [adp2sql] TO [xxxBackup] WITH NOINIT , NOUNLOAD , NAME = N'xxx_log_bkp', NOSKIP , STATS = 10, NOFORMAT

thanks for ur patience..i need to get this right

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-24 : 13:10:57
I don't ever use WITH NOINIT (I use WITH INIT). I create new files each time. I put a timestamp in the filename so that it is unique and doesn't overwrite an existing file. What you have will allow you to restore to a point in time. You will eventually need to use WITH INIT as adp2sql is going to keep on growing and growing and growing. Check out my weblog for some stored procedures to do the full backups and transaction logs with a unique filename:

http://weblogs.sqlteam.com/tarad

Tara
Go to Top of Page
   

- Advertisement -