Backup All Databases

  • Comments posted to this topic are about the item Backup All Databases

  • If you are going to backup all the user databases on a database server, why not just use a Maintenance Plan? Simple to do.:-D

    "Technology is a weird thing. It brings you great gifts with one hand, and it stabs you in the back with the other. ...:-D"

  • I like the idea of putting something like this as a task in a plan. This is dynamic in that it gets new databases without me having to do anything.

    I add the "COPY_OnlY" parameter so that my backups don't interfer with other running plans. Then I include the databases excluded in this example (except tempdb). That way I have my system db backups as part of the same thing. Better to have it and not need it than to need it and not have it.

    Great script. It's simple and easy to understand. Thanks.

    ATBCharles Kincaid

  • Using hand crafted scripts is all well and good, however you should enclose the database name in [ ] to avoid databases containing a space in their names; otherwise your script will crash. I have learnt this by experience.

    Keep up the scripting though ...

  • Oliver Wootton (12/17/2012)


    Using hand crafted scripts is all well and good, however you should enclose the database name in [ ] to avoid databases containing a space in their names; otherwise your script will crash. I have learnt this by experience.

    Keep up the scripting though ...

    Thanks for the tip.

Viewing 5 posts - 1 through 4 (of 4 total)

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