0 votes

Hello @All,

I use external logging in MSSQL and now we have 29GB database size and i want to cleanup the logs older that 6 month.
The biggest tables are:

a) Operations
b) Operations2OperationTypes

What can I do to cleanup the entries in the db?

Thanks ;)
Arne Tiedemann

by (360 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello Arne,

To cleanup events older than 6 months, execute the following command on your SQL Server:

DELETE FROM [AdaxesLogDB].[dbo].[Operations] WHERE [OperationStartTime] < DATEADD(month, -6, GETDATE())

where AdaxesLogDB is the name of the logging database.

Related questions

0 votes
1 answer

We'll be updating over 14K accounts with data (adding data to a virtual attribute) using a scheduled task but I don't want the updates to trigger Business Rules and flood the Adaxes log with entries. Is there an easy way to prevent this?

asked Apr 12, 2022 by sandramnc (870 points)
0 votes
1 answer

Hello again, I am planning the upgrade to 2013.2, but I would like to do it to a new server. The documentation is about using the same server (http://www.adaxes.com ... would like to have the current one migrated (SQL Settings). Thank you very much in advance

asked Nov 25, 2013 by Pierre (750 points)
0 votes
1 answer

If a user is disabled, I would like the following process to be automated: Direct reports of this disabled user (user A) are reassigned to new active user (user B) who ... is sent to User B indicating User As direct reports have been transferred to User B

asked Apr 29, 2022 by Cavolick (60 points)
0 votes
0 answers

Hello, Where i'm actually working, it seems there is an "old dev" Adaxes environnement which was linked to the AD. The server has been deleted now, but it seems the Windows ... Even if i install a fresh client. Where those parameters came from a GPO i guess ?

asked Apr 26, 2016 by Alexandre (460 points)
0 votes
1 answer

Another question :roll: When updating a user account, in case of username's change, I would like to run a script with variables like the old username value and the new one. I do not see how to call the old value. Is it possible? Thank's in advance, Yoann

asked Aug 22, 2012 by yoann.hamon (180 points)
3,348 questions
3,049 answers
7,791 comments
545,058 users