Home > database > Questions about by TSQL finish pending delete bak files
Questions about by TSQL finish pending delete bak files
Time:04-22
requirement: 1. Perform by a key script automatically backup the database to drive 2. The output in the result window after a successful backup details of the backup file 3.24 hours after automatically deleted bak files 4.123 steps must be completed in the same session window to execute a script file, difficulty: waitfor implementation steps 3 can, but will result in step 2 will be returned after step 3, now I can think of is to build a homework to do, and then delete the homework, but it seems that homework can't delete itself, don't know what bosses have a good way to achieve?
CodePudding user response:
Timing plan assignment, learn about, SSMS with this feature, it is not called to complete in a session form, is to be a timer, the scope of the condition of specified time, to perform a backup and delete operation,