~/talk

How to Conduct a Transact-SQL Code Review

Talkat SQLBits 2024 · 2024-03-19..03-23· [databases]
links:none on file
slides:none on file

Practical checklist and runnable scripts that inspect plan cache, DMVs and Query Store (or capture with Extended Events) to flag defects: counts of cursors and temp tables, 26 occurrences of deprecated storage types, missing index recommendations, overlapping indexes, foreign keys without nonclustered indexes, stacked triggers, widespread NOLOCK misuse and missing SET NOCOUNT ON. Demonstrations show how implicit conversions (varchar vs nvarchar) turn seeks into scans (one run consumes 37% more work) and how Plan Explorer plus a GitHub repo produce repeatable, automatable reviews.

AI-written summary · about

  1. 0:00Introduction
  2. 7:23Why conduct Transact-SQL reviews
  3. 14:05Code in flight analysis
  4. 25:57Cursors and temp tables
  5. 32:45Code at rest analysis
  6. 41:01Data type mismatches
  7. 46:20Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.