SQL Flow Field Guide

EDIT_DISTANCE_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

EDIT_DISTANCE_SIMILARITY ( character_expression , character_expression )

Work example

Score spelling similarity when building a review queue for near-duplicate text.

Set a review threshold from labeled examples and inspect false matches before acting on the score.

Check your work The function requires the preview feature setting and its score does not establish that two entities are the same.

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