SQL Flow Field Guide

FROM rowset_function

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

row source produced by a rowset function

What changes

Input
external or function-produced rowset (OPENROWSET, OPENQUERY, OPENDATASOURCE, CONTAINSTABLE, FREETEXTTABLE)
Output or change
rowset

Syntax at a glance

FROM rowset_function [ [ AS ] table_alias ] [ ( bulk_column_alias [ ,...n ] ) ]

Work example

A query needs one documented function result to act as a FROM source.

Call the function with a synthetic input. Name its output columns and check row count before joining it to a table.

Check your work FROM rowset_function. The function returns the expected columns and each output row has a known source value.

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