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
Five wooden trugs of carrots sorted by length at the end of a vegetable bed, heaped to different heights.

Histogram Buckets in T-SQL: Counting Values per Range

October 12, 2023
Pinal Dave
SQL Tips and Tricks
Data Visualization, SQL Joins, SQL Scripts, SQL Server

Create histogram buckets in T-SQL with fixed widths or explicit ranges, retain empty buckets, and display scaled text bars.

Read More
A wire stripper beside a transformed cable section and its removed outer sleeve

Masking Test Data With REGEXP_REPLACE in SQL Server 2025

April 13, 2019
Pinal Dave
SQL Tips and Tricks
Data Visualization, Data Warehousing, Master Data Services, SQL Data Storage

Before a production copy reaches a developer, replace the real emails and phone numbers. Here is a small, checked way to do it with REGEXP_REPLACE.

Read More
Fine wax bead from a copper canting beside a broad hardened wax bead

The money Data Type: Where Division and Rounding Go Wrong

October 10, 2017
Pinal Dave
SQL Tips and Tricks
Data Visualization, Data Warehousing, Master Data Services, SQL Data Storage

Dividing money by money loses digits before any cast can save them. Here is the one-third demo, and how to find the leftover penny.

Read More
Compact paint spray gun connected by twin hoses to a separate pigment pressure pot

Out-of-Row Storage for varchar(max): Keeping Data Pages Small

October 3, 2016
Pinal Dave
SQL Tips and Tricks
Data Visualization, Data Warehousing, Master Data Services, SQL Data Storage

Turn on the out-of-row option and nothing happens until you rewrite the data. I measure pages and reads at each step so you can see the real trade.

Read More
A full glass pitcher of water on a garden table, while behind it a hand holds a tin cup under a dripping wall tap.

Getting SQL Server Data Into Power BI

May 24, 2010
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Visualization, Query Store, SQL Server, SQL View

Power BI can read SQL Server through Import or DirectQuery; stable views, folding, and workload checks keep the database responsive.

Read More
  • Books
  • Testimonials
  • Privacy Policy

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