Is there a way to set SQL job step 'Run As' option? Thanks.
Could you please elaborate on what exactly is your end goal?
The sprocs sp_update_jobstep and sp_add_jobstep have this parameter. Would that be helpful?
[ @database_user_name = ] 'user' The name of the user account to use when executing a Transact-SQL step. useris sysname, with a default of NULL.
17 People are following this question.