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 straight hazel rod lying through the middle of scattered crocuses on a lawn, running on past them over bare grass.

A Simple Linear Regression Trend Line in T-SQL

December 1, 2023
Pinal Dave
SQL Tips and Tricks
Mathematical Function, Mathematics, SQL Scripts, SQL Server

Calculate linear regression slope, intercept, monthly predictions, and R-squared in T-SQL while keeping extrapolation limits clear.

Read More
A half-full mailbag hanging open on a frame, a hand adding envelopes, full bags tied shut beside it.

The Columnstore Delta Store: Small Loads and Open Rowgroups

November 3, 2023
Pinal Dave
SQL Performance
ColumnStore Index, SQL Index, SQL Performance, SQL Server

Inspect the columnstore delta store, distinguish rowgroup states, and choose load sizes or targeted compression after small loads.

Read More
A wardrobe of shirts hung in color order, a hand reaching into one section, a few shirts out of place

Ordered Clustered Columnstore Index for Better Rowgroup Elimination

October 27, 2023
Pinal Dave
SQL Performance
ColumnStore Index, Data Warehousing, SQL Server, SQL Server 2022

Build an ordered clustered columnstore on SaleDate, compare segment ranges and skipped segments, and review how later loads affect order.

Read More
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 large and a small copy of the same book on a library shelf, a hand sliding the small one back out.

Case-Insensitive Unique Constraints in a Case-Sensitive Database

September 25, 2023
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Collation, SQL Constraint and Keys, SQL Index, SQL Server

Enforce case-insensitive unique user names in a case-sensitive database using an indexed computed column with an explicit collation.

Read More
A huge roasting tray in an open oven holding one small sausage in the middle.

Oversized varchar Columns and Inflated Memory Grants

September 18, 2023
Pinal Dave
SQL Performance
Execution Plan, SQL Datatype, SQL Memory, SQL Performance, SQL Server

Investigate oversized varchar declarations, compare sort memory grants, and narrow string columns safely without losing valid data.

Read More
A tennis ball machine sending every ball to the same spot on a clay court, the marks clustered in one place.

Repeatable Test Data With a Fixed Random Seed

September 15, 2023
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Server, Testing

Generate repeatable test data with a fixed RAND seed or row-number hashes, then verify identical names and amounts across runs.

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

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