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.