CREATE EXTERNAL DATA SOURCE
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.