How to use SQL Server Agent Proxy account in SQL Server Job

Introduction

Sometimes, you just need to run that SQL Server Job under another user account. Either because:

In both cases you need to use SQL Server Agent Proxy account. Below you will find how to create one and use it in a Job.

Steps

Create Credential in SQL Server

Start by creating a new Credential linked to user which has local administrator permissions:
image

Create SQL Server Agent Proxy in SQL Server

Then create a Proxy:
image

And configure it to run SSIS-type of Jobs:

Use Proxy in SQL Server Agent Job to run

Finally, select Proxy in your SQL Server Agent Job Step:


More info at Microsoft TechNet video.

Done! Time to enjoy some great coffee!