ebook img

Professional SQL Server 2008 Internals and Troubleshooting PDF

621 Pages·2010·14.588 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Professional SQL Server 2008 Internals and Troubleshooting

An in-depth look at SQL Server and Bolton, Langford, et al. Join the discussion @ p2p.wrox.com Wrox Programmer to Programmer™ best practices for troubleshooting P r When faced with a variety of SQL Server issues, you need to be able o to troubleshoot SQL Server as well as its underlying operating system. f e To that end, this author group of SQL Server experts presents you with s s invaluable advice that brings together—and simplifies—practical internal i information concerning SQL Server along with troubleshooting o n techniques and methodologies. Packed with real-world examples of a ways to effectively use troubleshooting tools, this book shows you how l wrox.com to efficiently and accurately determine the root of your SQL Server problem so you can successfully resolve it. (cid:127) Escorts you through the lifecycle of a query to establish an under- Programmer IS n standing of the fundamental concepts and architectures Forums tQ e (cid:127) Examines the use of memory including the physical components, Windows Join our Programmer to r memory management, and SQL Server’s own memory architecture Programmer forums to ask nL and answer programming (cid:127) Reviews SQL Server wait types and how to monitor them with a questions about this book, l Extended Events join discussions on the s S hottest topics in the industry, (cid:127) Equips you with the knowledge to confidently specify and monitor and connect with fellow a your storage performance requirements programmers from around ne the world. d (cid:127) Details SQL Server’s locking model, the internal use of latches, r and row versioning Code Downloads Tv (cid:127) Shows you how to use SQLDiag, RML Utilities, SQL Nexus, the Take advantage of free code r oe Management Data Warehouse, and how to build your own SQL samples from this book, as u Professional well as code samples from Server Management Studio reports r hundreds of other books, all b ready to use. l ® Christian Bolton is coauthor of Professional SQL Server 2005 Performance Tuning e SQL Server 2008 and Technical Director for Coeo Ltd. Read More s2 ® Justin Langford is coauthor of Professional SQL Server 2005 Performance Tuning h and leads the Managed Support team for Coeo Ltd. Find articles, ebooks, sample o0 chapters and tables of contents Brent Ozar is a SQL Server expert for Quest Software. o for hundreds of books, and 0 t James Rowland-Jones is an advisory consultant for EMC Consulting. more reference resources on i Internals and Troubleshooting n Steven Wort is a developer in the Windows Division at Microsoft. programming topics that matter 8 to you. g Wrox guides are crafted to make learning programming languages and technologies easier than you think. Written by programmers for programmers, they provide a structured, tutorial format that will guide you through all the techniques involved. $59.99 USA Christian Bolton, Justin Langford, Brent Ozar, James Rowland-Jones, Steven Wort Database Management / General $71.99 CAN www.it-ebooks.info Programmer to Programmer™ Get more out of wrox.com Interact Join the Community Take an active role online by participating in our Sign up for our free monthly newsletter at P2P forums @ p2p.wrox.com newsletter.wrox.com Wrox Online Library Browse Hundreds of our books are available online Ready for more Wrox? We have books and through Books24x7.com e-books available on .NET, SQL Server, Java, XML, Visual Basic, C#/ C++, and much more! Wrox Blox Download short informational pieces and code to keep you up to date and out of trouble! Contact Us. We always like to get feedback from our readers. Have a book idea? Need community support? Let us know by e-mailing [email protected] www.it-ebooks.info PROFESSIONAL SQL SERVER® 2008 INTERNALS AND TROUBLESHOOTING INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv CHAPTER 1 SQL Server Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 CHAPTER 2 Understanding Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 CHAPTER 3 SQL Server Waits and Extended Events . . . . . . . . . . . . . . . . . . . . . . . . . . 59 CHAPTER 4 Working with Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95 CHAPTER 5 CPU and Query Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137 CHAPTER 6 Locking and Latches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 CHAPTER 7 Knowing Tempdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269 CHAPTER 8 Defi ning Your Approach To Troubleshooting . . . . . . . . . . . . . . . . . . . . .305 CHAPTER 9 Viewing Server Performance with PerfMon and the PAL Tool . . . . . .329 CHAPTER 10 Tracing SQL Server with SQL Trace and Profi ler . . . . . . . . . . . . . . . . . .369 CHAPTER 11 Consolidating Data Collection with SQLDiag and the PerfStats Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437 CHAPTER 12 Introducing RML Utilities for Stress Testing and Trace File Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .459 CHAPTER 13 Bringing It All Together with SQL Nexus . . . . . . . . . . . . . . . . . . . . . . . . . 481 CHAPTER 14 Using Management Studio Reports and the Performance Dashboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .505 CHAPTER 15 Using SQL Server Management Data Warehouse . . . . . . . . . . . . . . . . .539 CHAPTER 16 Shortcuts to Effi cient Data Collection and Quick Analysis . . . . Wrox.com INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555 www.it-ebooks.info 8844228899ffffiirrss..iinndddd ii 1111//2233//0099 11::3355::4422 PPMM www.it-ebooks.info 8844228899ffffiirrss..iinndddd iiii 1111//2233//0099 11::3355::4422 PPMM PROFESSIONAL SQL Server® 2008 Internals and Troubleshooting www.it-ebooks.info 8844228899ffffiirrss..iinndddd iiiiii 1111//2233//0099 11::3355::4422 PPMM www.it-ebooks.info 8844228899ffffiirrss..iinndddd iivv 1111//2233//0099 11::3355::4422 PPMM PROFESSIONAL SQL Server® 2008 Internals and Troubleshooting Christian Bolton Justin Langford Brent Ozar James Rowland-Jones Jonathan Kehayias Cindy Gross Steven Wort www.it-ebooks.info 8844228899ffffiirrss..iinndddd vv 1111//2233//0099 11::3355::4422 PPMM Professional SQL Server® 2008 Internals and Troubleshooting Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-48428-9 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifi cally disclaim all warranties, including without limitation warranties of fi tness for a particular purpose. No warranty may be created or extended by sales or pro- motional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the pub- lisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2009941346 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affi liates, in the United States and other coun- tries, and may not be used without written permission. SQL Server is a registered trademark of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc. is not associated with any product or vendor mentioned in this book. www.it-ebooks.info 8844228899ffffiirrss..iinndddd vvii 1111//2233//0099 11::3355::4422 PPMM For Gemma, with all my love and thanks —Christian Bolton This is dedicated to Erika, who has been dedicated to me despite my long working hours. I love you dearly, and I love working on next chapters. —Brent Ozar www.it-ebooks.info 8844228899ffffiirrss..iinndddd vviiii 1111//2233//0099 11::3355::4422 PPMM www.it-ebooks.info 8844228899ffffiirrss..iinndddd vviiiiii 1111//2233//0099 11::3355::4433 PPMM

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.