Query to get version of SQL Backup
Borisimo
Posts: 2 New member
in SQL Backup
When I run the master.dbo.sqlbackup stored procedure , the version appears in the results header (see picture). Is there a way to pull this information as a value into a variable? Or is there a parameter that can be passed to the sqlbackup stored procedure to return the version?
I am trying to monitor the version of SQLBackup installed across our various servers and this would help a lot.
Tagged:
Best Answer
-
petey2 Posts: 88 Silver 3We don't publicly release documentation for the sqbutility function. If you want to find the licensing status for an instance, you can use this:
<div>DECLARE @type INT <span style="background-color: transparent; color: inherit; font-size: inherit;"><font face="Roboto, Helvetica Neue, Arial, sans-serif">DECLARE @version varchar(16)</font> </span><span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">DECLARE @serial varchar(32)</span></div><div><br></div><div>EXEC master..sqbutility 1021, @type OUTPUT, @version OUTPUT, @serial OUTPUT <span style="background-color: transparent; color: inherit; font-size: inherit; font-family: Roboto, "Helvetica Neue", Arial, sans-serif;">SELECT @type, @version, @serial</span> </div>
Possible values for @type:
0 = expired trial
1 = active trial
2 = standard license
3 = professional licenseSQL Backup - beyond compression
Answers
The version of the SQL Backup Agent service (SQBCoreService.exe) can be retrieved using the following:
You might sometimes run into situations where the version of the extended stored procedure library differs from the SQL Backup Agent service e.g. when the extended stored procedure library was locked during an upgrade process.