We’re currently experiencing a high volume of support requests, which may result in longer response times — Thank you for your patience and understanding.
Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Ismail
Engaged Sweeper II
I tried to edit the predifined report "Never Scanned OS" by adding LastknownIP to the report. After adding and trying to save it gave out an error of me not able to save since the ORDER is not correct. I did document the error message since this usually happens when I try to save predifined reports with my my own additions I get that message. Thinking it was I could rectify by just closing the report and reponing I get this message when I try to edit or even view the report with the report builder.

Sadly I did not take a backup of my database the day earlier and I would like to rectify this problem as soon as possible. Any insight on how I can do this please let me know.
2 REPLIES 2
Ismail
Engaged Sweeper II
Great, thanks
Hemoco
Lansweeper Alumni
This is the original sql of the view

SELECT     TOP 100 PERCENT dbo.tblComputers.Computername AS Computer, dbo.tblComputers.Username, dbo.tblComputers.Domain, 
dbo.tblComputers.Firstseen AS [First seen], dbo.tblComputers.Lastseen AS [Last seen],
CAST(dbo.tblComputers.Lastseen - dbo.tblComputers.Firstseen AS bigint) AS [days alive]
FROM dbo.tblComputers LEFT OUTER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername
WHERE (dbo.tblOperatingsystem.Computername IS NULL)
ORDER BY dbo.tblComputers.Domain, CAST(dbo.tblComputers.Lastseen - dbo.tblComputers.Firstseen AS bigint) DESC


If you want to do "order by" in a view you need the "SELECT TOP 100 PERCENT"

Archive

This board contains archived posts from the retired Lansweeper Forum and Insiders Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now