SQL Server Maintenance Plans

Came across an interesting quirk with SQL Server maintenance plans. We have a plan set up for a nightly backup of all of our development databases. In the ‘Backup Database Task’, we select specific databases to backup.
One of the databases was removed from the instance, but the plan wasn’t updated to no longer backup that database. The backup failed, since the database was no longer there. Going into the plan, we couldn’t de-select the database, it wasn’t available as an option since it was no longer online.
By default, we had the ‘Ignore databases where state is not online’ option checked. Once that option was unchecked, the plan could complete, skipping the database no longer there.

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: