1
0
mirror of https://github.com/alex-bochkov/ssms-addin.git synced 2025-11-29 22:08:12 +02:00
Files
ssms-addin/QueryTemplates/Common Scripts/get-all-sysadmins.sql

5 lines
139 B
MySQL
Raw Normal View History

2020-02-21 11:28:31 -08:00
SELECT name, type_desc, is_disabled
FROM master.sys.server_principals
WHERE IS_SRVROLEMEMBER ('sysadmin',name) = 1
ORDER BY name