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 person lifting a red blanket over a campfire, sending puffs of smoke across a valley at dusk

BASE64_ENCODE and BASE64_DECODE in SQL Server 2025

December 16, 2013
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server, SQL String

Use BASE64_ENCODE in SQL Server 2025, decode binary and text safely, compare URL-safe output, and replace older XML encoding expressions.

Read More
A driftwood beach comb beside an intact shell and a cracked shell of similar shape

Parsing File Name Dates to Find the Newest Backup With REGEXP_SUBSTR

November 13, 2013
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DateTime, SQL String

A restore script that sorts names as text can grab a copy or a log file. Parse the dates first, drop the bad ones, and break ties on purpose.

Read More
Two nearly matching tile mosaic panels side by side on a bench, tweezers holding one red tile

Trigram Matching: Finding Similar Words With an N-Gram Table

September 27, 2013
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Search, SQL Server, SQL String

Build trigram matching with GENERATE_SERIES and an indexed n-gram table, rank shared pieces, and compare spelling similarity with SOUNDEX.

Read More
A latch hook beside overlapping yarn loops and a short final loop

Overlapping Chunks: Splitting Long Text With GENERATE_SERIES

September 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL String

Split long text into overlapping pieces with one short query. Plus the quiet traps: NULL text, a step that is too big, and chopped words.

Read More
A hand picking a single small star-shaped shell out of a long tideline of scattered shells on a beach.

Escaping Wildcards in LIKE: Searching for % and _ Literally

August 19, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

Handle escaping wildcards in SQL Server LIKE searches with brackets, ESCAPE, and a reusable function that preserves literal input.

Read More
A stained glass panel being made, five panes in a row with two filled and a hand testing a piece in a gap.

A Crossword Helper in T-SQL: Matching Word Patterns With LIKE

August 1, 2013
Pinal Dave
SQL Tips and Tricks
SQL Operator, SQL Scripts, SQL Server, SQL String

Match word patterns with LIKE and SUBSTRING, build sorted-letter anagram signatures, and use a leading-letter index for crossword searches.

Read More
An open pea pod with five peas and an empty stretch at the end beside a red bowl.

LEN vs DATALENGTH: Trailing Spaces, Unicode Bytes and NULL

June 22, 2013
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server, SQL String, Unicode

Compare LEN vs DATALENGTH for trailing spaces, Unicode, UTF-8, NULL, and MAX values before safely resizing SQL Server string columns.

Read More
Previous 1 … 7 8 9 10 11 12 13 … 22 Next
  • Books
  • Testimonials
  • Privacy Policy

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