OWSUG.ca

Welcome to Ottawa's Windows Server User Group Community!
Welcome to OWSUG.ca Sign in | Join | Help
in Search

SMS

How to Perform a Basic Software Audit (Query)

Quick follow up to How to Perform a Basic Software Audit

Do you want to know how many ARP entries you have?

How many page of paper you will get if you print all of the entries?

What about bundles of paper?

 

Use this query to help you determine this for you.

 

declare @ARP BIGINT
Set @ARP = (select count(*) from dbo.v_Add_Remove_Programs)

Select
'Number of ARP entries ' + convert(varchar(10), @arp),
'Number of pages '+ convert(varchar(10), sum(Round(@arp/80,0)+1)),
'Number of papper Bundles '+ convert(varchar(10), round(sum(@arp/40000.0),2))

Published Saturday, October 31, 2009 6:36 PM by SMSUG.ca
Filed under: , , , ,

Comments

No Comments
Anonymous comments are disabled

This Blog

Syndication

Powered by Community Server, by Telligent Systems