We have the following databases on one of our SQL Serve instances.
- ABC123
- ABC456
- ABC765
- ABC234
- ABC_SETTINGS
- ABC
The ABC[numbers] databases are different versions. The ABC database is a copy of the latest ABC[numbers] database. The ABC Setting contains setting and history data for each ABC[numbers] database.
Within the ABC_SETTINGS database there is a table called VERHIS which contains details of the version history if the database
Name_DB | Date | Version |
ABC123 | 01/01/2014 | 1 |
ABC456 | 4/4/2014 | 2 |
ABC765 | 7/4/2014 | 3 |
ABC234 | 10/4/2014 | 4 |
We currently backup all the databases but would like to know if it possible to set a job to check the latest ABC[] database and restore to ABC?