This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
In a farm apple store, a hand searches a loose bin of apples beside a rack of apples laid in neat rows.

RID Lookups on Heaps vs Key Lookups on Clustered Tables

November 9, 2019
Pinal Dave
SQL Performance
Clustered Index, Execution Plan, SQL Heap, SQL Index, SQL Server

Compare RID lookups on heaps with clustered key lookups, inspect forwarded records, and test covering indexes with actual plans and reads.

Read More
Two pantry shelves, small tins boxed wastefully on one and packed snugly on the other.

UTF-8 Collations in SQL Server 2019: When They Save Space

November 4, 2019
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Data Storage, SQL Server, SQL Server 2019, Unicode

Compare UTF-8 collations with NVARCHAR storage for English, European, and Asian text before converting indexes or clients.

Read More
A short bridge lets a marble bypass a longer winding wooden track

How to Use GOTO command in SQL Server? – Interview Question of the Week #249

November 3, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure

Question: How to Use GOTO command in SQL Server?

Answer: Let us see a simple example of how GOTO works in SQL Server in this blog post.

Read More
Gouache painting of a hedge maze with a long winding path and a quick exit through a vermilion arch

RETURN Statement in a Stored Procedure: Exit Early

November 2, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL Transactions

The RETURN statement ends a stored procedure at once and hands back one integer status code. This post builds a small demo, shows how to read the code, stops a procedure after a chosen step, and tests what RETURN does with NULL, text, open transactions and errors.

Read More
A colorful paper chain along a kitchen window with one gap in the loops, scissors on the sill

A Daily Streak in SQL: Finding the Longest Run of Consecutive Days

October 29, 2019
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL DateTime, SQL Scripts, SQL Server

Find consecutive days with gaps and islands, rank the longest streak per user, and define a current streak using the right business date.

Read More
A cabinet's contents are visible through glass while a locked door prevents additions

Why Query Store Actual Operation Mode is Not Same as Requested? – Interview Question of the Week #248

October 27, 2019
Pinal Dave
SQL Interview Questions and Answers
Query Store, SQL Scripts, SQL Server, SQL Server Configuration

Question: Why Query Store Actual Operation Mode is Not Same as Requested? Query Regression (poor performing queries, once working great)

Read More
Gouache painting of a mountain stream blocked by one large vermilion stone with water backing up behind it

Session Wait Stats: Find the Query Behind a Wait Type

October 26, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Wait Stats

Session wait stats tell you which session produced a wait type, and the input buffer tells you which query that session ran. This post shows how to see who waits right now, how to read the wait history of each session, and how to join them to the query text. It also explains the THREADPOOL wait.

Read More
Previous 1 … 65 66 67 68 69 70 71 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com