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.
| Author |
Topic |
|
larrys@itech.biz
Starting Member
2 Posts |
Posted - 2008-06-25 : 10:16:25
|
| In SQL Server 2000 when creating a maintenance plan to backup a database and transaction logs, there was an option to specify retention for the backup files (how many days/weeks to keep the backup files). So, how can I do this with SQL Server 2005?Answers can be posted on this forum or can be e-mailed to me at larrys@itech.biz.Thanks for any help. |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-06-25 : 11:52:37
|
| First of all,Don't put your Email address while asking? We have to charge you if we send answer by email.Second, option to specify retention for the backup files is not included in Maintenance plan wizard in SQL 2005. You will have to choose other maintenance plan(SSIS package) and choose History cleanup task to specify how long to keep backups. |
 |
|
|
contrari4n
Starting Member
27 Posts |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2008-06-25 : 12:51:14
|
quote: Originally posted by sodeep Don't put your Email address while asking? We have to charge you if we send answer by email.
That is not true. If larrys doesn't care about the spam he'll get to that account, then so be it.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog |
 |
|
|
larrys@itech.biz
Starting Member
2 Posts |
Posted - 2008-06-25 : 13:36:49
|
| What about adding DELBKUPS to the SQL script that performs the backups? I found it under SQL 2000 - is this supported in SQL 2005?Here is an example:sqlmaint -S MyServer -PlanName MyUserDBPlan -BkUpDB -BkUpMedia DISK -UseDefDir -CrBkSubDir -DelBkUps 2weeks |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2008-06-25 : 13:41:26
|
| Yes that is supported in SQL Server 2005. It is very easy to see what parameters to pass the sqlmaint utility by typing in sqlmaint into SQL Server Books Online.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog |
 |
|
|
mdubey
Posting Yak Master
133 Posts |
Posted - 2008-06-25 : 13:53:13
|
| But cleanup History task will also do the same for Retention.ManojMCP, MCTS |
 |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-06-25 : 14:45:52
|
quote: Originally posted by mdubey But cleanup History task will also do the same for Retention.ManojMCP, MCTS
It has already been answered. |
 |
|
|
|
|
|