----添加角色
execute sp_addgroup 'S_group'
execute sp_addgroup 'SI_group'
execute sp_addgroup 'SID_group'
go---为角色添加权限
grant select on 你的表 to S_group,SI_group,SID_group
grant insert on 你的表 to SI_group,SID_group
grant delete on 你的表 to SID_group
go---添加用户
execute sp_addlogin '用户名','密码','你的库',null---为用户添加角色
execute sp_adduser '用户名','用户名','S_group'
.....