Cleaning the Localizedtext Table after SCOM upgrade to SCOM 2007 R2

1 minute read

After upgrading your OpsMgr 2007 components and upgrading your SQL environment to SQL Server 2008, you will need to run some post installation steps. These post installation steps are only needed if you have done an upgrade from OpsMgr 2007 to OpsMgr 2007 R2.

OpsMgr 2007 SP 1 had an issue with the localized text table continuing to grow. The main cause of this was converted MOM 2005 management packs running a lot of backwards-compatibility scripts, such as the converted Exchange 2007 management pack. The issue was that each event wrote additional data to the localized text table, which is not groomed. Over time, the Operational database continued to grow, which had a tremendous impact on OpsMgr performance. Kevin Holman writes about this at; it is also documented on the SCUG.BE blog at .


I’ve just did an upgrade at a customer site and after completing the post-installation steps as mentioned here and I was very surprised by the results!!



I checked the database size and the localizedtext table before running the cleanup script.

  • Database size before the cleanup script


28 gig of space!


  • 12.700.000 records in the localizedtext table before running the cleanup script.


In OpsMgr 2007 R2, the localizedtext table issue is gone. The table still exists but Microsoft has resolved the growing issue. Even if the issue is gone you will need to run the following SQL query once after the upgade to initially clean up the localizedtext and publishermessage tables. You can copy/paste the script from here 


The script has run for about 4 hours!


Now the results! 🙂


Disk space after the clean up script:


7 gig of disk space; So that’s a gain of 20 gig of disk space! That’s amazing!


780.000 records found in the localizedtext table after running the clean up script !! So that’s about 12 million records lesser!!


For completing the post-upgrade steps I did a reindex of the database.









And now my console is running very fast and I’ve less data to backup! So after upgrading to SCOM 2007 R2 you will definitely have to run the clean up script!!


Alexandre Verkinderen

Leave a comment