SQL Flow Field Guide

JARO_WINKLER_SIMILARITY

Catalog support for SQL Server 2025 (17.x)

approximate string comparison

What changes

Input
two strings
Output or change
distance or similarity score
Return type
int

Syntax at a glance

JARO_WINKLER_SIMILARITY ( character_expression , character_expression )

Work example

Rank possible short-text matches for a human review workflow.

Keep original values, compare with a labeled sample, and never use the score as a unique key.

Check your work Similarity is a heuristic and SQL Server 2025 requires the preview feature setting for fuzzy matching.

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