SQL Flow Field Guide

ALTER EXTERNAL LIBRARY

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

changes external library (no row flow)

What changes

Input
catalog
Output or change
catalog: external library

Syntax at a glance

ALTER EXTERNAL LIBRARY library_name [ AUTHORIZATION owner_name ] SET <file_spec> WITH ( LANGUAGE = <language> ) [ ; ]

Work example

An external script library needs a pinned security or compatibility update.

Compare package hash, version, runtime, size, and callers with the reviewed release record.

Check your work The intended script loads the new library and no unrelated package is replaced.

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