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
The Two Doors, Two Guards Puzzle

SQL SERVER – The Two Doors, Two Guards Puzzle

July 28, 2023
Pinal Dave
SQL Puzzle
SQL Scripts

I came across a puzzle about “The Two Doors, Two Guards,” popularly known as the “Two Doors Riddle” or the “Heaven and Hell Riddle”.

Read More
Gouache painting of ten small terracotta pots of young herbs in a row on a potting bench, one pot vermilion.

Go Programming Language: 10 Interview Questions With Tested Answers

July 7, 2023
Pinal Dave
SQL Tips and Tricks
Best Practices, Go, SQL Scripts

The Go programming language is small, so ten questions cover most of an interview. This post answers each one in plain words with a tiny program. Every program was run twice on Go 1.27.1, and the real output is shown.

Read More
CumulativeTotalCalculation

SQL SERVER Challenge – Cumulative Total Calculation

June 16, 2023
Pinal Dave
SQL Interview Questions and Answers
Contest, CTE, Ranking Functions, SQL Scripts, SQL Sub Query

Today we will see a very interesting SQL SERVER Challenge about Cumulative Total Calculation. During a recent Comprehensive Database Performance Health Check.

Read More
Gouache painting of a garage half full of stacked flower pots and half cleared, one stack vermilion

sp_delete_database_backuphistory: Prune msdb Backup History

June 5, 2023
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, System Database

The sp_delete_database_backuphistory procedure removes the backup and restore history of one database from msdb, and sp_delete_backuphistory does it by age. The demo counts the rows of a database before and after the delete and previews the delete by age. The last sections explain how to keep the history small.

Read More
A puppeteer's hands gathering a marionette's loose strings onto one wooden control bar

Finding Permissions Granted Directly to Users Instead of Roles

June 1, 2023
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server Security

Find permissions granted directly to users, generate role-based review statements, and preserve DENY, column, and grant-option distinctions.

Read More
A squirrel mid-leap between two oak branches, the branch it slipped from on its first try still swaying.

Agent Job Step Retries: Retry Attempts and Retry Interval

October 11, 2022
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server, SQL Server Agent

Configure Agent retry attempts and minute intervals, inspect retry history, and distinguish transient failures from unsafe replays.

Read More
A line of hilltop beacon fires along a coast at dusk, one beacon in the middle dark and unlit.

Heartbeat Gaps: Finding Missing Check-Ins With LAG

June 28, 2022
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Monitoring, SQL Scripts, SQL Server

Detect missing check-ins with LAG, report closed heartbeat gaps, and find silent or never-seen sources using an explicit UTC tolerance.

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

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