‎09-24-2009 07:10 PM
‎09-24-2009 09:27 PM
' This is a sample report
' Always start the name of your views with "web30rep"
'Create the view
CREATE VIEW dbo.web30rep...
AS
SELECT ...
GO
'Add the view to the reports table
INSERT INTO ...
GO
'Add the report to the reports page
INSERT INTO ... VALUES (...)
CREATE VIEW web30reptest
AS
SELECT computername from tblcomputers
GO
INSERT INTO tsysreports (Reportquery, Reporttitle)
SELECT 'web30reptest', 'this is a test'
GO
INSERT INTO Tsysreporthomepage
(HomepageQuery, Sortorder, Priority, Showcolor, Showpercentage)
SELECT 'web30reptest', 1234, 1, 1, 1
GO
delete from Tsysreporthomepage where homepagequery='web30repNoFSecure'
GO
update Tsysreporthomepage set sortorder=1234 where homepagequery='Web30repnonenglish'
GO
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now