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 2008 Forums
 SQL Server Administration (2008)
 Transaction Log files

Author  Topic 

rohitmathur11
Yak Posting Veteran

77 Posts

Posted - 2010-04-08 : 01:33:57
Hi,
I scheduled transaction log backup every 15 min . Now i want to delete 1 day old files because i am taking bk currentt files in to tape also.How can i schedule job to delete OS files older then one day ..like in linux we can use crontab ...my database is SQL Server 2008 and OS is Windows 2005 .

any idea..

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-08 : 13:23:40
How are you performing the backups? Through a maintenance plan or a custom script?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rohitmathur11
Yak Posting Veteran

77 Posts

Posted - 2010-04-09 : 01:49:39
Hi,
Thanks for reply..
I create a maintaince plan ..for taking transaction log backup every after 15 min. , then i schedule this in job scheduler in
sql server management studio..

Now this job is creating files in specified locaton ...i want to delete files older then one day because from this location we are taking tape backup .
So,how can i create a job to delete files older then one day ..like in Oracle we can use crontab .. to schedule any script and find,mtime command on linux to find files .. . .

Any idea..
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-09 : 19:27:42
The maintenance plan has an option to delete the old files. You do not need to setup anything else, just do it in the plan.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

franco
Constraint Violating Yak Guru

255 Posts

Posted - 2010-04-13 : 08:33:20
I don't know if there are differences but on the 180-day evaluation SQL Server 2008 version,there isn't this options like it was present in SQL Server 2000.
For what I have understood you have to automate a SSIS Package by using SQL Server Agent in order to perform the Maintenance Cleanup Tasks.
You can find additional information and a video that explain all that stuff at the following link:

http://msdn.microsoft.com/en-us/library/dd440761.aspx

Franco
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-13 : 14:57:24
Yeah I kind of glossed over it by saying it's in the plan. I still refer to it as a maintenance plan in 2008 even though it's now an SSIS package. Thanks for the link, franco!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

franco
Constraint Violating Yak Guru

255 Posts

Posted - 2010-04-14 : 02:16:22
You are welcome.

Franco
Go to Top of Page
   

- Advertisement -