web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

DYNAMICS and Company DB same size

(0) ShareShare
ReportReport
Posted on by 4,156

I have about 30GB size of company DB but DYNAMICS DB is also of same size i.e. 30GB where it could not be true.

Any Idea why that would be or since the initial size is set to Big is the reason?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Redbeard Profile Picture
    12,931 on at

    Syed,

    Typically if a database is unexpectedly large, as is the case with a 30GB Dynamics database, it is because the Recovery Model for the database is set to Full, and the transaction log is not being backed up. This causes the log file to continue to grow, dramatically increasing the size of the database.

    If you have a SQL resource, I would recommend consulting them on this matter. There is a ton of information available about this (online and otherwise) and a lot of it conflicts. In my humble opinion, the Full Recover Model is the right model for production environments, as it provides the greatest flexibility when restoring because of a disaster; however, this model must be administered correctly.

    To validate this is the problem, go to your Dynamics database in SQL Server Management Studio, right click on the database, select properties, and choose the options tab. The Recovery Model is visible on this tab.

  • Syrus Profile Picture
    4,156 on at

    Thanks Harry,

    My Recovery Model is "Full" and we do back TL overnight but this DYNAMICS MDF sits at very odd size

  • Verified answer
    Justin Thorp Profile Picture
    2,265 on at

    Hi,

    As Harry mentions, if you have a database admin I would use them as a first port of call.

    Otherwise, In SQL Server Management Studio, Right Click on the Dynamics DB then choose Reports - Standard Reports - Disk Usage.  Please let us know the details of this report.

    If there is a lot of unused space, then I'd recommend running the SQL "DBCC SHRINKDATABASE" command (Bing "DBCC SHRINKDATABASE" and there's lots of information on how to run it and what it does).

    Thanks,
    Justin

  • Verified answer
    Redbeard Profile Picture
    12,931 on at

    It is possible your Log File is not truncating after the TRN backup because no Full backup has been done since the TRN log backups were implemented.  There are other potential causes as well. Please refer to the technet article at this link:

    technet.microsoft.com/.../ms189085%28v=sql.105%29.aspx

  • Verified answer
    Syrus Profile Picture
    4,156 on at

    Hi Harry,

    I found the culprit. it WSExceptionLog Table in Dynamics which is grown to 27+ GB and now working on it to resolve.

    Thank you very much for all your help

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans