E-book details

Learn T-SQL Querying. A guide to developing efficient and elegant T-SQL code

Learn T-SQL Querying. A guide to developing efficient and elegant T-SQL code

Pedro Lopes, Pam Lahoud

Ebook
Transact-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.
  • 1. Anatomy of a Query
  • 2. Understanding Query Processing
  • 3. Mechanics of the Query Optimizer
  • 4. Exploring Query Execution Plans
  • 5. Writing Elegant T-SQL Query
  • 6. Easily Identified T-SQL Anti-Patterns
  • 7. Discovering T-SQL Anti-Patterns in Depth
  • 8. Building Diagnostic Queries Using DMVs and DMFs
  • 9. Building xEvent Profiler Traces
  • 10. Comparative Analysis of Query Plans
  • 11. Tracking Query Performance History with the Query Store
  • 12. Troubleshooting Live Queries
  • 13. Managing Optimizer Changes With the Query Tuning Assistant
  • Title: Learn T-SQL Querying. A guide to developing efficient and elegant T-SQL code
  • Author: Pedro Lopes, Pam Lahoud
  • Original title: Learn T-SQL Querying. A guide to developing efficient and elegant T-SQL code
  • ISBN: 9781789342970, 9781789342970
  • Date of issue: 2019-05-03
  • Format: Ebook
  • Item ID: e_2auj
  • Publisher: Packt Publishing