Cross database select from stored procedure

  • I have a stored procedure that goes across to another database. My understanding is that you eneble cross database chaining and add the user into the database you are crossing to. However my stored procedure is complaining that ot does not have select permissions on the table. Any idea how to fix this ?

  • You could use the "Execute As" function in the SP.

    This user would have existing on both servers and the relevant permissions to select/update/delete on the table(s) in the SP.

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

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