SQL Flow Field Guide

DROP ASSEMBLY

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

removes assembly (no row flow)

What changes

Input
catalog
Output or change
catalog: assembly

Syntax at a glance

DROP ASSEMBLY [ IF EXISTS ] assembly_name [ , ...n ] [ WITH NO DEPENDENTS ] [ ; ]

Work example

A CLR assembly is being removed after its database objects are retired.

List dependent aggregates, functions, procedures, and types before removing the assembly.

Check your work No remaining database object references the assembly or one of its classes.

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