All, I have an off the wall Orion DB question, that I was hoping someone could answer. Here's the scenario.
I'm building a simple SWQL Studio report that shows users in a Solarwinds groups and the last time the logged in. This will be posted on the Solarwinds Admin home page and it'll include the search feature to search the AccountID. While writing the SWQL query I came across something interesting and I'm too afraid to pull the trigger to possibly resolve my issue.
Where's the simple SWQL query;
SELECT AccountID , LastLogin , AccountType , GroupInfo
FROM Orion.Accounts
WHERE AccountType='4' or AccountType='3'
Here's an example of the results:
AccountID | LastLogin | AccountType | GroupInfo |
---|---|---|---|
DOM\Joe | 2016-06-09 17:52:39.533 | 4 | DOM\Helpdesk |
DOM\Read_Only | 2017-05-04 19:48:56.243 | 3 | DOM\Sam |
So here's my question, DOM\Joe in the account Group DOM\Helpdesk hasn't logged into Solarwinds in 2 years and DOM\Read_Only account in GroupI DOM\SAM hasn't logged in 1 year. Can I truncate the Accounts table to remove old entries or is there away I can strategically remove old entries? I'm worried that if I truncate the table I'll do unrecoverable damage.