sql server execute as permission errors in trigger

后端 未结 3 843
灰色年华
灰色年华 2021-02-08 13:56

I have a trigger where I want to send out an email on updates to a row in a table SalesClosing. Now the user (dbuser) who execute the trigger has very limited permissions. So I

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-08 14:00

    This is due to execute-as-user scoping - context switching to a database-level user is by default scoped to only that database (and the code above is executing outside the given database across to msdb), and the database-only authenticator is invalid. See the link above for multiple options on how to resolve/work-around.

提交回复
热议问题