dynamics crm 2011 - Deleting audit log data pertaining to specific entity -
is possible delete audit log data pertaining specific entity only? have huge audit log wanted reduce purging log data of specific entities though want keep other entities logs.
there no support method deleting audit log entries entity type. method support audit deletion date (i.e., records older x date.) *note: depending on sql environment available end dates may limited end date of audit log partition. *
that said, there unsupported method meeting requirement. critical: take crm server offline, backup database, , test restore before attempting - there no support available i'm going suggest, since goes against supported actions on dynamics crm 2011 sql database.
the audit logs stored in table dbo.auditbase
. table not have extension base, there 1 record per audit entry worry about.
you need objecttypecode
of entity. can database running following script:
select [entityid],[name],[objecttypecode]
[].[metadataschema].[entity] order name
now have objecttypecode
replace xxxx in script below value , run script.
delete [].[dbo].[auditbase] objecttypecode = xxxx
audit records specific entity type gone!
Comments
Post a Comment