Learn T-SQL Querying - Pedro Lopes, Pam Lahoud

Learn T-SQL Querying

A guide to developing efficient and elegant T-SQL code

, (Autoren)

Buch | Softcover
484 Seiten
2019
Packt Publishing Limited (Verlag)
978-1-78934-881-1 (ISBN)
56,10 inkl. MwSt
Troubleshoot query performance issues, identify anti-patterns in code, and write efficient T-SQL queries

Key Features

Discover T-SQL functionalities and services that help you interact with relational databases
Understand the roles, tasks, and responsibilities of a T-SQL developer
Explore solutions for carrying out database querying tasks, database administration, and troubleshooting

Book DescriptionTransact-SQL (T-SQL) is Microsoft's proprietary extension to the SQL language used with Microsoft SQL Server and Azure SQL Database. This book will be a usefu to learning the art of writing efficient T-SQL code in modern SQL Server versions as well as the Azure SQL Database.
The book will get you started with query processing fundamentals to help you write powerful, performant T-SQL queries. You will then focus on query execution plans and leverage them for troubleshooting. In later chapters, you will explain how to identify various T-SQL patterns and anti-patterns. This will help you analyze execution plans to gain insights into current performance, and determine whether or not a query is scalable. You will also build diagnostic queries using dynamic management views (DMVs) and dynamic management functions (DMFs) to address various challenges in T-SQL execution. Next, you will work with the built-in tools of SQL Server to shorten the time taken to address query performance and scalability issues. In the concluding chapters, this will guide you through implementing various features, such as Extended Events, Query Store, and Query Tuning Assistant, using hands-on examples.
By the end of the book, you will have developed the skills to determine query performance bottlenecks, avoid pitfalls, and discover the anti-patterns in use.What you will learn

Use Query Store to understand and easily change query performance
Recognize and eliminate bottlenecks that lead to slow performance
Deploy quick fixes and long-term solutions to improve query performance
Implement best practices to minimize performance risk using T-SQL
Achieve optimal performance by ensuring careful query and index design
Use the latest performance optimization features in SQL Server 2017 and SQL Server 2019
Protect query performance during upgrades to newer versions of SQL Server

Who this book is forThis book is for database administrators, database developers, data analysts, data scientists, and T-SQL practitioners who want to get started with writing T-SQL code and troubleshooting query performance issues with the help of practical examples. Previous knowledge of T-SQL querying is not required to get started with this book.

Pedro Lopes is a Program Manager in the Database Systems group, based in Redmond, WA, USA. He has over 19 years of industry experience and has been with Microsoft for 9 years. He is currently responsible for program management of Database Engine features for in-market and vNext versions of SQL Server, with a special focus on the Relational Engine. He has extensive experience with query performance troubleshooting and is a regular speaker at numerous conferences such as SQLBits, PASS Summit, SQLIntersection, Microsoft Ignite, and Microsoft Build. He blogs about SQL on the SQL Server Team blog. He has authored several tools in the Tiger toolbox on GitHub: AdaptiveIndexDefrag maintenance solution, BPCheck, and usp_WhatsUp. Pam Lahoud is a Program Manager in the Database Systems group, based in Redmond, WA, USA. She has been with Microsoft for 13 years and is currently responsible for program management of Database Engine features for in-market and vNext versions of SQL Server, with a special focus on the Storage Engine area. She is passionate about SQL Server performance and has focused on performance tuning and optimization, particularly from the developer's perspective, throughout her career. She is a SQL Server 2008 Microsoft Certified Master (MCM) with over 20 years of experience working with SQL Server.

Table of Contents

Anatomy of a Query
Understanding Query Processing
Mechanics of the Query Optimizer
Exploring Query Execution Plans
Writing Elegant T-SQL Query
Easily Identified T-SQL Anti-Patterns
Discovering T-SQL Anti-Patterns in Depth
Building Diagnostic Queries Using DMVs and DMFs
Building xEvent Profiler Traces
Comparative Analysis of Query Plans
Tracking Query Performance History with the Query Store
Troubleshooting Live Queries
Managing Optimizer Changes With the Query Tuning Assistant

Erscheinungsdatum
Verlagsort Birmingham
Sprache englisch
Maße 191 x 235 mm
Themenwelt Informatik Datenbanken Data Warehouse / Data Mining
Informatik Software Entwicklung User Interfaces (HCI)
Mathematik / Informatik Informatik Theorie / Studium
ISBN-10 1-78934-881-1 / 1789348811
ISBN-13 978-1-78934-881-1 / 9781789348811
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Datenanalyse für Künstliche Intelligenz

von Jürgen Cleve; Uwe Lämmel

Buch | Softcover (2024)
De Gruyter Oldenbourg (Verlag)
74,95
Auswertung von Daten mit pandas, NumPy und IPython

von Wes McKinney

Buch | Softcover (2023)
O'Reilly (Verlag)
44,90