Hi,
I am using AX 2012 R2 CU7.
I was running short of storage in "C:\" due to the increasing size of the logs all of a sudden. The size of the LDF file was around 32 GB and of MDF was around 42 GB.
Link: instructorbrandon.com/walkthrough-reclaim-space-and-shrink-the-transaction-logs-after-major-code-moves-in-dynamics-ax
1. After I followed the above blog, my LDF file reduced to to around 1 MB and the space in my "C:"\ was around 39 GB ( I even shrinked MDF file) (Shrinking was done through UI only)
2. I have 8 legal entities in my AX.
3. After step #2, I required more free space, so tried to delete the Transactions using "SysDatabaseTransDelete", for each 8 legal entities individually. In this process I realized that while deleting the Transactions, my LDF size grew again around 32 GB !!!
My query is, deletion of transactions using the the class "SysDatabaseTransDelete", why is it increasing the size of the LDF file so exponentially?
I was expecting more space to be available after Deleting these Transactions but it turned out that few MBs are left in my "C:\" after executing this "SysDatabaseTransDelete" class for each legal entity.
Can some one please help me understand what is happening behind the scene?
Would appreciate for some help.
Sincerely,
Muneeb