Jump to content


  • 0
Tobie

Extend "All advertisement for a specific computer" with latest runtime

Question

Extend "All advertisement for a specific computer" with latest runtime

 

If you want to add a new column with Last Status Time in your SMS Report, fallow the steps below.

 

post-2397-1234159049_thumb.jpg

 

Expand Site Database, Computer Management, Reporting and mark Reports. Right click on report All advertisement for a specific computer and and choose Properties. Report ID 126.

post-2397-1234159713_thumb.jpg

 

Press on Edit SQL Statement...

post-2397-1234159807_thumb.jpg

 

Replace SQL Statement with the contect below (CODE), press OK.

post-2397-1234159984_thumb.jpg

 

SELECT  adv.AdvertisementName,
						 stat.LastStateName,
						 DATEADD(ss,@__timezoneoffset,LastStatusTime) as LastStatusTime,
						 adv.Comment AS C072, 
						 pkg.Name AS C062,
						 adv.ProgramName AS C071,
						 adv.SourceSite,
						 adv.AdvertisementID
FROM v_Advertisement adv
JOIN v_Package pkg ON adv.PackageID = pkg.PackageID
JOIN v_ClientAdvertisementStatus stat ON stat.AdvertisementID = adv.AdvertisementID
JOIN v_R_System sys ON stat.ResourceID=sys.ResourceID
WHERE sys.Netbios_Name0=@ComputerName

 

Go to Links tab and mark AdvertID and press on Edit.

post-2397-1234160221_thumb.jpg

 

Change the value "AdvertID" to Column = "8" instead of "7", press OK.

post-2397-1234160344_thumb.jpg

 

All done, hit F5 to refresh your report.

 

Thanks to WMMAYMS that has learned me this!

 

/Tobias

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.