Is RedGate backup tool activated?

Forum for users of Redgate's SQL Backup tool

Is RedGate backup tool activated?

Postby garga1 » Wed Mar 07, 2012 5:51 pm

We use RedGate backup tool in our environment to backup giant databases. Our entire team has permissions to install the tool on the servers they are responsible for. When the license limit is reached, the activation fails. So far so good. But it becomes a nightmare for me to find out where it is installed and more important, licensed. I can run this query in SSMS on a SQL Server group of servers to find out if the tool is installed:


and it gives me, say, 20 servers. But how to know if all those 20 are licensed or trial versions?

I don't want to RDP into every server to find this out. Thru command line, registry read or sql query would be the desired solution.

Please help.
Posts: 7
Joined: Wed Mar 07, 2012 5:43 pm

Postby petey » Thu Mar 08, 2012 1:02 am

Try this:
Code: Select all
DECLARE @licensetype INT
DECLARE @version varchar(16)
DECLARE @serialnumber varchar(64)
EXEC master..sqbutility 1021, @licensetype OUT, @version OUT, @serialnumber OUT
SELECT    @@servername server,
   CASE @licensetype WHEN 0 THEN 'Expired trial'
           WHEN 1 THEN 'Trial'
           WHEN 2 THEN 'Standard'
           WHEN 3 THEN 'Professional'
           WHEN 4 THEN 'Beta'
           WHEN 6 THEN 'Lite'
           WHEN 8 THEN 'Read-only'
   END AS license,
   @version version, @serialnumber serialnumber
Peter Yeoh
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Posts: 2357
Joined: Sun Apr 24, 2005 11:34 am

Postby garga1 » Thu Mar 08, 2012 2:49 pm

Perfect solution. Thank you so much.
Posts: 7
Joined: Wed Mar 07, 2012 5:43 pm

Return to SQL Backup Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests