Navision SQL & Deadlocks

megawavez
Member Posts: 133
Has anybody had any experiences working with Navision and fixing deadlocks problems? I have a routine which more than one people can run at the same time - the routine basically deletes a number of records from about 5 tables. Unfortunately, it deadlocks and from what I've determined, it's deadlocking on the keys. It anybody has some pointers, it would be greatly appreciate.
Chris
Chris
0
Comments
-
Hi Chris,
Just pass me your mail address. I will send you then a doc with recomandations on this point.
Francois0 -
0
-
-
To help track down deadlock issues, turn on traceflag 1024 in SQL. This will place detailed information about the deadloacks in the SQL error log. This information may help you isolate the issue.There are no bugs - only undocumented features.0
-
Chris, what is the title of this document?
I have here some docs: "Performance troubleshooting guide.pdf", "SQL Server resource kit.pdf" and "Tuning Navision for better performance" (Thanks to Mark Brummel). All of them contain some useful info about solving the deadlock problem. Do you have something else?Nil desperandum0 -
Why not put all those documents in the download-section?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
kriki wrote:Why not put all those documents in the download-section?
Agree.
Maybe a new category "Tuning Navision/SQL" ??0 -
Mark Brummel wrote:Maybe a new category "Tuning Navision/SQL" ??Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
OK, fine with me.
Lets leave it to Luc. He's the webmaster.0 -
Here's an example of 1024 tracing:
===============================================================================
Node:1
KEY: 7:1060198827:1 (fa0049244034) CleanCnt:2 Mode: Range-X-X Flags: 0x0
Grant List 0::
Owner:0x9540ad00 Mode: Range-X-X Flg:0x0 Ref:1 Life:02000000 SPID:54 ECID:0
SPID: 54 ECID: 0 Statement Type: DELETE Line #: 1
Input Buf: RPC Event: sp_execute;1
Requested By:
ResType:LockOwner Stype:'OR' Mode: Range-S-U SPID:52 ECID:0 Ec [Sad] 0x5703F560) Value:0xb1240e60 Cost [Sad] 0/16B7D80)
Node:2
KEY: 7:160719625:8 (0604204a640e) CleanCnt:2 Mode: Range-S-U Flags: 0x0
Grant List 0::
Owner:0x35e3a5c0 Mode: Range-S-U Flg:0x0 Ref:311 Life:02000000 SPID:52 ECID:0
SPID: 52 ECID: 0 Statement Type: SELECT Line #: 1
Input Buf: RPC Event: sp_execute;1
Requested By:
ResType:LockOwner Stype:'OR' Mode: X SPID:54 ECID:0 Ec [Sad] 0x36CF1560) Value:0x8003f960 Cost [Sad] 0/2C8FC)
Victim Resource Owner:
ResType:LockOwner Stype:'OR' Mode: X SPID:54 ECID:0 Ec [Sad] 0x36CF1560) Value:0x8003f960 Cost [Sad] 0/2C8FC)
==============================================
It looks to me like it getting locked out when trying to maintain table keys, but I'm not sure how to debug and fix it. The two clients are running the same routine to delete records.
If anybody could post the SQL & Deadlocking document, that would be appreciated.0 -
megawavez wrote:If anybody could post the SQL & Deadlocking document, that would be appreciated.
I've sent you "Tuning Navision for better performance.pdf" which I got from Francois0 -
megawavez, I can send you the "Performance troubleshooting guide.pdf" and "SQL Server resource kit.pdf", just give me your email.Nil desperandum0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions