Reg: Automatic Delete the three days older backup file

  • Hi All

    My requirement three days old backup file should be delete automatically.Crrently my backup plan not working properly.baechuse of this i am using folloeing Query .In this Query i called throug JOB.

    DECLARE @DateString CHAR(10)

    SET @DateString = CONVERT(VARCHAR(10),GETDATE()-3,121)

    EXECUTE master.dbo.xp_delete_file 0,N'\\192.168.0.242\Backups\ScheduleDBBkup\218 Server\UMS\',' ',@DateString

    In this above Query last two weeks executed good.but now a day its deleted same day.what is a problem.please replay me.

  • There's no file extension specified as the second parameter. I think that's your problem.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply