SQL Performance Pitfalls: Identification and Optimization Lab
Proposed session for SQLBits 2026TL; DR
Interactive workshop on identifying and optimizing bad SQL code. Learn common pitfalls, best practices, and test performance improvements through hands‑on scenarios and load tests.
Session Details
This interactive workshop presents realistic examples of bad SQL programming that often lead to performance problems in practice. The aim of the session is to show participants how to identify, analyze and optimize inefficient SQL queries/SQL code in order to achieve significant performance improvements.
The workshop focuses on five to ten concrete, poorly implemented SQL coding scenarios. For each of these scenarios, the underlying problems are explained in detail and optimization approaches are then presented. Different techniques and best practices are presented that are essential for improving query speed and system efficiency.
With the help of practical lab exercises, load tests are generated to measurably compare performance before and after optimization. This allows participants to directly understand which measures lead to a significant reduction in response times and what impact they have on the overall system load.
At the end of the session, participants will have a better understanding of the most common pitfalls in SQL programming practices and will be able to perform in-depth performance analyses and make optimizations.
The workshop focuses on five to ten concrete, poorly implemented SQL coding scenarios. For each of these scenarios, the underlying problems are explained in detail and optimization approaches are then presented. Different techniques and best practices are presented that are essential for improving query speed and system efficiency.
With the help of practical lab exercises, load tests are generated to measurably compare performance before and after optimization. This allows participants to directly understand which measures lead to a significant reduction in response times and what impact they have on the overall system load.
At the end of the session, participants will have a better understanding of the most common pitfalls in SQL programming practices and will be able to perform in-depth performance analyses and make optimizations.
3 things you'll get out of this session
- Identify and analyze inefficient SQL coding practices through real‑world examples that commonly cause performance issues.
Apply optimization techniques and best practices to improve query speed and overall system efficiency.
Evaluate performance improvements via hands‑on lab exercises and load tests, gaining practical skills in measuring and reducing response times.
Speakers
Uwe Ricken's other proposed sessions for 2026
Demystifying Clustered Indexes in SQL Server - 2026
Evolution of User-Defined Functions in Microsoft SQL Server - 2026
How to properly handle LOB data in SQL Server - 2026
Leveraging JSON in Microsoft SQL Server - 2026
Uwe Ricken's previous sessions
Security techniques for cross database access
Security is given too little attention in the database environment and many times more rights are given than are necessary. Especially with CROSS DATABASE access, the goal is often overshot.
Learn how to securely access data in other databases without breaking the bank.
Partitioning for Beginners
Introduction of areas for partitioning for Beginners
Why is SQL Server waiting for what?
You are wondering why SQL Server is waiting endless for a request and you don't know what is going on inside? A look behind the curtain with comon scenarios will help you to understand and solve long waits in SQL Server.
Inside statistics-a guessing game
A query was running fast yesterday and today it suffers from performance problems. What will you do?
- restart the server (did work)
- drop the procedure cache (read in a blog article)
- get a coffee and pass in review this session about statistics
Deep dive into the secrets of Temporal Tables
Temporal Tables as a new technology in Microsoft SQL Server makes the implementation and management of data histories so easy. In this session, discover ALL the secrets of System Versioned Temporal Tables.
Daily problems with indexing and its-possible-solution
This session will demonstrate query performance issues a dba is confronted with every day. The demos will handle these scenarios and it's solution