© Lisa Bohm 2020
L. BohmRefactoring Legacy T-SQL for Improved Performancehttps://doi.org/10.1007/978-1-4842-5581-0_3

3. Database Tables

Lisa Bohm1 
(1)
Chardon, OH, USA
 

In the following chapters, we’re going to look at some different database objects and identify some common anti-patterns with each. We discussed many anti-patterns that apply to code such as stored procedures, functions, views, or even ad hoc SQL statements. However, each object type can have it’s own pitfalls.

In this chapter, we’re going to take a closer look at tables. If every piece of code touching a certain table is slow, the table definition should be examined. What exactly are we looking for in that definition? The information in Chapter 2 didn’t really cover tables, except ...

Get Refactoring Legacy T-SQL for Improved Performance: Modern Practices for SQL Server Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.