Trigger Error

  • Hi

    i am inserting a record in XYZ table(DB1). Through trigger it will update ABC table(DB2).

    I am getting error when doing above thing. What are the roles to be set to user to avoid above problem.

    Thanks

  • Please post the text of the error message.


  • The server principal "DB1" is not able to access the database "DB2" under the current security context.

  • I believe that the trigger executes under the same credentials as the event which fired it.

    So the users doing the inserts in DB1 also need rights in DB2.


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply