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 clear glass measuring jug of water on a veranda rail beside a small stone and a folded cloth

STATISTICS TIME and IO: Turn Them On for Every SSMS Query

November 23, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Management Studio, SQL Shortcut, SQL Statistics

To get STATISTICS TIME and IO for every query, tick two boxes in the SSMS options once instead of typing SET STATISTICS in each window. This post builds a small demo, reads the output line by line, shows that a SELECT and an UPDATE both report their cost, and explains which windows the option affects.

Read More
Gouache painting of an empty rain gauge on a fence post at dawn, with heavy rain clouds approaching and a small vermilion flag on the post.

Estimated Plan With a Temp Table: Why It Guesses One Row

November 7, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server Management Studio, Temp Table

An estimated plan for code that fills a temp table guesses one row for every read of that table. This post compares the estimated plan and the actual plan on SQL Server 2025, shows where the numbers split, and explains when to trust each one.

Read More
Gouache painting of several rowboats waiting at a canal lock with one vermilion boat edging ahead

Priority Boost in SQL Server: Check It and Turn It Off

October 18, 2019
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Server Configuration, SQL Server Management Studio

Priority boost sounds like a speed setting, but it can make a server slower. This post explains what the option does, checks it with a query that works when Management Studio doesn’t show it, prints the statements that turn it off with their undo, and explains why a restart is needed.

Read More
Gouache painting of a grid of stacked market crates with one tall vermilion stack

Box Selection in SSMS: Four Edits With the ALT Key

October 12, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Management Studio, SQL Shortcut

Box selection in SSMS selects vertical text: hold the ALT key and drag the mouse across the text. This post shows four edits that the box makes quick: typing on many lines at once, deleting a column, pasting a column into a column, and moving lines with the arrow keys. Each result is a query that runs.

Read More
Gouache painting of a loom with pale vertical threads and one vermilion thread

Select Vertical Text in SSMS: Alt Shift and Arrow Keys

October 11, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Management Studio, SQL Shortcut

To select vertical text in SSMS, hold Alt and drag with the mouse, or hold Alt and Shift and press the arrow keys. This post explains what a vertical selection does, how to edit many lines at once and how to turn a pasted column into an IN list. It also shows a T-SQL alternative for long lists.

Read More
Gouache painting of a plain gift box with a vermilion sticker being peeled off

Remove Completion Time From the SSMS Messages Tab

October 10, 2019
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Management Studio, SQL Shortcut

To remove completion time from the Messages tab in SSMS, clear one check box in the options. This post gives the exact steps for SSMS 22, explains why no T-SQL setting controls the line and says why old query windows keep showing it. It also shows how to print a time yourself, when a script needs one.

Read More
Gouache painting of a still music room with a small vermilion music box beginning to turn on the bench

Idle CPU Condition in SQL Server Agent: How It Works

September 28, 2019
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL Server Agent, SQL Server Management Studio

The idle CPU condition tells SQL Server Agent when the CPUs are quiet enough to start a job. This post shows where to set it, how the two numbers work and how to create the schedule. It also reads the CPU history of your server in T-SQL, so you can choose values that the server can actually meet.

Read More
Previous 1 … 9 10 11 12 13 14 15 … 50 Next
  • Books
  • Testimonials
  • Privacy Policy

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