Skip to main content

Stored Procedures

The table contains a list of the stored procedures Threat Prevention uses on its SQL Server databases. See the Database Maintenance Window topic for additional information.

NameWhen Threat Prevention Uses the ProcedureWhat the Stored Procedure Does
DeleteAuthAnalyticsCalled from the SQLAgent job if the “Delete” operation is selected for database maintenance for Authentication Analytics.This stored procedure deletes “old” data from the database in the following tables: - A_Login - A_Login2Policy - AR_BruteForceAttacks - AR_UserAccountHackingAttacks - AR_HorizontalMovementAttacks - AR_BadUserIdByUser - AR_BadUserIdByHost - AR_BreachedPassword - AR_ConcurrentLogins - AR_DiamondPAC - AR_EventTracker - AR_ImpersonationLogins - AR_GoldenTickets - AR_KerberosWeakEncryption
DeleteByPolicyCalled from the SQLAgent job if the “Delete” operation is selected for database maintenance for selected policies.This stored procedure deletes “old” data from the database in the following tables: - NvEvent - NvEvent_EventTracker - AttributeValue - OldAttributeValue - EventPolicy - E_LDAP - E_LDAP_EventTracker - E_LDAP2Policy
DeleteFSAnalyticsCalled from the SQLAgent job if the “Delete” operation is selected for database maintenance File System Analytics.This stored procedure deletes “old” data from the database in the following tables: - A_FS - A_FS2Policy - AR_FilesPerUser - AR_EventTracker
Delete LDAPCalled from the SQL Agent job if the “Delete” operation is selected for database maintenance for the LDAP Event Type.This stored procedure deletes “old” data from the database in the following tables: - E_LDAP - E_LDAP_EventTracker - E_LDAP2Policy
DeleteNvEventByEventTypeCalled from the SQL Agent job if the “Delete” operation is selected for database maintenance for all Event Types except LDAP.This stored procedure deletes “old” data from the database in the following tables: - NvEvent - NvEvent_EventTracker - AttributeValue - OldAttributeValue - EventPolicy
MoveAuthAnalyticsCalled from the SQLAgent job if the “Move” operation is selected for database maintenance for Authentication Analytics.This stored procedure moves “old” data from one database to another in the following tables: - A_Login - A_Login2Policy - AR_BruteForceAttacks - AR_UserAccountHackingAttacks - AR_HorizontalMovementAttacks - AR_BadUserIdByUser - AR_BadUserIdByHost - AR_BreachedPassword - AR_ConcurrentLogins - AR_DiamondPAC - AR_EventTracker - AR_ImpersonationLogins - AR_GoldenTickets - AR_KerberosWeakEncryption
MoveByPolicyCalled from the SQLAgent job if the “Move” operation is selected for database maintenance for selected policies.This stored procedure moves “old” database from one database to another in the following tables: - NvEvent - NvEvent_EventTracker - AttributeValue - OldAttributeValue - EventPolicy - E_LDAP - E_LDAP_EventTracker - E_LDAP2Policy
MoveFSAnalyticsCalled from the SQLAgent job if the “Move” operation is selected for database maintenance for File System Analytics.This stored procedure moves “old” data from one database into another in the following tables: - A_FS - A_FS2Policy - AR_FilesPerUser - AR_EventTracker
Move LDAPCalled from the SQLAgent job if the “Move” operation is selected for database maintenance for LDAP Event Type.This stored procedure moves “old” data from one database into another in the following tables: - E_LDAP - E_LDAP_EventTracker - E_LDAP2Policy
MoveNvEventsByEventTypeCalled from the SQLAgent job if the “Move” operation is selected for database maintenance for all Event Types except LDAP.This stored procedure moves “old” data from one database to another in the following tables: - NvEvent - NvEvent_EventTracker - AttributeValue - OldAttributeValue - EventPolicy
RdbPolicyCopyCalled from the SQLAgent job if the “Move” operation is selected for database maintenance.This stored procedure creates a copy of the RdbPolicy table in the target database.