• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Na2009 enus sql_toc
 

Na2009 enus sql_toc

on

  • 440 views

 

Statistics

Views

Total Views
440
Views on SlideShare
440
Embed Views
0

Actions

Likes
0
Downloads
13
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Na2009 enus sql_toc Na2009 enus sql_toc Document Transcript

    • Table of ContentsIntroduction 0-1  Welcome ............................................................................................................ 0-1  Microsoft Dynamics Courseware Contents ........................................................ 0-2  Documentation Conventions .............................................................................. 0-3  Student Objectives ............................................................................................. 0-4 Chapter 1: Introduction to the Course 1-1  Objectives ........................................................................................................... 1-1  Introduction ......................................................................................................... 1-1  Microsoft SQL Server tool set............................................................................. 1-2  Summary ............................................................................................................ 1-5 Chapter 2: Setup and Installation 2-1  Objectives ........................................................................................................... 2-1  Introduction ......................................................................................................... 2-1  Software Requirements ...................................................................................... 2-1  Hardware Requirements .................................................................................. 2-13  Microsoft Dynamics NAV Architecture.............................................................. 2-21  Configuration .................................................................................................... 2-24  Security Synchronization .................................................................................. 2-41  Summary .......................................................................................................... 2-53  Lab 2.1 - Change the Recovery Model ............................................................. 2-55  Lab 2.2 - Set Trace Flags ................................................................................. 2-58  Lab 2.3 - Create a Login Stored Procedure...................................................... 2-60  Lab 2.4 - Use Filegroups to Change the Storage Location of a Table ............. 2-63  Lab 2.5 - Create Users and Synchronize Security ........................................... 2-66  Quick Interaction: Lessons Learned ................................................................. 2-68 Chapter 3: Advantages of SQL Server Option 3-1  Objectives ........................................................................................................... 3-1  Introduction ......................................................................................................... 3-1  Backup Facilities ................................................................................................ 3-2  Database Access Using Third-Party Tools ......................................................... 3-8  Performance Monitoring ................................................................................... 3-10  Scalability ......................................................................................................... 3-23  Summary .......................................................................................................... 3-23  Test Your Knowledge ....................................................................................... 3-24  Lab 3.1 - Create a Backup and Restore to a Point in Time .............................. 3-26  Lab 3.2a - Transfer Data from Test to Live Database (Transact-SQL) ............ 3-33  Quick Interaction: Lessons Learned ................................................................. 3-43  Solutions ........................................................................................................... 3-44 Chapter 4: Performance Audits 4-1  Objectives ........................................................................................................... 4-1  Introduction ......................................................................................................... 4-1  Set up a Test Environment ................................................................................. 4-2  System Monitor .................................................................................................. 4-4  Client Monitor ................................................................................................... 4-18  Session Monitor ................................................................................................ 4-31  Microsoft Official Training Materials for Microsoft Dynamics ® i Your use of this content is subject to your current services agreement
    • SQL Server Installation and Optimization for Microsoft Dynamics®NAV 2009 SQL Server Profiler .......................................................................................... 4-34  Database Engine Tuning Advisor ..................................................................... 4-45  Dynamic Management Views ........................................................................... 4-50  Useful Scripts, Tools, and Reports ................................................................... 4-56  Summary .......................................................................................................... 4-60  Test Your Knowledge ....................................................................................... 4-61  Lab 4.1 - Setup and Schedule System Monitor ................................................ 4-63  Lab 4.2 - Create a SQL Server Profiler Trace .................................................. 4-67  Lab 4.3 - Correlate System Monitor and SQL Server Profiler Data .................. 4-69  Lab 4.4a - Analyze a SQL Server Profiler Trace using DTA ............................ 4-72  Lab 4.4b - Analyze an SQL query using DTA................................................... 4-74  Lab 4.4c - Find Missing Indexes using DMVs .................................................. 4-76  Quick Interaction: Lessons Learned ................................................................. 4-78  Solutions ........................................................................................................... 4-79 Chapter 5: Improving Application Performance 5-1  Objectives ........................................................................................................... 5-1  Introduction ......................................................................................................... 5-1  Optimizing C/AL Code ........................................................................................ 5-2  SIFT .................................................................................................................... 5-9  FIND Instructions .............................................................................................. 5-15  Keys ................................................................................................................. 5-23  Locks, Blocks and Deadlocks ........................................................................... 5-29  Graphical User Interface .................................................................................. 5-33  Index and Rowlock Hinting ............................................................................... 5-35  Bulk Insert ........................................................................................................ 5-38  Best Practices .................................................................................................. 5-39  Summary .......................................................................................................... 5-48  Test Your Knowledge ....................................................................................... 5-49  Lab 5.1 - Optimize C/AL Code for Performance ............................................... 5-52  Lab 5.2a - Find Index Usage ............................................................................ 5-54  Lab 5.2b - Find Unused Indexes ...................................................................... 5-56  Lab 5.2c - Disable Unused Keys ...................................................................... 5-61  Lab 5.3 - Create a Deadlock Trace .................................................................. 5-64  Quick Interaction: Lessons Learned ................................................................. 5-68  Solutions ........................................................................................................... 5-69 Chapter 6: Maintenance 6-1  Objectives ........................................................................................................... 6-1  Introduction ......................................................................................................... 6-1  Optimizing a Microsoft Dynamics NAV Database .............................................. 6-2  Implementing Maintenance on SQL Server........................................................ 6-2  Monitoring ......................................................................................................... 6-23  Summary .......................................................................................................... 6-32  Test Your Knowledge ....................................................................................... 6-33  Lab 6.1 - Create a Maintenance Plan ............................................................... 6-35  Lab 6.2 - Change the Fill Factor for Hot Tables ............................................... 6-41  Lab 6.3 - Compare Query Execution Before and After Deleting Statistics ....... 6-44  Quick Interaction: Lessons Learned ................................................................. 6-49 ii Microsoft Official Training Materials for Microsoft Dynamics ® Your use of this content is subject to your current services agreement
    • Table of Contents Solutions ........................................................................................................... 6-50 Chapter 7: Appendix 7-1  Objectives ........................................................................................................... 7-1  Introduction ......................................................................................................... 7-1  Backup Facilities ................................................................................................ 7-2  Summary ............................................................................................................ 7-3  Lab 7.1 - Set Up a Connection from Microsoft Excel.......................................... 7-4  Quick Interaction: Lessons Learned ................................................................... 7-9  Microsoft Official Training Materials for Microsoft Dynamics ® iii Your use of this content is subject to your current services agreement
    • SQL Server Installation and Optimization for Microsoft Dynamics®NAV 2009iv Microsoft Official Training Materials for Microsoft Dynamics ® Your use of this content is subject to your current services agreement