SQL Report locks NAV Table

gob_Behnke
Member Posts: 14
Hi,
actually I have a customer that has problem with a sql report (SQL Server 2008) that locks a table in MS Dynamics NAV 2009.
Although the report is quite complex, it only reads records from the database, there is no write process (tested it with SQL Profiler),
thus I don't know why the table gets locked.
Is there a way to solve this issue.
Any help is greatly appreciated
Kind regards
actually I have a customer that has problem with a sql report (SQL Server 2008) that locks a table in MS Dynamics NAV 2009.
Although the report is quite complex, it only reads records from the database, there is no write process (tested it with SQL Profiler),
thus I don't know why the table gets locked.
Is there a way to solve this issue.
Any help is greatly appreciated
Kind regards
0
Answers
-
The default isolation level is "Read Committed" which will issue shared locks.There are no bugs - only undocumented features.0
-
I read this to understand that you are talking about a report using a SQL tool external to NAV. Correct?There are no bugs - only undocumented features.0
-
Thanks for you fast answer.
Yes, that's correct.
The tool I use is Microsoft SQL Server Reporting Services.
It's part of Microsoft SQL Server, so I think it is a quite common tool.
How can I change the default isolation level via SQL?0 -
You might consider turning on Read Committed Snapshot Isolation for the database. But be sure you have TempDB on a different disk (with enough space) from the NAV databasea and log files. Also have 1 tempDB file for each processor core (up to 8 ).There are no bugs - only undocumented features.0
-
Isn't there a way to change the isolation level?
I can't change anything about the target database.0 -
You can change the level for a given session using the "SET TRANSACTION ISOLATION LEVEL" T-SQL command. But I suggest you read the definition of each level before deciding on one to use. Each has its pros and cons.
Rsther then doing this, I'd suggest taking a look at redesigning the report to reduce the lock granularity and durationsThere are no bugs - only undocumented features.0 -
Thanks, I guess I can't change the report itself (without great effort), but
the "SET TRANSACTION ISOLATION LEVEL" - Command solved the issue.
As far as I understood the command, the only disadvantage are dirty reads,
but this is no problem.
Thanks a lot.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