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
Soap slicing wire beside many thin bars and a few thick bars

Reads per Execution: Ranking Queries by Average I/O

January 31, 2015
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Monitoring, SQL Performance

The query with the most total reads is not always the one to tune first. Here is how to rank by cost per call and read the spread.

Read More
SQL SERVER - FIX - Error 3201 - Cannot open backup device. Operating system error 3

SQL SERVER – FIX – Error 3201 – Cannot open backup device. Operating system error 3

January 30, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

BACKUP DATABASE failed with Error 3201, cannot open backup device, operating system error 3. The cause was a missing default folder. Here is the fix.

Read More
A hand picking the three ripest red strawberries from each plant along a garden row

Top N per Group: Three Ways and Which Is Fastest

January 29, 2015
Pinal Dave
SQL Performance
Execution Plan, Ranking Functions, SQL Performance, SQL Server, SQL Top

Compare top N per group with ROW_NUMBER, APPLY and a correlated subquery, define tie behavior, and measure plans with a supporting index.

Read More
SSIS Script Task Editor.

SQL SERVER – The Basics of the SSIS Script Task – Notes from the Field #065

January 29, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Backup and Restore, SSIS

SSIS expert Andy Leonard explains the basics of the SSIS Script Task, where to start with it, and how a new developer can learn to configure and use it.

Read More
A hand stacking four identical flat caps, crumpled, inside out, wet and flattened, on a lost-property shelf

Finding Near-Duplicate Rows With REGEXP_REPLACE

January 28, 2015
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Function, SQL Server, SQL String

Find near-duplicate rows with SQL Server 2025 normalization, group matching labels, rank survivors, and preserve originals for review.

Read More
Database backup history.

SQL SERVER – How to Know Backup History of Current Database?

January 28, 2015
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore

An updated script to see the backup history of the current database: who took each backup, its type, and the recovery model and compatibility level at the time.

Read More
An old wooden comb on a bathroom shelf with gaps where some of its teeth have broken off.

Gaps and Islands: Finding Missing Ranges in a Sequence

January 27, 2015
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL DateTime, SQL Scripts, SQL Server

Solve gaps and islands with LEAD, ROW_NUMBER, and GENERATE_SERIES, then apply the same date patterns to missing days and login streaks.

Read More
Previous 1 … 390 391 392 393 394 395 396 … 845 Next
  • Books
  • Testimonials
  • Privacy Policy

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