Close

August 19, 2013

SQL Server – List all SQL Login accounts

Short script to list all SQL login accounts [non windows NT accounts]

select
name
from
master..syslogins
where
isntname = 0
and
name not like ‘##%’
order by
loginname;