temporary tables locking to death?

wic
Member Posts: 96
hi all,
I'm wondering why 2 users can have locks on temporary tables.
Example: I use a report processingOnly.
DataItem is Item (T27)
Create a TEMP Glob/Var on ItemLedgerEntry
OnAfterGetRec : insert an itemLedgerEntry for each item. (just for tests reason, don't look for any logic behind)
Run the report concurrently with 2 different users. You'll get a Table Lock problem. How is this possible? Temporary is running in Memory in 2 different instances. I don't understand.
Thanks for tips!
Regards
Chris
I'm wondering why 2 users can have locks on temporary tables.
Example: I use a report processingOnly.
DataItem is Item (T27)
Create a TEMP Glob/Var on ItemLedgerEntry
OnAfterGetRec : insert an itemLedgerEntry for each item. (just for tests reason, don't look for any logic behind)
Run the report concurrently with 2 different users. You'll get a Table Lock problem. How is this possible? Temporary is running in Memory in 2 different instances. I don't understand.
Thanks for tips!
Regards
Chris
#### Only one can survive ######
0
Answers
-
shouldnt be . tested in case. try again.United Kingdom0
-
make sure temporary property is set to Yes for the table in questionUnited Kingdom0
-
Locking and deadlocking are two different things. What your code looks like? What your report transaction type?0
-
updatenolockUnited Kingdom0
-
point is temporary tables are manipulated independently per instanceUnited Kingdom0
-
@lubost: what do you mean by "What your report transaction type?"
@Developer101 : Yes Var is set as temporary, that's exactly why I don't understand my locking problem- temp tables should be manipulated independently per instance but my locking errors proves the opposite.
#### Only one can survive ######0 -
Could you post your code, so we can see what it does?
I would be very surprised that temptable inserting locks records.
I think more that you have missed something in your code.
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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