I have a stored procedure X in Database A.
X, among other things, updates table Y in Database B
I have granted execute on X to User1 but when User1 calls X it gets the following error:
The UPDATE permission was denied on the object 'Y', database 'B', schema 'dbo'.
How do I correctly grant the update rights to User1? I do not want to directly grant Insert/Update/Delete rights on table Y to User1