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 mother duck leading ducklings across a lawn, one duckling following another toward the pond

Modeling Friends and Followers With SQL Server Graph Tables

April 10, 2012
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Joins, SQL Server, SQL Server 2017

Build SQL Server graph tables for follows, mutual connections and friends of friends, then use shortest paths and compare a junction table.

Read More
Two hands holding a daisy chain of joined flowers, a single loose daisy on the grass beside them

Storing Emoji and Short Messages: nvarchar, UTF-8 and Length

April 9, 2012
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Datatype, SQL Server, SQL String, Unicode

Store emoji safely with nvarchar or UTF-8 varchar, compare LEN and DATALENGTH, and choose message limits that fit full Unicode.

Read More
Muddy carrots scrubbed in a farmhouse sink, a colander of clean carrots on the drainboard and peelings in a bowl.

Cleaning Messy Data With T-SQL

April 8, 2012
Pinal Dave
SQL Tips and Tricks
Data Observability, ETL, SQL DateTime, SQL Server, SQL String

Cleaning messy data With T-SQL means trimming text, parsing dates safely, and preserving rejected source rows for correction and replay.

Read More
Four ladders against separate apple trees in an orchard row, a full basket under each and one cart waiting at the end.

Loading Partitions in Parallel

March 26, 2012
Pinal Dave
SQL Tips and Tricks
ETL, Parallel, SQL Lock, SQL Server, Table Partitioning

Loading partitions in parallel uses separate staging tables, controlled workers, and partition switching to publish data without chaotic locks.

Read More
An open blank book with a plain fabric bookmark beside a natural wooden pencil on a quiet desk.

Getting Through a Technical Book You Actually Finish

March 25, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Read a technical book with a practical question, small SQL experiments, and reusable notes that turn each useful chapter into working knowledge.

Read More
Marbles tipped from a neat row into a bowl, landing mixed

Why a Clustered Index Does Not Guarantee Order Without ORDER BY

March 19, 2012
Pinal Dave
SQL Tips and Tricks
Clustered Index, Execution Plan, SQL Order By, SQL Server

Explain order without ORDER BY through parallel scans, NOLOCK allocation scans, alternate indexes, shared scans, and the explicit sort fix.

Read More
A graph plotting data points on a coordinate grid.

Shortest Distance Between Two Shapes in SQL Server: Ramsetu or Adam’s Bridge

March 18, 2012
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

The shortest distance between two shapes in SQL Server comes from ShortestLineTo and STDistance. The tests here show the numbers behind the three original pictures, what happens when shapes overlap or use different SRIDs, and the same method on the globe near Ramsetu.

Read More
Previous 1 … 293 294 295 296 297 298 299 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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