我已经读过,例如从这里读
http://wiki.lessthandot.com/index.php/Find_Out_Server_Roles_For_a_SQL_Server_Login
SecurityAdminangular色可以读取错误日志。 我是SecurityAdminangular色,当我尝试执行xp_readerrorlog时,出现以下错误:
Msg 229, Level 14, State 5, Procedure xp_readerrorlog, Line 1 The EXECUTE permission was denied on the object 'xp_readerrorlog', database 'mssqlsystemresource', schema 'sys'.
我错过了什么? 该angular色可以读取错误日志吗?
SecurityAdminangular色可以调用sp_readerrorlog而不是xp_readerrorlog,因为该angular色不允许使用扩展存储过程。 没什么大不了的,只有三个参数filter。