Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Off the wall Orion DB question

$
0
0

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:

AccountIDLastLoginAccountTypeGroupInfo
DOM\Joe2016-06-09 17:52:39.5334DOM\Helpdesk
DOM\Read_Only2017-05-04 19:48:56.2433DOM\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.


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>