T-SQL paging done right
Proposed session for SQLBits 2026TL; DR
Rather than overwhelming your client app with all of the data at once, you want to implement paging in your SQL database. But things have not gone well.
Let’s take five and look at some common pitfalls, how the simple solution may not be the best, and how to think like a SQL performance tuner.
Session Details
Rather than overwhelming your client app with all of the data at once, you want to implement paging in your SQL database. So you watched the tutorial, you wrote the code, but now your database performance has tanked and users are complaining.
Let’s take five and look at some common pitfalls, how the simple solution may not be the best, and how to think like a SQL performance tuner.
We’ll cover indexing practices, FETCH and OFFSET, and basic performance concepts like ordering and blocking operators. I hope you’ll walk away with a couple of new ideas to help you fix most of the performance issues associated with paging.
Let’s take five and look at some common pitfalls, how the simple solution may not be the best, and how to think like a SQL performance tuner.
We’ll cover indexing practices, FETCH and OFFSET, and basic performance concepts like ordering and blocking operators. I hope you’ll walk away with a couple of new ideas to help you fix most of the performance issues associated with paging.
3 things you'll get out of this session
* Understanding of how to implement paging.
* Understanding of how indexing affects performance.
* When to use OFFSET, FETCH, and when not to.
Speakers
Daniel Hutmacher's other proposed sessions for 2026
20 years of productivity tips - a love letter to SSMS - 2026
Good dates, bad dates: Mastering your T-SQL date and time datatypes - 2026
JSON fundamentals for SQL pros - 2026
SQL Injection – The Old Dog of Data Security - 2026
SQL Noire – A Database Murder Mystery - 2026
Daniel Hutmacher's previous sessions
ACID in SQL Server: what it is, how it works, and how to live more adventurously.
A primer on ACID compliance in SQL Server, though mostly on Isolation and Durability, since those are the ones you have some control over. Presented at Data Saturday Gothenburg and Oslo 2023.
From substitutions to public keys - an introduction to cryptography
High-level introduction to cryptography.