WIth this command you can see witch user that have SysAdmins access.
SELECT name,type_desc,is_disabled FROM master.sys.server_principals WHERE IS_SRVROLEMEMBER ('sysadmin',name) = 1 ORDER BY name
WIth this command you can see witch user that have SysAdmins access.
SELECT name,type_desc,is_disabled FROM master.sys.server_principals WHERE IS_SRVROLEMEMBER ('sysadmin',name) = 1 ORDER BY name
To show all MSSQL databases except the normal system databases.
select * from sys.databases WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb');