Microsoft SQL Server 2012 Performance Tuning Cookbook
Formats:
save 15%!
save 37%!
Free Shipping!
| Also available on: |
|
- Learn about the performance tuning needs for SQL Server 2012 with this book and ebook
- Diagnose problems when they arise and employ tricks to prevent them
- Explore various aspects that affect performance by following the clear recipes
Book Details
Language : EnglishPaperback : 478 pages [ 235mm x 191mm ]
Release Date : July 2012
ISBN : 1849685746
ISBN 13 : 9781849685740
Author(s) : Ritesh Shah, Bihag Thaker
Topics and Technologies : All Books, Microsoft Servers, Cookbooks, Enterprise, Microsoft
Table of Contents
PrefaceChapter 1: Mastering SQL Trace Using Profiler
Chapter 2: Tuning with Database Engine Tuning Advisor
Chapter 3: System Statistical Functions, Stored Procedures, and the DBCC SQLPERF Command
Chapter 4: Resource Monitor and Performance Monitor
Chapter 5: Monitoring with Execution Plans
Chapter 6: Tuning with Execution Plans
Chapter 7: Dynamic Management Views and Dynamic Management Functions
Chapter 8: SQL Server Cache and Stored Procedure Recompilations
Chapter 9: Implementing Indexes
Chapter 10: Maintaining Indexes
Chapter 11: Points to Consider While Writing Queries
Chapter 12: Statistics in SQL Server
Chapter 13: Table and Index Partitioning
Chapter 14: Implementing Physical Database Structure
Chapter 15: Advanced Query Tuning Hints and Plan Guides
Chapter 16: Dealing with Locking, Blocking, and Deadlocking
Chapter 17: Configuring SQL Server for Optimization
Chapter 18: Policy-based Management
Chapter 19: Resource Management with Resource Governor
Index
- Chapter 1: Mastering SQL Trace Using Profiler
- Introduction
- Creating a trace or workload
- Filtering events
- Detecting slow running and expensive queries
- Creating trace with system stored procedures
- Chapter 2: Tuning with Database Engine Tuning Advisor
- Introduction
- Analyzing queries using Database Engine Tuning Advisor
- Running Database Engine Tuning Advisor for workload
- Executing Database Tuning Advisor from command prompt
- Chapter 3: System Statistical Functions, Stored Procedures, and the DBCC SQLPERF Command
- Introduction
- Monitoring system health using system statistical functions
- Monitoring with system stored procedure
- Monitoring log space usage statistics with DBCC command
- Chapter 4: Resource Monitor and Performance Monitor
- Introduction
- Monitoring of server performance
- Monitoring CPU usage
- Monitoring memory (RAM) usage
- Chapter 5: Monitoring with Execution Plans
- Introduction
- Working with estimated execution plan
- Working with actual execution plan
- Monitoring performance of a query by SET SHOWPLAN_XML
- Monitoring performance of a query by SET STATISTICS XML
- Monitoring performance of a query by SET STATISTICS IO
- Monitoring performance of a query by SET STATISTICS TIME
- Including and understanding client statistics
- Chapter 6: Tuning with Execution Plans
- Introduction
- Understanding Hash, Merge, and Nested Loop Join strategies
- Finding table/index scans in execution plan and fixing them
- Introducing Key Lookups, finding them in execution plans, and resolving them
- Chapter 7: Dynamic Management Views and Dynamic Management Functions
- Introduction
- Monitoring current query execution statistics
- Monitoring index performance
- Monitoring performance of TempDB database
- Monitoring disk I/O statistics
- Chapter 8: SQL Server Cache and Stored Procedure Recompilations
- Introduction
- Monitoring compilations and recompilations at instance level using Reliability and Performance Monitor
- Monitoring recompilations using SQL Server Profiler
- Chapter 9: Implementing Indexes
- Introduction
- Increasing performance by creating a clustered index
- Increasing performance by creating a non-clustered index
- Increasing performance by covering index
- Increasing performance by including columns in an index
- Improving performance by a filtered index
- Improving performance by a columnstore index
- Chapter 10: Maintaining Indexes
- Introduction
- Finding fragmentation
- Playing with Fill Factor
- Enhance index efficiency by using the REBUILD index
- Enhance index efficiency by using the REORGANIZE index
- How to find missing indexes
- How to find unused indexes
- Enhancing performance by creating an indexed view
- Enhancing performance with index on Computed Columns
- Determining disk space consumed by indexes
- Chapter 11: Points to Consider While Writing Queries
- Introduction
- Improving performance by limiting the number of columns and rows
- Improving performance by using sargable conditions
- Using arithmetic operator wisely in predicate to improve performance
- Improving query performance by not using functions on predicate columns
- Improving performance by Declarative Referential Integrity (DRI)
- "Trust" your foreign key to gain performance
- Chapter 12: Statistics in SQL Server
- Introduction
- Creating and updating statistics
- Effects of statistics on non-key column
- Find out-of-date statistics and get it correct
- Effect of statistics on a filtered index
- Chapter 13: Table and Index Partitioning
- Introduction
- Partitioning a table with RANGE LEFT
- Partitioning a table with RANGE RIGHT
- Deleting and loading bulk data by splitting, merging, and switching partitions (sliding window)
- Chapter 14: Implementing Physical Database Structure
- Introduction
- Configuring data file and log file on multiple physical disks
- Using files and filegroups
- Moving the existing large table to separate physical disk
- Moving non-clustered indexes on separate physical disk
- Configuring the tempdb database on separate physical disk
- Chapter 15: Advanced Query Tuning Hints and Plan Guides
- Introduction
- Using NOLOCK table query hint
- Using FORCESEEK and INDEX table hint
- Optimizing a query using an object plan guide
- Implementing a fixed execution plan using SQL plan guide
- Chapter 16: Dealing with Locking, Blocking, and Deadlocking
- Introduction
- Determining long-running transactions
- Detecting blocked and blocking queries
- Detecting deadlocks with SQL Server Profiler
- Detecting deadlocks with Trace Flag 1204
- Chapter 17: Configuring SQL Server for Optimization
- Introduction
- Configuring SQL Server to use more processing power
- Configuring memory in 32 bit versus. 64 bit
- Configuring "Optimize for Ad hoc Workloads"
- Optimizing SQL Server instance configuration
- Chapter 18: Policy-based Management
- Introduction
- Evaluating database properties
- Restricting database objects
- Chapter 19: Resource Management with Resource Governor
- Introduction
- Configuring Resource Governor with SQL Server Management Studio
- Configuring Resource Governor with T-SQL script
- Monitoring Resource Governor
Ritesh Shah
Bihag Thaker
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- Monitoring SQL Server Performance with Profiler, Execution Plan, and system statistical function
- Finding performance bottleneck with the help of Resource Monitor and DTA
- Creating and Managing Indexes efficiently to boost performance
- Creating and Managing Partition efficiently
- Managing database files efficiently
- Planning Guide and Query Hints
- Dealing with locking, blocking, and deadlocking
- Configuring SQL Server instance option for achieving performance benefit
- Managing Performance with Policy based management and Resource Governor
As a DBA you must have encountered a slow running application on SQL Server, but there are various factors that could be affecting the performance. If you find yourself in this situation, don't wait, pick up this book and start working towards improving performance of your SQL Server 2012. SQL Server 2012 Performance Tuning Cookbook is divided into three major parts -- Performance Monitoring, Performance Tuning, and Performance Management--that are mandatory to deal with performance in any capacity.
SQL Server 2012 Performance Tuning Cookbook offers a great way to manage performance with effective, concise, and practical recipes. You will learn how to diagnose performance issues, fix them, and take precaution to avoid common mistakes.
Each recipe given in this book is an individual task that will address different performance aspects to take your SQL Server's Performance to a higher level.
The first part of this book covers Monitoring with SQL Server Profiler, DTA, System statistical function, SPs with DBCC commands, Resource Monitor & Reliability, and Performance Monitor and Execution Plan.
The second part of the book offers Execution Plan, Dynamic Management Views, and Dynamic Management Functions, SQL Server Cache and Stored Procedure Recompilations, Indexes, Important ways to write effective TSQL, Statistics, Table and Index Partitioning, Advanced Query tuning with Query Hints and Plan Guide, Dealing with Locking, Blocking and Deadlocking and Configuring SQL Server for optimization to boost performance.
The third and final part gives you knowledge of performance management with help of Policy Based Management and Management with Resource Governor.
This book has individual recipes and you can read it from cover to cover or dip into any recipe and get solution to a specific issue. Every recipe is based on a script/procedure explained with step-by-step instructions and screenshots. Concepts are illustrated for better understanding of why one solution performs better than another.
SQL Server 2012 Performance Tuning Cookbook is aimed at SQL Server Database Developers, DBAs, and Database Architects who are working in any capacity to achieve optimal performance. However, basic knowledge of SQL Server is expected, but professionals who want to get hands-on with performance tuning and have not worked on tuning the SQL Server for performance will find this book helpful.

