SQL Flow Field Guide

semanticsimilaritydetailstable

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

semantic search rowset

What changes

Input
semantic index of full-text indexed columns
Output or change
rowset (key phrases, similar documents, or shared phrases with scores)

Syntax at a glance

SEMANTICSIMILARITYDETAILSTABLE ( table, source_column, source_key, matched_column, matched_key )

Work example

A review needs the terms that contribute to semantic similarity between two indexed documents.

Choose two synthetic document keys with known overlap. Check the semantic index state and inspect the returned term details.

Check your work semanticsimilaritydetailstable. The detail rows explain the selected document pair and are not confused with a similarity probability.

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