--所有账号和服务器角色等基本信息
select createdate,updatedate,name,dbname,denylogin,hasaccess,sysadmin,securityadmin,serveradmin,setupadmin,processadmin,diskadmin,dbcreator,bulkadmin,loginname from sys.syslogins
where isntname=0 and isntgroup=0 and isntuser=0 and name not like '##%' and sid<>0x01