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 |
netjam
Starting Member
37 Posts |
Posted - 2009-11-26 : 23:31:42
|
Hi,Part of my Maintenace plan is to executing Maintenance Cleanup Task,but I am having a strange issue when Maintenance Cleanup Task executed successfully, but it does not delete anything.I specified file extension 'zip'Maintenance Cleanup Task (SERVER\SQL2008)Maintenance Cleanup on Local server connectionCleanup Database Backup filesAge: Older than 1 DaysTask start: 2009-11-27T03:23:35.Task end: 2009-11-27T03:23:35.SuccessCommand:EXECUTE master.dbo.xp_delete_file 0,N''E:\MSSQL\Backup\Dabase_Backup'',N''zip'',N''2009-11-26T03:23:35'',1I tried to execute it separatelyDECLARE @OLDDATE DATETIMESET @OLDDATE = GETDATE() -1EXECUTE master.dbo.xp_delete_file 0,N'E:\MSSQL\Backup\Dabase_Backup',N'zip',@OLDDATE,1nothing..But when I change extension to bak than it worksprocedure only works for files with bak extension for me. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|