SQL Flow Field Guide

CREATE EXTERNAL LIBRARY

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

defines external library (no row flow)

What changes

Input
catalog
Output or change
catalog: external library

Syntax at a glance

CREATE EXTERNAL LIBRARY library_name [ AUTHORIZATION owner_name ] FROM <file_spec> [ ,...2 ] WITH ( LANGUAGE = <language> ) [ ; ]

Work example

An external script feature needs a reviewed library package in the database.

Check package source, version, runtime compatibility, size, and the principal allowed to execute it.

Check your work The package version is pinned and the runtime can load it in an isolated test.

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