‎01-19-2011 05:52 PM
‎01-19-2011 06:19 PM
‎01-19-2011 06:15 PM
ALTER VIEW dbo.web40repprinteralmosttoner
AS
Select Top 1000000 tsysDevicetypes.ItemTypeIcon10 As icon,
tblCustDevices.Displayname As [Device name], tblCustDevices.Model As [Device model], tblCustDevices.DeviceKey,
Floor(tblCustDevPrinter.TonerRemaining / tblCustDevPrinter.TonerMaximum * 100) As [Remaining %], tblCustDevPrinter.Tonername, tblCustDevPrinter.Lastchanged
From tblCustDevices Inner Join
tsysDevicetypes On tsysDevicetypes.ItemType = tblCustDevices.Devicetype
Inner Join
tblCustDevPrinter On tblCustDevPrinter.DeviceKey = tblCustDevices.DeviceKey Where Floor(tblCustDevPrinter.TonerRemaining / tblCustDevPrinter.TonerMaximum * 100) <= 10 And tblCustDevices.State = 1 And tblCustDevPrinter.TonerMaximum > 0 Order By Floor(tblCustDevPrinter.TonerRemaining / tblCustDevPrinter.TonerMaximum * 100)
GO
ALTER VIEW dbo.web40reptonerlevel
AS
Select Top 1000000 tsysDevicetypes.ItemTypeIcon10 As icon, tblCustDevices.Displayname As [Device name], tblCustDevices.Model As [Device model], tblCustDevices.DeviceKey, Floor(tblCustDevPrinter.TonerRemaining / tblCustDevPrinter.TonerMaximum * 100) As [Remaining %], tblCustDevPrinter.Tonername, tblCustDevPrinter.Lastchanged From tblCustDevices Inner Join tsysDevicetypes On tsysDevicetypes.ItemType = tblCustDevices.Devicetype Inner Join tblCustDevPrinter On tblCustDevPrinter.DeviceKey = tblCustDevices.DeviceKey Where tblCustDevices.State = 1 And tblCustDevPrinter.TonerMaximum > 0 Order By Floor(tblCustDevPrinter.TonerRemaining / tblCustDevPrinter.TonerMaximum * 100)
GO
‎01-19-2011 06:00 PM
‎01-19-2011 05:58 PM
‎01-19-2011 05:54 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now