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 groundskeeper pushing a line-marking cart across an empty field, painting the first boundary line.

Turning a Business Question Into a Query: Define the Metric First

March 1, 2024
Pinal Dave
SQL Tips and Tricks
Best Practices, Business Intelligence, SQL DateTime, SQL Reports, SQL Server

Turn a business question into a tested T-SQL metric with explicit time zones, cancellations, returns, and a hand-checked sample.

Read More
Who Dropped

Who Dropped Your Table? – SQL in Sixty Seconds #112

August 28, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Reports, SQL Scripts, SQL Server, SQL Server Security

Who Dropped My Table? – I was recently asked this question in Comprehensive Database Performance Health Check. Let us learn about it today.

Read More
User Statistics Report for Database

SQL SERVER – User Statistics Report for Database – SSMS

June 16, 2020
Pinal Dave
SQL Tips and Tricks
SQL Reports, SQL Server Management Studio, SQL Server Security

Once we isolate the user, it was easier for us to get the performance back to the original level. Learn about User Statistics Report for Database – SSMS.

Read More
A long-jump pit with a vermilion flag at last year's best mark and a fresh landing print just past it.

Year-Over-Year Comparisons in One Query

June 11, 2020
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Joins, SQL Reports, SQL Server

Build year-over-year monthly comparisons with a complete calendar, LAG, date-aligned joins, safe percentages, and missing-period rules.

Read More
Title card: Report Does Not Have Any Data to Show

SQL SERVER – Fix Error: Currently This Report Does Not Have Any Data to Show, Because Default Trace Does Not Contain Relevant Information

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

If there is a way to fix the error which they get when they try to open Schema Changes History. The error was related to Not Have Any Data to Show.

Read More
A hand holding open the front of a Victorian dollhouse to show the rooms and staircase inside

Capturing the SQL Behind SSMS Reports With Extended Events

March 21, 2020
Pinal Dave
SQL Tips and Tricks
SQL Extended Events, SQL Reports, SQL Server, SQL Server Management Studio

Capture the SQL behind SSMS reports with a filtered Extended Events ring buffer, inspect batch text, and remove the session afterward.

Read More
An archery target with four nested rings in a field, one arrow in the red center and others in outer rings

Period-to-Date Totals: Today, Week, Month and Year in One Scan

April 27, 2019
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Reports, SQL Server

Calculate period-to-date totals with shared scan boundaries, Monday-based weeks, and older date arithmetic for SQL Server reports.

Read More
1 2 3 4 … 8 Next
  • Books
  • Testimonials
  • Privacy Policy

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