is there a way to change isolation level from within C\AL code to something less strict than SERIALIZABLE ? Am i right to state that LOCKTABLE defaults to SERIALIZABLE ? Even if i do a simple INSERT or MODIFY it defaults to locking on SERIALIZABLE level ? Is there a way to change it all to READ_COMMITED ?
0
Comments
There is only one property connected to that: TransactionType on report.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
But a LOCKTABLE (or FINDSET(TRUE)) will always set the Isolation Level to SERIALIZABLE.
Regards,
Jörg
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
unfortunately the TransactionType as well as CURRENTTRANSACTIONTYPE do only allow to set either SERIALIZABLE OR READ UNCOMMITED transaction isolation levels. I was hoping at least Snapshot would provide a SNAPSHOT isolation (for MS SQL 2005 or higher) level based on row versioning but it seams the snapshot is also setting READ UNCOMMITED until first update and SERIALIZABLE there after.
The only way i see to set isolation level to something different is through opening another session through ADO connections to the sql server directly using SET TRANSACTION ISOLATION LEVEL and doing direct SELECTs