Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

"Always rowlock" in NAV 2013 R2

Posted on by 674

Hi all.

In NAV 2013 R2, there is no option to use "always rowlock" in DB options.

So, whether table lock always use in NAV 2013 R2 process? Or sometimes it use rowlock and pagelock?
How I know the lock that is used in NAV 2013 R2 process?

Can I set the "DB lock type", somehow?

Thanks.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Always rowlock" in NAV 2013 R2

    Concurrency is such a big issue in Dynamics NAV that whenever possible we use MS SQL Express with Visual Studio .net

    NAV can only work with MS SQL in either SERIALIZABLE ( all write-transactions ) or DIRTYREAD ( read only reports ) transaction isolation mode. This is very HUGE limitation.

    Basically it means concurrent work inserting data into the same table is impossible because most new records fall into the same page and PAGELOCK prevents working concurrently.

    Always rowlock in NAV was helpful but MS discontinued it because it was a significant drawback on MS SQL performance.

    We ended up setting up separate NAV DB for each user who is supposed to be entering new data (sales info) and then replicating data into one common back-office database

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: "Always rowlock" in NAV 2013 R2

    Agreed with Rashed.

    Concurrency is a big issue in Dynamics NAV. One of our client is always complain about G/L and Item Ledger entry table locks, but we are not in a position to provide a solution to them.

    If a posting is taking long, then all the other users have to wait till that finished. This get worse when the costing is set to Average. It is always a limit we can do by optimizing CAL code and it is high time for Microsoft to introduce new method to optimize table locks from CAL side.

  • Rashed Profile Picture
    Rashed 3,765 on at
    RE: "Always rowlock" in NAV 2013 R2

    Hello  Concurrency in NAV  is terrible.  During Posting it basically acts like a semaphore and locks the GL entry. 

    If you transactions take long, then you are out of luck. 

    SQL basically controls how to set the lock, and it could be on specific record,  or Page (multiple records),  Range lock or table. 

    There is no way around it.

  • jaloag Profile Picture
    jaloag 674 on at
    RE: "Always rowlock" in NAV 2013 R2

    Thanks Miguel.

    The problem is that we're talking about NAV standard code. :-)

    Greetings.

  • Verified answer
    Miguel Llorca Profile Picture
    Miguel Llorca User Group Leader on at
    RE: "Always rowlock" in NAV 2013 R2

    Hi Jose Angel,

    This option is not available since NAV 2013. That option was for compatibility with 32-bit architecture, and since SQL 2005 it wasn't very useful.

    The "official" argument is that you should solve or prevent the ocurring blocks by optimizing the C/AL code :-))

    Good luck!!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Always rowlock" in NAV 2013 R2

    sorry, i didn't get you. would you please explain in more details?

  • jaloag Profile Picture
    jaloag 674 on at
    RE: "Always rowlock" in NAV 2013 R2

    Hi sandeep.

    I mean "data blocking", non-blocking objects.

    Thanks.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Always rowlock" in NAV 2013 R2

    Automatic Lock/release Objects in NAV 2013 and 2013 R2

    community.dynamics.com/.../automatic-lock-release-objects-in-nav-2013-and-2013-r2

    Locking and Unlocking Objects

    msdn.microsoft.com/.../gg502465.aspx

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans