1、创建用户:
create login username with password='密码' , default_database=数据库; create user username for login username with default_schema=dbo;
2、增删改查授权
grant select,insert,update,delete on 表 to username
3、存储过程授权
grant execute on 存储过程名 to username
4、禁止对表授权
deny update on 表 to username cascade;
5、回收权限
revoke delete on 表 from username