Citrix: Reducing the RMSummaryDatabase Size
Once you’ve backed up the RM summary Database, you can run a manual purge on the prod database to get rid of what was backed up. Here’s the query (to be run from Query Analyzer):
**********
DECLARE @farmName nvarchar(2
DECLARE @sCutoffDa
SELECT @farmName = N’EnterYou
SELECT @sCutoffDa
EXEC PurgeUnbil
EXEC Purgeevent
EXEC Purgemetri
**********
**********
EXEC PurgeBille
**********
Note2: Is your customer using web interface?
**********
Delete FROM LU_client WHERE PK_clientI
and PK_clientI
and PK_clientI
**********
Note3: Same thing for the LU_USER table:
**********
Delete FROM LU_USER WHERE PK_userID NOT IN ( SELECT FK_userid FROM SDB_proces
and PK_userID NOT IN ( SELECT FK_userid FROM SDB_sessio
**********
There are many ways to reduce the size of the RMDB but it all depends on what is expected from it so, unless the storage for backup is not an issue, you might need to understand
By Vincent