1、
查看固定服务器角色
execute sp_helpsrvrole;
管理:
execute master..sp_addsrvrolemember @logingName='neeky' @rolename='sysadmin';
go
execute master..sp_dropsrvrolemember @logingName='neeky' @rolename='sysadmin';
go
2、
查看固定数据库角色成员
execute sp_helprole;
go
管理:
execute sp_addrolemember @rolename='db_datareader' @membername='neeky';
go
execute sp_droprolemember @rolename='db_datareader' @membername='neeky';
go