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)
Veeam Backup and Replication 9.5 no longer supports databases with a compatibility level of 2005 or lower.
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:
To check the compatibility level run:
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.