Category: T-SQL

Aaron Bertrand explains why he always opts for one of these options over the other, even in cases where it shouldn't matter.
November 2, 2016 | Aaron Bertrand | #BackToBasics, T-SQL 7
Rob Farley discusses some solutions and gotchas for implementing a custom sort using ORDER BY in T-SQL queries.
October 17, 2016 | | Execution Plans, T-SQL 0
Aaron Bertrand explains why he codes defensively - matching the case of data type names, even when it isn't strictly necessary.
October 4, 2016 | Aaron Bertrand | #BackToBasics, T-SQL 0
Paul White shows that SQL Server sometimes produces very misleading information about the impact of sort operations.
September 27, 2016 | | Execution Plans, T-SQL 0
Aaron Bertrand talks about pattern matching, a childhood game called Simon, and the unpredictability of CHARINDEX vs. LIKE.
September 6, 2016 | | T-SQL 0
Rob Farley explains why AT TIME ZONE is his new favourite feature in SQL Server 2016, but also shows that it can make a mess of cardinality estimates.
Melissa Connors discusses locating & resolving SQL Server database trust issues (check constraints & foreign keys).
Aaron Bertrand continues his #EntryLevel challenge, discussing DATEFROMPARTS() and similar functions introduced in SQL Server 2012.
Today I presented at Discovery Day New England, a SQL Server 2016 event (sponsored in part by SQL Sentry) held at the Microsoft office in Cambridge, MA. Attached are demos and slide decks.
Continuing the EntryLevel challenge, Aaron Bertrand discusses optimizing the kitchen sink procedure with dynamic SQL and, optionally, OPTION (RECOMPILE).
Aaron Bertrand answers the question "Is a RID Lookup faster than a Key Lookup?" on the blog.
Aaron Bertrand shows that, at least for a large number of...
Aaron Bertrand shares his slides and demos from his two SQL Intersection.
Aaron Bertrand follows up on a recent post about the performance...
Aaron Bertrand explores yet another scenario where a date/time...

Top Categories

See all

Get the best SQL query analysis and optimization tool – free!

  • Index Analysis Sandbox
  • Statistics Analysis with Histogram
  • Management Studio Add-in
  • Plan Diagram
  • Deadlocks
  • History and Comments
Free Download Learn More