SELECT name,type_desc,create_date,modify_date,default_database_name FROM sys.server_principals WHERE type in ('g','s')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)