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 AX (Archived)

Consistency Check - DBCC CheckDB

(0) ShareShare
ReportReport
Posted on by

Good day.

Hi Experts, 

Hope you all are doing great everyday. 

May I ask your assistance/opinions about consistency check in MSDAX 2012 R3. Is it the same with DBCC Check DB in SQL or is there any command from SQL that will have the same result for consistency check in AX? Because as of now, we are trying to run it but around 4 days it is not yet finished at all and I think it is looping only. Is there any substitute for this? I hope you get me. 

Thank you in advance. Hoping for a positive response to all of you guys.

Raph

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    Hi Raph Dumape

    you can select a specific module from a specific date.

    this function different check in SQL server

    you can use consistency check in MSDAX 2012 R3 to check or fix the error (correct error)

  • Community Member Profile Picture
    on at

    Hi Mahmoud,

    I already specified the module but still not finish. I run Sales Order last week Thursday. There is no error in evnet logs. It's just running and no results generated.

    Thanks,

    Raph

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    what about performance in AOS and DB server?

    this is not normal.

  • Community Member Profile Picture
    on at

    Hi Mahmoud,

    This is currently running on one of our test servers. AX is deployed in a single server. I understand that the resources is not achieved since it has limited RAM and CPU. But it is running for 4 days. That is my concern, whether my servers are slow I think it should be able to run the consistency check.

    Thanks,

    Raph

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    I face the same problem before, after investigation  I found database locked

    so you can run  sp_who2 active to check all active  process in your database

  • Community Member Profile Picture
    on at

    Hi Mahmoud,

    Thank you for this but as per checing there is no blocking/locking in the database.

    Thanks,

    Raph

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Let me clarify the confusion here, because you guys are talking about two very different topics.

    AX consistency check is only for a small subset of AX-based tables to validate if there are no broken record references, or if values add up like in Inventory on hand based on the transactional data, etc. It is a limited functionality to check if something is wrong with transactions.

    DBCC CHECKDB on the other hand is for verifying the integrity of the SQL database and log files, and should be executed regularly to find corrupt data pages, and so on.

    docs.microsoft.com/.../dbcc-checkdb-transact-sql

    If it is running slow, blame your under-sized or incorrectly configured environment.

    As the documentation clearly explains, you need either a large amount of RAM, or if you do not have that, properly sized and fast-performing TempDB database (multiple TempDB data files, files being spread across multiple fast-performing disks with dedicated I/O controllers/paths).

    We have a 2 TB size AX database sitting on a mix of SSD and HDD tiers depending on where the cold data is. There are 8 x 12 GB TempDB data files spread across 2 disks sitting on our SSD hot-tier, SQL Server 2014 having 256 GB RAM, and it takes 10 hours to complete this command:

    DBCC CHECKDB ([AXDB]) WITH NO_INFOMSGS, ALL_ERRORMSGS, DATA_PURITY

    Also as per this article, SQL Server 2016 has a great boost for this area as well:

    https://www.mssqltips.com/sqlservertip/4437/faster-dbcc-checkdb-with-sql-server-2016/

  • Vilmos Kintera Profile Picture
    46,149 on at

    Please mark helpful answers with the checkbox next to each post to resolve the thread, thank you.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans