SQL Flow Field Guide

JARO_WINKLER_DISTANCE

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
float

Syntax at a glance

JARO_WINKLER_DISTANCE ( character_expression , character_expression )

Work example

Compare short strings where shared prefixes help identify likely spelling variants.

Test the score on representative synthetic pairs and route candidate matches for review.

Check your work Fuzzy string matching requires the preview feature setting and can rank unrelated values closely.

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