readable data on non committed update
postire
Member Posts: 9
Dear expert,
I have installed NAV 5.0 on SQL 2005.
I have also external windows programs that should update directly fields in the database, accessing SQL.
During the update phase if I insert a value in one field and I open the table through a form (the Customer card for example) I can see the changed value even if the commit of the transaction is not yet present.
And this happens also if I run some report with this field in it...
So - if for some reason I have a rollback on this transaction - I may have wrong values in my reports.
Is there any way (Nav or SQL setup) to block the read permissions on the record until the transaction is committed?
Thanks in advance!
I have installed NAV 5.0 on SQL 2005.
I have also external windows programs that should update directly fields in the database, accessing SQL.
During the update phase if I insert a value in one field and I open the table through a form (the Customer card for example) I can see the changed value even if the commit of the transaction is not yet present.
And this happens also if I run some report with this field in it...
So - if for some reason I have a rollback on this transaction - I may have wrong values in my reports.
Is there any way (Nav or SQL setup) to block the read permissions on the record until the transaction is committed?
Thanks in advance!
0
Answers
-
you need to change the transaction isolation level. If you use another level, it will not read uncommted data (dirty read). There is one property on the report to change that. In another objects you can use C/AL code to change that.0
-
Thanks a lot for your answer. But which is the proprierty you refers to? I tried to change the transaction type but it had not effects...if you give me a small example I will be...
!! 0 -
It is TransactionType. This is correct property, but you need to set correct Type. You need to set e.g. Snapshot (read-only report). In code the transaction isolation level can be changed through CURRENTTRANSACTIONTYPE command. Or you can use the LOCKTABLE at OnPreDataItem to read the data with locking and thus preventing read of uncommited data.0
-
Thank you Kine. I really appreciate your help! 8)0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
