Automations

Backup All Databases In One Shot.

using sp_msforeachdb:

sp_msforeachdb ‘BACKUP DATABASE ? TO DISK = ”\\MyShare\Backup\?.bak” WITH FORMAT’

here’s another one.

even though these kinds of scripts aren’t difficult to produce
i figure why not post it any way.

just run this in query analyzer, or management studio.
remember to change the output to ‘text’ or CTRL+T
before you run it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s