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 strip of stitched buttonholes shows distinct gaps between successive openings in cream cloth

Measuring Time Between Workflow Steps With LEAD

August 15, 2012
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Order By, SQL Reports

Status rows hold timestamps, not durations. I use LEAD to measure each step, keep unfinished steps NULL, and show why zero ruins your averages.

Read More
A willow swaying in the wind above a pond, its reflection trailing slightly behind the real branches.

Offloading Reports to a Readable Secondary

August 5, 2012
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL High Availability, SQL Reports, SQL Server

Readable secondary replicas can serve reports away from a SQL Server primary; learn routing, lag, licensing, and query differences to test.

Read More
A hand opens one small wooden drawer of seeds in a wall of closed, unmarked drawers in an old shop.

Row-Level Security for Reports

May 22, 2011
Pinal Dave
SQL Tips and Tricks
SQL Reports, SQL Server, SQL Server 2016, SQL Server Security

Use SQL Server row-level security for reports with predicate functions and SESSION_CONTEXT, and test every identity boundary.

Read More
An orchard gate in early spring with a red ribbon tied to the post

Fiscal Years That Do Not Start in January

January 1, 2011
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Reports, SQL Scripts, SQL Server

Compute fiscal years and quarters from an April start, build indexed date boundaries, and store a fiscal calendar for repeatable reports.

Read More
A whole watermelon beside one cut red slice on a cloth, a kitchen knife in front

Percent of Total With SUM() OVER() in One Query

September 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

Calculate percent of total with SUM() OVER(), group and running shares, safe numeric division, and checks for zero totals.

Read More
SQL Server Activity History.

SQL SERVER – Configure Management Data Collection in Quick Steps – T-SQL Tuesday #005

April 13, 2010
Pinal Dave
SQL Performance
SQL Reports

A visual walk through to configure Management Data Collection in a few quick steps and get default reports on CPU, memory and disk for your server.

Read More
SQL SERVER - Out of the Box - Activity and Performance Reports from SSSMS

SQL SERVER – Out of the Box – Activity and Performance Reports from SSSMS

March 25, 2010
Pinal Dave
SQL Performance
SQL Reports, SQL Server, SQL Server Management Studio

SSMS 2008 has built-in activity and Performance Reports most people never open. Right click the server, go to Reports, Standard Reports, and pick one.

Read More
Previous 1 … 4 5 6 7 8 9 Next
  • Books
  • Testimonials
  • Privacy Policy

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