SQL Flow Field Guide

DROP EXTERNAL LIBRARY

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

removes external library (no row flow)

What changes

Input
catalog
Output or change
catalog: external library

Syntax at a glance

DROP EXTERNAL LIBRARY library_name [ AUTHORIZATION owner_name ];

Work example

An external library version is no longer used by any script.

Find runtime references and verify a replacement package is already deployed.

Check your work All callers load the replacement version and the old package is absent from the dependency list.

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