SQL Server :- Error – “Cannot open database version [version #]. Upgrade the database to the latest version.”

Background

Upgrading our SQL Server Instances and noticed that our database backup job is failing.

Error Message

The error message read :-

Cannot open database ” version [nnn]. Upgrade the database to the latest version.

TroubleShooting

When we upgrade our SQL Server Instance, each individual database is upgraded to the new version.

Read-Only databases are skipped.  The reason is that they are read-only not just to user processes, but also to system processes, as well.

Remediation

Please change database from read only to read-write

SQL

Syntax


alter database [database]
	set read_write

Sample


alter database [hrdb]
	set read_write

Output


Converting database 'hrdb' from version 782 to the current version 869.
Database 'hrdb' running the upgrade step from version 782 to version 801.
Database 'hrdb' running the upgrade step from version 801 to version 802.
Database 'hrdb' running the upgrade step from version 802 to version 803.
Database 'hrdb' running the upgrade step from version 803 to version 804.
Database 'hrdb' running the upgrade step from version 804 to version 805.
Database 'hrdb' running the upgrade step from version 805 to version 806.
Database 'hrdb' running the upgrade step from version 806 to version 807.
Database 'hrdb' running the upgrade step from version 807 to version 808.
Database 'hrdb' running the upgrade step from version 808 to version 809.
Database 'hrdb' running the upgrade step from version 809 to version 810.
Database 'hrdb' running the upgrade step from version 810 to version 811.
Database 'hrdb' running the upgrade step from version 811 to version 812.
Database 'hrdb' running the upgrade step from version 812 to version 813.
Database 'hrdb' running the upgrade step from version 813 to version 814.
Database 'hrdb' running the upgrade step from version 814 to version 815.
Database 'hrdb' running the upgrade step from version 815 to version 816.
Database 'hrdb' running the upgrade step from version 816 to version 817.
Database 'hrdb' running the upgrade step from version 817 to version 818.
Database 'hrdb' running the upgrade step from version 818 to version 819.
Database 'hrdb' running the upgrade step from version 819 to version 820.
Database 'hrdb' running the upgrade step from version 820 to version 821.
Database 'hrdb' running the upgrade step from version 821 to version 822.
Database 'hrdb' running the upgrade step from version 822 to version 823.
Database 'hrdb' running the upgrade step from version 823 to version 824.
Database 'hrdb' running the upgrade step from version 824 to version 825.
Database 'hrdb' running the upgrade step from version 825 to version 826.
Database 'hrdb' running the upgrade step from version 826 to version 827.
Database 'hrdb' running the upgrade step from version 827 to version 828.
Database 'hrdb' running the upgrade step from version 828 to version 829.
Database 'hrdb' running the upgrade step from version 829 to version 830.
Database 'hrdb' running the upgrade step from version 830 to version 831.
Database 'hrdb' running the upgrade step from version 831 to version 832.
Database 'hrdb' running the upgrade step from version 832 to version 833.
Database 'hrdb' running the upgrade step from version 833 to version 834.
Database 'hrdb' running the upgrade step from version 834 to version 835.
Database 'hrdb' running the upgrade step from version 835 to version 836.
Database 'hrdb' running the upgrade step from version 836 to version 837.
Database 'hrdb' running the upgrade step from version 837 to version 838.
Database 'hrdb' running the upgrade step from version 838 to version 839.
Database 'hrdb' running the upgrade step from version 839 to version 840.
Database 'hrdb' running the upgrade step from version 840 to version 841.
Database 'hrdb' running the upgrade step from version 841 to version 842.
Database 'hrdb' running the upgrade step from version 842 to version 843.
Database 'hrdb' running the upgrade step from version 843 to version 844.
Database 'hrdb' running the upgrade step from version 844 to version 845.
Database 'hrdb' running the upgrade step from version 845 to version 846.
Database 'hrdb' running the upgrade step from version 846 to version 847.
Database 'hrdb' running the upgrade step from version 847 to version 848.
Database 'hrdb' running the upgrade step from version 848 to version 849.
Database 'hrdb' running the upgrade step from version 849 to version 850.
Database 'hrdb' running the upgrade step from version 850 to version 851.
Database 'hrdb' running the upgrade step from version 851 to version 852.
Database 'hrdb' running the upgrade step from version 852 to version 853.
Database 'hrdb' running the upgrade step from version 853 to version 854.
Database 'hrdb' running the upgrade step from version 854 to version 855.
Database 'hrdb' running the upgrade step from version 855 to version 856.
Database 'hrdb' running the upgrade step from version 856 to version 857.
Database 'hrdb' running the upgrade step from version 857 to version 858.
Database 'hrdb' running the upgrade step from version 858 to version 859.
Database 'hrdb' running the upgrade step from version 859 to version 860.
Database 'hrdb' running the upgrade step from version 860 to version 861.
Database 'hrdb' running the upgrade step from version 861 to version 862.
Database 'hrdb' running the upgrade step from version 862 to version 863.
Database 'hrdb' running the upgrade step from version 863 to version 864.
Database 'hrdb' running the upgrade step from version 864 to version 865.
Database 'hrdb' running the upgrade step from version 865 to version 866.
Database 'hrdb' running the upgrade step from version 866 to version 867.
Database 'hrdb' running the upgrade step from version 867 to version 868.
Database 'hrdb' running the upgrade step from version 868 to version 869.