Challenge
When attempting to upgrade the Veeam Backup and Replication software, an error is encountered:Unable to use database VeeamBackup, because it has an unsupported compatibility level (SQL Server 2008 or later is required)
Cause
Veeam Backup and Replication 9.5 no longer supports databases with a compatibility level of 2005 or lower.Solution
Change the compatibility level of the database to 2008 or higher:
In SQL Server Management studio this can be done by following these steps:- Right-click the database in question
- Click ‘properties’
- Click the ‘options’ tab
- Drop down the ‘Compatibility Level’ box and change the compatibility level to 2008 or higher
The following queries can be run to check the compatibility level and change it:
(Before running any queries, always back up the Veeam database (http://www.veeam.com/kb1471))
To check the compatibility level run:
To check the compatibility level run:
SELECT compatibility_level
FROM sys.databases WHERE name = 'Veeambackup';
To change the compatibility level run***:
ALTER DATABASE Veeambackup
SET COMPATIBILITY_LEVEL = 100;
***‘100’ is the compatibility level for 2008. To change it to 2012, use ‘110’. To change it to 2014, use ‘120’. You cannot change the compatibility level to be high than the version of the SQL instance being used.