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 drum recorder with a clean blank paper strip on its roller and its pen arm lifted away, the pen tip vermilion

Schema Changes History Has No Data: Check Default Trace Enabled

May 26, 2020
Pinal Dave
SQL Tips and Tricks
Schema, SQL Reports, SQL Scripts, SQL Server Configuration, SQL Server Management Studio

The Schema Changes History report can say it has no data to show. A client saw this message in SSMS. Check that default trace enabled is 1, make a schema change, and run the report again.

Read More
Gouache painting of a row of open beach umbrellas with one closed vermilion umbrella at the end

Visible Offline Schedulers: Find CPUs SQL Server Ignores

May 12, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Monitoring, SQL Server Configuration

Visible offline schedulers are CPUs that Windows shows and SQL Server refuses to use. This post reads the scheduler status with tested queries, compares it with the CPU count and affinity, and explains the two common causes. It also shows the statement that returns the CPUs to automatic affinity.

Read More
Gouache painting of a wide channel splitting into small garden channels through one vermilion sluice gate

Query Store On or Off for Every Database: Review First

April 25, 2020
Pinal Dave
SQL Tips and Tricks
Query Store, SQL DMV, SQL Scripts, SQL Server Configuration

To turn Query Store on or off for every database, you need one statement per database, because there is no server switch. This post builds a tested script that writes the statements, lets you read them and then runs them in one batch. It also covers READ_ONLY mode and the model database.

Read More
Gouache painting of a row of white beehives in a meadow, some open and some closed, one vermilion

Query Store Status for Every Database in SQL Server

April 24, 2020
Pinal Dave
SQL Performance
Query Store, SQL DMV, SQL Scripts, SQL Server Configuration

Query Store status for every database takes two queries, and the first is not enough. This post builds four demo databases, shows why the is_query_store_on flag hides frozen and read-only states, and runs one script that reads the real state of each database. It also shows what Query Store costs in memory.

Read More
Gouache painting of a hose overflowing a full bucket onto a path beside a tap with a vermilion wheel

SSMS Command Timeout: What the Execution Time-out Does

April 23, 2020
Pinal Dave
SQL Tips and Tricks
SQL Extended Events, SQL Server Configuration, SQL Server Management Studio, Testing

The SSMS command timeout is the number of seconds a query window waits before it cancels a batch. This post lists the four places a time-out can come from and reproduces a client time-out with sqlcmd and PowerShell. It also shows how an Extended Events session proves that the client gave up.

Read More
Gouache painting of a basket of apples capped by a vermilion plank, with more apples left on the grass around it

SSMS ROWCOUNT Setting: Why Your Query Stops at 100 Rows

April 22, 2020
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Performance, SQL Server Configuration, SQL Server Management Studio

The SSMS ROWCOUNT setting limits every query in a window to a fixed number of rows, and it can change the plan as well. This post shows the effect on rows, reads and plan with a tested demo, how to check your own session and why UPDATE statements stop at the limit too.

Read More
Gouache painting of an old table fan on a wooden side table with its cord unplugged beside a wall socket, the plug painted vermilion

Configuration Manager WMI Error: Cannot Connect to WMI Provider

March 31, 2020
Pinal Dave
SQL Tips and Tricks
Command Line, SQL Error Messages, SQL Server, SQL Server Configuration, WMI

A Configuration Manager WMI error blocks SQL Server Configuration Manager with the message that it cannot connect to the WMI provider. This is a second way to fix it, using mofcomp with the file for your SQL Server version. If mofcomp does not succeed, my earlier post has more steps.

Read More
Previous 1 2 3 4 5 6 7 … 23 Next
  • Books
  • Testimonials
  • Privacy Policy

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