exec sp_addlogin 'test','123' //创建登录帐号
execute sp_addgroup 'testgroup' //创建组
execute sp_adduser 'test','123','testgroup' //帐号添加组
grant create on yellowpages to testgroup //授权给用户进行操作
执行存储过程EXEC prc_test; 会报如下错误
Msg 15247, Level 16, State 1, Procedure sp_configure, Line 107
用户没有执行此操作的权限。
Msg 5812, Level 14, State 1, Procedure PRC_TEST, Line 8
您没有运行 RECONFIGURE 语句的权限。
Msg 15247, Level 16, State 1, Procedure sp_configure, Line 107
用户没有执行此操作的权限。
Msg 5812, Level 14, State 1, Procedure PRC_TEST, Line 10
您没有运行 RECONFIGURE 语句的权限。