Eject tape after backups from maintenance plan

  • Hello,

    I am trying to figure out how to eject a tape after a maintenance plan that backs up 8 data bases. I understand that I need to use the commmands REWIND and UNLOAD, but I can't get to the T-SQL for the maintenace plan to change those two commands. Also, I've tried searching for sample maintenance plan scripts on the internet so I could write the whole thing myself, but I can't seem to find any for maintenace plans that execute backups to tape. Should I scrap the Maintenace Plan and just go for SS Agent jobs?

    Thanks in advance for your time and energy,

    jim

  •  To have the tape ejected at the end of the script, add ', UNLOAD'

    e.g.

    BACKUP DATABASE yourDB TO TAPE='\\.\TAPE0' WITH NAME='yourDB COMPLETE', UNLOAD

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

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