|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, November 19, 2012 6:56 PM
Points: 104,
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?
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 4:49 AM
Points: 1,075,
Visits: 5,119
|
|
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.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 6:57 PM
Points: 6,724,
Visits: 11,771
|
|
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
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 6:57 PM
Points: 6,724,
Visits: 11,771
|
|
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
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|