Poor performance Dynamics NAV 500SP1 + SQL Server 2008

jsoage
Member Posts: 9
After migrating SQL Server from 2000 to 2008 I had a lot of problems with performance and locks. ](*,)
I found some information that helped me to solve this problems \:D/ and hope it can help any others.
First I needed to identify the resources consuming queries:
And then tell Dynamics NAV when to force SQL to use an specific index
You can find this information in Dynamics NAV documentation (w1w1adg.pdf - Performance / 30.4 Keys, Queries and Performance (Index hinting))
or in http://msdn.microsoft.com/en-us/library/dd355052.aspx
Hope it helps
I found some information that helped me to solve this problems \:D/ and hope it can help any others.
First I needed to identify the resources consuming queries:
SELECT TOP 30 -- You can change number of lines st.text, qs.last_execution_time, SUBSTRING(st.text, (qs.statement_start_offset/2) + 1, ((CASE statement_end_offset WHEN -1 THEN DATALENGTH(st.text) ELSE qs.statement_end_offset END - qs.statement_start_offset)/2) + 1) as statement_text, execution_count, case when execution_count = 0 then null else total_logical_reads/execution_count end as avg_logical_reads, last_logical_reads, min_logical_reads, max_logical_reads, case when execution_count = 0 then null else total_logical_writes/execution_count end as avg_logical_writes, last_logical_writes, min_logical_writes, max_logical_writes, max_elapsed_time FROM sys.dm_exec_query_stats as qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) as st WHERE qs.last_execution_time >= dateadd(day, -1, getdate()) -- You can change the datepart and number ORDER BY max_logical_reads DESC -- You can change to max_logical_writes
And then tell Dynamics NAV when to force SQL to use an specific index
You can find this information in Dynamics NAV documentation (w1w1adg.pdf - Performance / 30.4 Keys, Queries and Performance (Index hinting))
or in http://msdn.microsoft.com/en-us/library/dd355052.aspx
Hope it helps
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