SQL Flow Field Guide

DROP LOGIN

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

removes a login

What changes

Input
catalog
Output or change
security catalog: login

Syntax at a glance

DROP LOGIN login_name

Work example

A server login is retired after its identity and owned objects are reviewed.

Check active sessions, database users, jobs, ownership, and access history with the identity owner.

Check your work No service uses the login and all owned objects have an approved new owner.

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