RE: sql tasks
- From: Mohit K. Gupta <mohitkgupta@xxxxxxx>
- Date: Mon, 9 Mar 2009 12:06:20 -0700
Yes; that is the owner of the job is the context it runs under. When you
create a job or maintenance plan it goes under your name by default.
So when doing that unless your access has access to the server; the job will
fail because the owner is set to you whether you execute it manually or
automatic (at least that's what I remember happening few months ago with me
heh ^^).
--
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCITP: Database Administrator
MCTS: SQL Server 2005
http://sqllearnings.blogspot.com/
"Reeves" wrote:
Mohit,.
Thanks for the response, and one more note: will sql jobs (sorry for the
confusion) run under the same context (account) no matter how they are
spawned?
So do they both run under the same context if they are run manually or
scheduled?
Reeves.
"Mohit K. Gupta" wrote:
By task you mean SQL Server JOB?
The job will run under the account of the owner on SQL Level and on OS Level
it will use SQL Server Service/Agent Service account unless you have proxy
account set up. It
--
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCITP: Database Administrator
MCTS: SQL Server 2005
http://sqllearnings.blogspot.com/
"Reeves" wrote:
When a user logs onto a box to manually run a task, is the task run under the
context of the user or the SQL Agent service?
1) Joeuser logs in and manually runs a task
vs
2) SQL Agent runs a scheduled task
Thanks
Reeves
- References:
- sql tasks
- From: Reeves
- RE: sql tasks
- From: Mohit K. Gupta
- RE: sql tasks
- From: Reeves
- sql tasks
- Prev by Date: RE: sql tasks
- Next by Date: RE: Error: 18456, Severity: 14, State: 11.
- Previous by thread: RE: sql tasks
- Next by thread: RE: EXECUTE xp_cmdshell
- Index(es):
Relevant Pages
|