SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Change a job user?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

taunt
Posting Yak Master

119 Posts

Posted - 05/30/2013 :  17:33:52  Show Profile  Reply with Quote
Hello I'm on sql 2008 and I have a job that keeps erroring out after starting. The job is set up to update my website, so I have log in info saved. When it starts it says executed by user workgroup. I need to change it to sql/administrator. Right now it is set up that the ower is admin, but it doesn't use that to execute. How do I change that setting?

ahmeds08
Aged Yak Warrior

India
675 Posts

Posted - 05/31/2013 :  01:43:17  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
Its a good practice you have job owner to 'sa'.
To change the job owner you can use the below script

USE [msdb]
GO
EXEC msdb.dbo.sp_update_job @job_name=N'Your Job Name',
@owner_login_name=N'DOMAIN\ThenewOwner'
GO


mohammad.javeed.ahmed@gmail.com
Go to Top of Page

taunt
Posting Yak Master

119 Posts

Posted - 05/31/2013 :  11:54:44  Show Profile  Reply with Quote
Hello solved my problem. It was cause of the agent log in. I changed the log in for sql server agent to administrator under services, and I'm good.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000