   )     AND p.type_desc IN (         'SQL_LOGIN'         ,'WINDOWS_LOGIN'         ,'WINDOWS_GROUP'         )     -- Logins that are not process logins     AND p.name NOT LIKE '##%'     -- Logins that are sysadmins or have GRANT CONTROL SERVER     AND (         s.sysadmin = 0         OR sp.permission_name = 'CONTROL SERVER'         ) ORDER BY p.name