SQL Flow Field Guide

SOUNDEX

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

string transform

What changes

Input
string arguments
Output or change
string or integer
Return type
varchar

Syntax at a glance

SOUNDEX ( character_expression )

Work example

Generate a phonetic code for a name-like string comparison.

Test Unicode, trailing spaces, collation, empty input, and maximum output length.

Check your work Use it to find review candidates because distinct words can share one code.

Open Microsoft Learn for full syntax, permissions, and details for your version.