Purge Data - SO_LastPurchaseHistory & SO_ARInvoiceHistoryLink

SUGGESTED

I am starting the process of purging data from our company. This is the guide that I'm following:  www.connerash.com/.../Sage100History-HowToPurge.pdf

One thing I have noticed after purging records from AR, IM, and SO, is that there are tables that are not purging.

I am purging all data that is < 1/1/2013

I have a query in SQL (I'm running Sage 100 2018 premium) that tells me which tables are the biggest by rows / disk size. After running the purge utilities, I can see that these 2 tables are still my biggest tables:

SO_LastPurchaseHistory
SO_ARInvoiceHistoryLink

When I query them directly, I can see they still have records prior to 1/1/2013

Is there a utility I'm missing to purge these tables or is there some sort of sequence of purge's that need to happen so that dependencies do not cause some records to drop?

Parents
  • 0

    Try doing a rebuild key files.

  • 0 in reply to TomTarget

    that's not an option in premium.

  • 0 in reply to RedemptionMatt

    That would be a problem. I'm no SQL expert.

    Do the records have some sort of deleted marker on them?

    I hunted around and found a number of articles talking about reclaiming space in SQL databases (not specificially Sage 100).  They seem to suggest that the space from deleted records are not automatically reclaimed but that new records added will automatically overwrite the deleted records.

    Apparently there are some commands that will shrink the actual database but they take a very long time to process.  Consensus seems to be that it isn't worth the time. 

  • 0 in reply to TomTarget

    I can handle the SQL side of things, that's not an issue for me. Shrinking a DB isn't the same as purging records.  But you are correct, the end goal is to purge records that are no longer needed & then shrink the DB to lower overall disk consumption.

    Where I'm a little stuck is having Sage purge the proper records with their utilities.  I don't want to go down the rabbit hole of looking at every table and looking for records to delete. I'm just noticing that after using the purge tools for those modules, that there are at least those two SO tables that still have records going was past the date I set as the purge date.

Reply
  • 0 in reply to TomTarget

    I can handle the SQL side of things, that's not an issue for me. Shrinking a DB isn't the same as purging records.  But you are correct, the end goal is to purge records that are no longer needed & then shrink the DB to lower overall disk consumption.

    Where I'm a little stuck is having Sage purge the proper records with their utilities.  I don't want to go down the rabbit hole of looking at every table and looking for records to delete. I'm just noticing that after using the purge tools for those modules, that there are at least those two SO tables that still have records going was past the date I set as the purge date.

Children