Identify SQL Server Database Backup Version

Posted on : 12-01-2012 | By : Devi Prasad | In : DatabaseBackup, SQL Server Basics, SQLServerPedia Syndication


How to Identify SQL Server Database Backup Version.

Following is the query:
RESTORE HEADERONLY FROM DISK=’C:\DatabaseBackups\DatabaseBackup.bak’

Specify the correct path of the backup file.

When this query is executed read the values of the columns SoftwareVersionMajor,SoftwareVersionMinor and SoftwareVersionBuild.

The version of the SQL Server backup can be found by concatinating the values in three columns.
version of backup = SoftwareVersionMajor.SoftwareVersionMinor.SoftwareVersionBuild

If the output is
SoftwareVersionMajor = 10
SoftwareVersionMinor = 50
SoftwareVersionBuild = 2500

Then the version of database backup is 10.50.2500

SoftwareVersionMajor also gives an idea of the major version of SQL Server.
It helps to determine if the database backup is of SQL Server 2005 or SQL Server 2008.

Identify Database Backup Version
SoftwareVersionMajor = 9 backup is of SQL Server 2005
SoftwareVersionMajor = 8 backup is of SQL Server 2000
SoftwareVersionMajor = 10 and SoftwareVersionMinor = 0 backup is of SQL Server 2008
SoftwareVersionMajor = 10 and SoftwareVersionMinor = 50 backup is of SQL Server 2008 R2

Related posts:
Verify SQL Server Database Backup
restore higher version database backup on lower version sql server – restore problem
The media family on device is incorrectly formed. SQL Server cannot process this media family Error: 3241

Reference : Devi Prasad (

Do you like my blog?

If you liked reading this blog, please help spread the word by sharing this blog with your friends.

Need Help On SQL Server?

Cannot Find Solution to your problem (or) If you are looking for some help on SQL Server. Dont worry Click Here to Post your question and solve your issue.

Your Ad Here

Tags: , , , , , , , , , , ,