August 16, 2011 at 1:32 am
August 16, 2011 at 1:39 am
hnow can delete a backup file in sqlserver2000?
August 17, 2011 at 11:57 am
zsafakhah (8/16/2011)
hnow can delete a backup file in sqlserver2000?
Some options for you in no particular order:
- Use xp_CmdShell to issue a DEL command directly
- Use xp_CmdShell to call a Windows Batch script that will do the deletes as needed.
- Use xp_CmdShell to call a PowerShell script that will do the deletes as needed.
- Use xp_CmdShell to call forfiles.exe to delete old files.
- Setup a SQL Agent job that will do one of the above tasks on a schedule (i.e. no need for xp_CmdShell).
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Viewing 3 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply