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
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
Gouache painting of a bicycle wheel leaning on a wall, with a tray of plain identical spokes and one single vermilion spoke laid beside it

No Custom Security Extensions: SQL Server Upgrade Rule Failure

October 25, 2019
Pinal Dave
SQL Tips and Tricks
Reporting Services, SQL Error Messages, SQL Server, SQL Upgrade

The No Custom Security Extensions rule failure stopped a SQL Server upgrade because Reporting Services had custom extensions configured. The fix that worked was to clear the extensions in RSReportServer.config, upgrade, and put them back afterward.

Read More
A railway yard where wagons roll into four sidings, one siding far longer than the other three.

Parallel Plans: Reading Gather Streams and Repartition Streams

October 24, 2019
Pinal Dave
SQL Performance
Execution Plan, MAXDOP, Parallel, SQL Performance, SQL Server

Read Gather Streams and other parallel exchanges, inspect rows per thread and spill evidence, and relate exchange waits to actual work.

Read More
Gouache painting of a cream wall with a faint pale rectangle where a picture used to hang, and one nail with a vermilion head left in the wall

Setup Error 1060: The Specified Service Does Not Exist During Upgrade

October 22, 2019
Pinal Dave
SQL Tips and Tricks
Reporting Services, SQL Error Messages, SQL Server, SQL Server Installation, SQL Upgrade

Setup error 1060 stopped an in-place upgrade from SQL Server 2008 R2 to 2014 right after the product key. The setup log asked for a ReportServer service that no longer existed. Removing the leftover SSRS fixed it.

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

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