SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Job


SQL Job

Author
Message
surma.sql
surma.sql
SSC-Enthusiastic
SSC-Enthusiastic (136 reputation)SSC-Enthusiastic (136 reputation)SSC-Enthusiastic (136 reputation)SSC-Enthusiastic (136 reputation)SSC-Enthusiastic (136 reputation)SSC-Enthusiastic (136 reputation)SSC-Enthusiastic (136 reputation)SSC-Enthusiastic (136 reputation)

Group: General Forum Members
Points: 136 Visits: 364
hello

i have question about SQL Server Jobs

I check the job properties and see the username is 'SA'. and i check into steps and there is no user is specify in "Run AS". but still it will take one other user as this job Executed as user: 'XXXXXXX'

so how come it execute as XXXXXX user, why not sa?
Suresh B.
Suresh B.
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1940 Visits: 5326
Job does not run under owner's account.

1) If you run a job manually, it runs using your login.
2) If schedule it, job runs using SQL Server Agent service account.
Orlando Colamatteo
Orlando Colamatteo
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14939 Visits: 14396
Suresh B. (8/15/2012)
Job does not run under owner's account.

1) If you run a job manually, it runs using your login.
2) If schedule it, job runs using SQL Server Agent service account.

Who or what kicks the job off has nothing to do with which security context the job runs in. It has everything to do with the job owner and any proxy accounts setup for the steps.

If the job owner is in the sysadmin Server Role then the job executes in the context of the SQL Server Agent service account.

If the job owner is not in the sysadmin Server Role then the job executes in the context of the owner unless there are proxies setup for a step in which case that step runs in the context of the proxy account.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Orlando Colamatteo
Orlando Colamatteo
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14939 Visits: 14396
surma.sql (8/15/2012)
hello

i have question about SQL Server Jobs

I check the job properties and see the username is 'SA'. and i check into steps and there is no user is specify in "Run AS". but still it will take one other user as this job Executed as user: 'XXXXXXX'

so how come it execute as XXXXXX user, why not sa?

The account specified as XXXXXX will be the same as your SQL Server Agent service account.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search