Find SQL Server Version Information from a SQL Backup
You will need to open up SQL Management Studio and create a new query window:
Type the following command replacing your path, and clicking Execute as shown
RESTORE HEADERONLY
FROM DISK = N’c:\temp\DBBkup.bak’
WITH NOUNLOAD;
The results at the bottom should show a tonne of information about the backup. What your most interested in is the values for SoftwareVersionMajor and SoftwareVersionMinor. The below can be used to identify your version:
| SoftwareVersionMajor = 7 | Backup is from SQL Server 7 |
| SoftwareVersionMajor = 8 | Backup is from SQL Server 2000 |
| SoftwareVersionMajor = 9 | Backup is from SQL Server 2005 |
| SoftwareVersionMajor = 10 and SoftwareVersionMinor = 0 | Backup is from SQL Server 2008 |
| SoftwareVersionMajor = 10 and SoftwareVersionMinor = 50 | Backup is from SQL Server 2008 R2 |





