Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

SQL Command timeout

Posted on by 625

1) What should be fill in SQL Command Timeout field for NAV2013-R2, currently it is 00:30:00, can this is one of the cause of table locked problem.

2) What should be fill in Lock timeout duration, currently it is set 20 Sec.

*This post is locked for comments

  • Verified answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: SQL Command timeout

    I do not think it will help you to sort the issue. First need to check why system take considerable time to release the tables. You can do this by tracing SQL log or contact a SQL expert. They will be able to provide you the exact issue on the SQL side. There might be cases of deadlock which result the "lock by another user".

    Other thing is check what is the costing method used in the system, if it is average and set as always then you might get the error as system try to adjust the cost for every transaction.

  • RE: SQL Command timeout

    my problem is "ILE or G/L table locked by user", can this will help me to remove this problem.

  • Verified answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: SQL Command timeout

    I would not recommend you to change the SQL Command Timeout. If you have a very valid reason for do that then you may proceed. On your second question you can increase it to a higher value, however then you will end-up with a performance issue. (Default 10s)

    If you can let us know what you going to achieve by increasing the time then we might be able to help you out more.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: SQL Command timeout

    Sanjay,

    I will leave both the setting values as you have now unless if you are running a big query which is taking very long time   as other suggested during upgrade or may be adjust cost entries you don't need to change SQL Command TimeOut

    By default the Lock Timeout Duration is 10 sec and increasing it 20 should be good but if you keep increasing this to higher value it may cause you delays and performance issues.

    Are you encountering any issues currently ?

  • Suggested answer
    4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: SQL Command timeout

    Hi Sanjaypandey,

    1) SQL Command Timeout: definition from Microsoft is the contextual time-out for a SQL command, msdn.microsoft.com/.../dd355055(v=nav.90).aspx. In my opinion, it is maximum time a SQL command can carry out. For some long tasks such as adjust cost, we need to increase this setting to hours, or days when upgrade NAV system.

    2) Lock Timeout Duration: http://forum.mibuso.com/discussion/20281/lock-timeout-setting-nav-4-sp2-sp3 provides you more information.

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: SQL Command timeout

    For normal work of production environment:

    1) Depends how large is your database. For big databases the default 30 mins can be increases. If you just started you can live with the default settings.

    2) If you are not experiencing any locking issues with the database, you can leave it like it is by default to 10 or 20. If issues - increase it to 30 or even 60.

    For other operations, e.g. upgrades/synchronizations, you can increase the values as per your need (e.g., http://saurav-nav.blogspot.ru/2014/08/upgrade-nav-2013-r2-error.html)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans