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
Independent shutters on a building are open or closed in different combinations

How to Decode @@OPTIONS Value? – Interview Question of the Week #268

March 15, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Server Configuration

How to decode @@OPTIONS value? Session-level SET options live in the @@options variable, and this script turns that number into readable settings.

Read More
SQL Server VSS backup sequence: freeze writes, take snapshot, then resume writes. Investigate if the pause persists.

SQL SERVER – What do These Messages Mean – “I/O is Frozen on Database” and “I/O was Resumed on Database”?

March 14, 2020
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Server, Starting SQL, System Database

  “I/O is frozen on database” and “I/O was resumed on database”? Did you check the air conditioner temperature? Let us learn about it in today’s blog post.

Read More
Gouache painting of a row of cream bicycles in a shed and one distant vermilion bicycle alone on a hilltop path

Scheduler ID Values in dm_os_schedulers: What the Big Numbers Mean

March 13, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

Scheduler ID values in dm_os_schedulers run from 0 up to a few thousand, and then jump past one million. This post groups the rows into user, dedicated admin connection and hidden schedulers, and shows the filter that keeps CPU scripts honest. It also shows why filtering on the number alone is fragile.

Read More
Gouache painting of a row of neat stacked logs, a scatter of old grey rounds and a vermilion sawhorse between them

Active and Inactive VLFs: List Them for Every Database

March 12, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, Transaction Log, VLF

To list active and inactive VLFs for every database, count the rows of sys.dm_db_log_info by vlf_active and read the log reuse wait next to them. This post builds a demo log with 24 VLFs, shows how an open transaction and small autogrowth steps add more, and fixes the count with one shrink and one regrow.

Read More
Gouache painting of a vermilion template board beside a pile of identical pieces cut from it on a workbench

KEEP PLAN Hint: Cut Temp Table Recompiles in SQL Server

March 11, 2020
Pinal Dave
SQL Performance
Query Hint, Recompile, SQL TempDB, Temp Table

The KEEP PLAN hint gives a temp table the same recompile threshold as a permanent table. This post counts statistics recompiles with Extended Events for a plain query, a KEEP PLAN query and a KEEPFIXED PLAN query. It shows where the hint helps, where it does nothing and what the stronger hint costs.

Read More
Two strings of drying chillies by a window, one twice as long, a red needle on the sill.

Proving a Tuning Change Worked With Before and After Numbers

March 10, 2020
Pinal Dave
SQL Performance
Best Practices, Query Store, SQL Performance, SQL Server

Prove a tuning change with before and after numbers from Query Store for CPU, reads, duration, and comparable execution volume.

Read More
Gouache painting of an old oak with a vermilion ribbon beside a stump showing growth rings, with young saplings nearby

Msg 17177 in the SQL Server Error Log: What It Means

March 9, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Scripts, SQL Server Services

Msg 17177 is an informational line in the SQL Server error log that reports the process ID of the instance. This post explains its two forms, a daily line and a start-up line, and reads both with a short query. It also shows how the line reveals uptime, downtime and the time zone of the server.

Read More
Similar oak leaves with different surface appearances share one sorting compartment

How to Do Case Insensitive Search? – Interview Question of the Week #267

March 8, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Collation, SQL Scripts, SQL Search, SQL Server

Question: How to Do Case Insensitive Search?

Collations in SQL Server provide sorting rules, case, and accent sensitivity properties for your data.

Read More
Gouache painting of attic shelves with a few shiny pots, many dusty ones and a vermilion broom leaning on the shelf

Remove Cached Plans Not Used for a Set Time in SQL Server

March 7, 2020
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Scripts, SQL Server DBCC

To clear cached plans not used for a set time, list the plans by their last execution time or by the time they were built, then clear each one by its plan handle. This post builds a small procedure that previews the plans first and removes them only when you switch it on. It also explains why the plan handle needs its 0x prefix.

Read More
Several intact gears sit in a fitted case beside separate maintenance and inspection tools.

SQL SERVER Management Studio – Rebuild All Indexes on Table

March 6, 2020
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server, SQL Server Management Studio

SSMS can open a Rebuild All dialog for table indexes. An e-commerce customer discovered this shortcut during my health check.

Read More
Previous 1 … 83 84 85 86 87 88 89 … 591 Next
  • Books
  • Testimonials
  • Privacy Policy

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