SQL Flow Field Guide

CREATE EXTERNAL DATA SOURCE

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

defines an external access definition

What changes

Input
catalog
Output or change
external data source or file format definition

Syntax at a glance

CREATE EXTERNAL DATA SOURCE <data_source_name> WITH ( [ LOCATION = '<prefix>://<path>[:<port>]' ] [ [ , ] CREDENTIAL = <credential_name> ] [ [ , ] TYPE = { BLOB_STORAGE | RDBMS | SHARD_MAP_MANAGER } ] [ [ , ] DATABASE_NAME = '<database_name>' ] [ [ , ] SHARD_MAP_NAME = '<shard_map_manager>' ] ) [ ; ]

Work example

A query needs a named connection to an approved external data location.

Review location, credential scope, connector type, network path, and expected remote object before release.

Check your work The source reaches only the approved location and uses the intended database-scoped identity.

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