September 15, 2017 at 9:14 am
Hi,
How to identity backup is taken form which version Sql server from Backup file
Regards
Binu
September 15, 2017 at 9:24 am
the restore headeronly command can do what you are asking
the results has a column named "SoftwareVersionMajor", and "SoftwareVersionMinor", where you can get things like 13,0 for SQL2016, for example
RESTORE HEADERONLY
FROM DISK = N'E:\MSSQL\Backups\ProductionServer\MyDB\LOG\ProductionServer_MyDB_LOG_20170915_111000.trn'
WITH NOUNLOAD;
GO
Lowell
September 15, 2017 at 9:59 am
Hi,
Below is output
SoftwareVersionMajor SoftwareVersionMinor SoftwareVersionBuild
13 0 4001
that means version is SQL Server 2016
Regards
Binu
September 25, 2017 at 2:31 am
This was removed by the editor as SPAM
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply