List all disabled SQL Server logins

To list all disabled SQL Server logins, run the following query:

SELECT name, is_disabled
FROM sys.sql_logins
WHERE is_disabled = 1;

list all disabled logins in SQL Server

If the post helped you, please share it:
Pin It

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">