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
Gouache painting: a haystack inside a wooden barn with one small vermilion button hidden in the straw, a hanging lantern above it, warm light through the barn slats

Find Rows With Single Quotes in SQL Server: SQL in Sixty Seconds #075

October 22, 2014
Pinal Dave
SQL Video
Quotes, SQL in Sixty Seconds, SQL Scripts, SQL String

To find rows with single quotes, write the quote twice inside the search string. This post tests four search patterns on one million rows on SQL Server 2025, shows which two are the same query and which one costs more, and covers the curly quote that a straight quote search misses.

Read More
A glass pipette above selected potato pieces, one with a blue-black spot, beside untouched carrots and tomatoes

REGEXP_LIKE Performance: Why Pattern Filters Cannot Seek

August 11, 2014
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL String

A short pattern can run a long CPU bill. Here is why REGEXP_LIKE scans, and how a plain prefix filter gives the index something to seek.

Read More
Detailed leaf impression in wax beside smooth wax in a wider saucer

Unicode Lost: Finding Question Marks Left by varchar Conversion

June 22, 2014
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL String, Unicode

Customer names turn into question marks, and an nvarchar column does not bring them back. Here is how it happens and how to repair it.

Read More
A needle stitching a small red flower in cross stitch on linen stretched in a wooden embroidery hoop.

UNISTR and Unicode Escapes in SQL Server 2025

May 18, 2014
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Function, SQL Server, SQL String, Unicode

Build Unicode strings with UNISTR in SQL Server 2025, compare NCHAR, and preserve accented letters, Hindi text, and emoji in storage.

Read More
An extended adjustable crutch stands beside a shorter adjusted crutch with intact supports

Sizing nvarchar Columns: How Long Should a Name Be?

April 19, 2014
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL String, Unicode

A name fits the web form but fails in the table. Measure real lengths in characters and bytes before you choose a size.

Read More
A router bearing follows a curved wooden guide while a spare bit lacks a guide

Agent Tokens in Job Steps: Job Name, Step and Start Time

February 9, 2014
Pinal Dave
SQL Tips and Tricks
SQL Monitoring, SQL Server Agent, SQL String

A copied job should log its own name, not the old one. Agent tokens do that, if you escape them the right way.

Read More
Matching brass iris rings have wide and narrow openings with different light patches behind them

Case-Insensitive and Multiline Regex Flags in SQL Server 2025

January 24, 2014
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String, Testing

Your pattern passed the test string and then missed rows in the table. The flags and the line endings are the usual reason.

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

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