Googled enough and found some solutions for this error which did't help me. All I am trying to do is:
Created a stored procedure:
create procedure test as begin update dummytable set dummycolumn = 'abcd' end
Created a job - 'testjob' and run by the user who is the database owner.
Error I am seeing:
Message
'EXECUTE AS USER' failed for the requested user 'xxx' in the database 'yyy'. The step failed.I tried: to reset the database owner, created a new user and scheduled the job, set the
TRUSTWORTHY
level of the database. Nothing helped.
Can someone help me fix this issue?