2010 4feb sqlserver2008toolfordevelopers - nicole

Upload: arturo-galvez

Post on 02-Jun-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    1/21

    Microsoft SQL Server 2008Tools for Developers

    Nicole Loh

    Principle Consultant

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    2/21

    Key Takeaway

    Checking efficiency of your TSQL statements

    Tools to monitor resources consume

    Tools that you should use during development

    Out-of-box reports you can use

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    3/21

    Session Objectives and Agenda

    WHAT are the different tools available - DEMOHOW to use the tools

    WHEN to use the tools

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    4/21

    List of Tools

    Tools shipped with SQL Server 2005/2008Management Studio

    SQL Server Profiler

    Database Engine Tuning Advisor

    Reporting

    Performance Dashboard Reports

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    5/21

    Sample Output

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    6/21

    Performance Monitor

    SQL Server Profiler

    Database Tuning Advisor

    Performance Dashboard Reports

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    7/21

    Performance Monitor

    Counters to enable

    CPU - % processor

    Memory - Cache hit ratio

    I/O Disk queue length

    Etc. (depending what you are troubleshooting)

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    8/21

    Demo Performance

    Monitor

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    9/21

    Performance Monitor

    CPU

    Memory

    I/O

    Perfmon Recommendations:

    Use logs collected to identify when an external

    process is heavily using the computer running SQLServer and negatively impacting SQL Server

    Run prior to production to determine efficiencyand to understand system/database activities

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    10/21

    Performance Monitor

    SQL Server Profiler

    Database Tuning Advisor

    Performance Dashboard Reports

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    11/21

    SQL Server Profiler

    Low overhead detailed tracing

    Track engine process events

    Monitor database activity

    Locking, blocking or deadlocking

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    12/21

    Demo SQL Server

    Profiler

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    13/21

    SQL Server Profiler

    Low overhead detailed tracing

    Track engine process events

    Monitor database activity

    Locking, blocking or deadlocking

    Profiler Recommendations:

    Run to scan for deadlocks during the later part ofdevelopment cycle and early part of production

    Run on purchased applications prior to production

    to understand database activity

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    14/21

    Performance Monitor

    SQL Server Profiler

    Database Tuning Advisor

    Performance Dashboard Reports

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    15/21

    Database Engine Tuning Advisor

    Powerful tuning tool

    Analyze trace activity captured via SQL Profiler

    Include creating and dropping indexes

    Tuning recommendation

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    16/21

    Demo Database

    Tuning Advisor

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    17/21

    Database Engine Tuning Advisor

    Powerful tuning toolAnalyze trace activity captured via SQL Profiler

    Include creating and dropping indexes

    Tuning recommendation

    Profiler Recommendations:

    Run during test phase of an application. Ensure to

    include online activity and batch in the same trace

    Use proactively to verify current index structure isstill valid

    Should be used for verification purposes

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    18/21

    Performance Monitor

    SQL Server Profiler

    Database Tuning Advisor

    Performance Dashboard Reports

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    19/21

    Performance Dashboard Report

    Reduce time spent in initial performanceproblem investigation

    Reporting Services is not required to be

    installedHelp you identify common performance issuesincluding CPU bottlenecks, I/O bottlenecks,

    Blocking, etc.

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    20/21

    Demo Performance

    Dashboard Reports

  • 8/11/2019 2010 4Feb SQLServer2008ToolForDevelopers - Nicole

    21/21

    Conclusion

    Do performance benchmarking beforedeploying application to production

    Write efficient procedures and TSQL

    statementsWork with your DBA to plan the databasedesign

    Use the tools. They are free!!!Good luck