‎01-29-2008 07:37 PM
' This is a sample report that shows all installed microsoft software
' Always start the name of your views with "web30rep"
'Create the view
CREATE VIEW dbo.web30repmicrosoftsoftware
AS
SELECT DISTINCT TOP 100 PERCENT softwareName as Software, softwareVersion as Version, SoftwarePublisher as Publisher
FROM dbo.tblSoftware
WHERE (SoftwarePublisher LIKE '%microsoft%')
ORDER BY softwareName
GO
'Add the view to the reports table
INSERT INTO [tsysreports] ([Reportquery],[Reporttitle]) VALUES ('web30repmicrosoftsoftware','All Microsoft software')
GO
'Add the report to the software reports page
INSERT INTO dbo.tsysreportsoftware
(HomepageQuery, Sortorder, Priority, Showcolor, Showpercentage)
VALUES ('web30repmicrosoftsoftware', 1000, 3, 0, 0)
‎03-24-2009 09:14 PM
‎03-24-2009 04:57 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now