The system_audits and graph_disks seem to be ballooning out of control.
I have a couple of labs and students logon to them multiple times a day, so these two tables grow over time with every audit (runs at logon), so I'm looking for an efficient way to reduce the size of the tables and at the same time keeping some of the historical data.
I think the best approach would be to keep only the last 30 records of each audited system in system_audits and delete anything older than that.
Can anyone translate this into SQL query for me?
Thanks
_________________ Old OA Setup: 500 Windows 7 workstations & 200 Apple OSX with OA v1.5.2 on Windows Server 2003 and WAMP 2 New OA Setup: 100 Windows servers with OA 2.2 on Windows Server 2016 and WAMP 3
|