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
A walker on a birch woodland trail following red paint blazes, continuing through a stretch of trees with no marks.

IGNORE NULLS in SQL Server 2022: Carrying the Last Known Value Forward

November 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL Server 2022

Use IGNORE NULLS for forward-filled readings, find the next known value, and compare the older running-count grouping method carefully.

Read More
A sieve holds a few kernels above a trough full of sifted grain, with a larger mound behind

TOP N Sort: Why a Small TOP Still Reads the Whole Table

November 3, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Order By, SQL Server, SQL Top

Explain TOP N Sort, compare an indexed ordered access path, and align filter and sort keys before adding indexes for frequent requests.

Read More
Gouache painting of a greenhouse bench of plants growing from seedlings to a flowering shrub with one vermilion blossom

How Blogging Has Changed: From Online Diaries to Newsletters

November 1, 2021
Pinal Dave
SQLAuthority News
Blogging, Career Advice, Professional Development

How blogging has changed is the story of one garden. It grew from online diaries and hand-built pages into blog software, feeds, short updates and newsletters. Through all of it, the useful, honest and regular post stayed the same.

Read More
Current fabric profiles are inspected beside separate preserved seasonal layers.

SQL SERVER – List All Available TimeZone

October 29, 2021
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts, SQL Server

sys.time_zone_info lists timezone names and their current offsets. My SQL Server 2019 environment returned 141 rows.

Read More
CPU Running

CPU Running 100% – SQL in Sixty Seconds #185

October 28, 2021
Pinal Dave
SQL Video
SQL CPU, SQL in Sixty Seconds, SQL Performance, SQL Server

I got lots of responses to this blog and people wanted me to create a video for this topic. Here, I have a video for CPU Running 100%.

Read More
Matching workpieces are compared around a new fitted guide and its maintenance tools.

SQL SERVER – Measure Index Performance

October 27, 2021
Pinal Dave
SQL Performance
Clustered Index, SQL Index, SQL Server, SQL Statistics

I measure index performance against the same workload before and after a change. A customer wanted to assess a new index.

Read More
Gouache painting of a vermilion-handled tea strainer of old leaves on a saucer beside a cup of fresh tea and a grey teapot

Flush Authentication Cache: Who Can Run DBCC FLUSHAUTHCACHE

October 26, 2021
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Cache, SQL Server DBCC, SQL Server Security

Flush authentication cache entries with DBCC FLUSHAUTHCACHE. This post tests the command on SQL Server 2025, shows who can run it and that on SQL Server 2025 it ends no open session, and says what it is documented to do on Azure SQL Database.

Read More
Gouache painting of a pegboard with grey tool shapes and a screwdriver with a vermilion handle lying on the bench

Last Used Stored Procedure in SQL Server: When Did It Last Run?

October 25, 2021
Pinal Dave
SQL Tips and Tricks
Query Store, SQL Scripts, SQL Stored Procedure

To find the last used stored procedure, read last_execution_time from sys.dm_exec_procedure_stats. This post tests it on demo procedures, shows why a NULL does not mean never, and adds Query Store for a longer memory.

Read More
A railway worker seen from behind tapping a goods wagon wheel with a long hammer to listen to it

Checking Last Good DBCC CHECKDB Time With LastGoodCheckDbTime

October 22, 2021
Pinal Dave
SQL Tips and Tricks
Database Corruption, DBA, SQL Scripts, SQL Server DBCC

Inspect LastGoodCheckDbTime for each database, flag stale or unavailable checks, and compare metadata with retained integrity-job evidence.

Read More
errorfix

SQL SERVER – Fix Error – Cannot execute as the database principal because the principal “dbo” does not exist

October 21, 2021
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server, SQL Server Security

One of my clients recently sent me an email with the following error. The error was visible in the error log and was about the database principal. 

Read More
Previous 1 … 33 34 35 36 37 38 39 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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