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
Two upright blue and terracotta pitchers beside two pale sage bowls and a short red cord.

TRY_PARSE: Make the Culture Explicit for Numeric Text

February 3, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

TRY_PARSE needs an explicit culture when punctuation has a specific numeric meaning. I keep that culture beside the source text. A successful conversion alone cannot establish that the intended number was read.

Read More
ALTER FUNCTION UDF.

SQL SERVER – Remove Duplicate Entry from Comma Delimited String – UDF

January 15, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A simple UDF from reader Ashish Jain that removes duplicate entries from a comma delimited string by turning it into a table and using DISTINCT.

Read More
A hand checking every coat on a row of hooks for the one with a red lining

Leading Wildcard LIKE Searches: Why They Scan and What Helps

December 25, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server, SQL String

Diagnose a leading wildcard LIKE scan and compare prefix search, reversed suffix keys, full-text search, and n-gram indexing.

Read More
A hand sorting mixed cutlery into three compartments, one red-handled spoon set apart

Splitting Full Names Into First, Middle and Last in T-SQL

October 28, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022, SQL String

Try splitting full names with T-SQL string functions, preserve token order, and flag suffixes or compound surnames for review.

Read More
SQL SERVER - Get Numeric Value From Alpha Numeric String - UDF for Get Numeric Numbers Only

SQL SERVER – Get Numeric Value From Alpha Numeric String – UDF for Get Numeric Numbers Only

October 14, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A simple UDF that gets only the numbers from an alpha numeric string, using PATINDEX and STUFF, with test values for empty, NULL and mixed strings.

Read More
Gouache painting: on a workbench, a pair of plain smooth brass tweezers holds one polished clay marble, while a wide wooden clamp holds a bundle of three marbles tied with string; a loose marble and a second tied bundle lie nearby, one string vermilion

JSON_QUERY or JSON_VALUE: Match the JSON Shape

October 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL String

JSON_QUERY or JSON_VALUE depends on the JSON shape you need. One read-only document exposes scalar, object, array, JSON null and missing-path results side by side.

Read More
SQL SERVER - 2008 - Enhenced TRIM() Function - Remove Trailing Spaces, Leading Spaces, White Space, Tabs, Carriage Returns, Line Feeds

SQL SERVER – 2008 – Enhenced TRIM() Function – Remove Trailing Spaces, Leading Spaces, White Space, Tabs, Carriage Returns, Line Feeds

October 10, 2008
Pinal Dave
SQL Performance
SQL Function, SQL Scripts, SQL String, SQL Utility

Need to remove trailing spaces, leading spaces, tabs, carriage returns and line feeds? Here is an enhanced TRIM function built from a script by Russ and Erik.

Read More
Previous 1 … 15 16 17 18 19 20 21 … 23 Next
  • Books
  • Testimonials
  • Privacy Policy

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