Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Which login should own my jobs?

Author  Topic 

cr8nk
Yak Posting Veteran

77 Posts

Posted - 2008-07-22 : 12:25:18
I need to assign a sysadmin owner to my backup/defrag jobs.

The SA account is disabled in our configuration and the SQL Agent account is a windows account but doesn't have a SQL Login because it is part of the SQLServer2005SQLAgentUser group. I am not able to assign a sysadmin to the job because I can't choose a group as a job owner.

What is the recommended practice to assign logins to jobs? Should it always be SA?

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-22 : 16:05:14
Did you have domain account while installing SQL Server? Your jobs should run on domain account. Does your SQL agent run on local system account?
Go to Top of Page

cr8nk
Yak Posting Veteran

77 Posts

Posted - 2008-07-22 : 18:01:00
Yes, the sql agent account and sql service account are both windows accounts. However they don't have a seperate sql login. They are part of the SQLServer2005SQLAgentUser and SQLServer2005SQLServerUser groups respectively.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-22 : 23:07:17
You can add them as sql login.
Go to Top of Page

cr8nk
Yak Posting Veteran

77 Posts

Posted - 2008-07-23 : 12:13:23
I know adding them is an option, but is it the right thing to do? The reason I ask is that the SQL Agent account is already part of a login group. Does it violate any best practices to add them as a seperate login as well?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-23 : 14:53:00
Either the group or the account should be added to the SQL Server.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

cr8nk
Yak Posting Veteran

77 Posts

Posted - 2008-07-24 : 00:47:29
The SQL Server Agent group is added, but I can't assign it as owner to the jobs. Do people usually add the windows account that the agent running is under as a login in addition to being part of the SQL Agent Group?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-24 : 12:34:12
Our account is local admin. We do not remove sysadmin from BUILTIN\Administrators, so our account also has sysadmin.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-24 : 13:47:06
>> Do people usually add the windows account that the agent running is under as a login in addition to being part of the SQL Agent Group?

Have to say that old word again, depends. Add it when need it.
Go to Top of Page

cr8nk
Yak Posting Veteran

77 Posts

Posted - 2008-07-24 : 14:57:53
I guess I'll have to add it, but I feel funny about it, it doesn't feel clean. Thanks for the advice!
Go to Top of Page
   

- Advertisement -