You are on page 1of 21

Microsoft SQL Server 2008

Tools for Developers


Nicole Loh
Principle Consultant
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
Session Objectives and Agenda
WHAT are the different tools available - DEMO
HOWto use the tools
WHEN to use the tools
List of Tools
Tools shipped with SQL Server 2005/2008
Management Studio
SQL Server Profiler
Database Engine Tuning Advisor
Reporting
Performance Dashboard Reports
Sample Output
Performance Monitor
SQL Server Profiler
Database Tuning Advisor
Performance Dashboard Reports
Performance Monitor
Counters to enable
CPU - % processor
Memory - Cache hit ratio
I/O Disk queue length
Etc. (depending what you are troubleshooting)
Demo Performance
Monitor
Performance Monitor
CPU
Memory
I/O
Perfmon Recommendations:
Use logs collected to identify when an external
process is heavily using the computer running SQL
Server and negatively impacting SQL Server
Run prior to production to determine efficiency
and to understand system/database activities
Performance Monitor
SQL Server Profiler
Database Tuning Advisor
Performance Dashboard Reports
SQL Server Profiler
Low overhead detailed tracing
Track engine process events
Monitor database activity
Locking, blocking or deadlocking
Demo SQL Server
Profiler
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 of
development cycle and early part of production
Run on purchased applications prior to production
to understand database activity
Performance Monitor
SQL Server Profiler
Database Tuning Advisor
Performance Dashboard Reports
Database Engine Tuning Advisor
Powerful tuning tool
Analyze trace activity captured via SQL Profiler
Include creating and dropping indexes
Tuning recommendation
Demo Database
Tuning Advisor
Database Engine Tuning Advisor
Powerful tuning tool
Analyze 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 is
still valid
Should be used for verification purposes
Performance Monitor
SQL Server Profiler
Database Tuning Advisor
Performance Dashboard Reports
Performance Dashboard Report
Reduce time spent in initial performance
problem investigation
Reporting Services is not required to be
installed
Help you identify common performance issues
including CPU bottlenecks, I/O bottlenecks,
Blocking, etc.
Demo Performance
Dashboard Reports
Conclusion
Do performance benchmarking before
deploying application to production
Write efficient procedures and TSQL
statements
Work with your DBA to plan the database
design
Use the tools. They are free!!!
Good luck

You might also like