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


SQL Server Agent jobs - Modify jobs issue


SQL Server Agent jobs - Modify jobs issue

Author
Message
kusum.shah
kusum.shah
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 154
I am a sysadmin on the server. I am able to create a SQL job. However, I am unable to modify the job. Any help would be appreciated.
Elliott Berkihiser
Elliott Berkihiser
SSC-Addicted
SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)

Group: General Forum Members
Points: 436 Visits: 2014
Hello kusum.shah,

Could you provide more information. Did you attempt to modify the job using the GUI (SQL Server Mgmt Studio), or did you attempt it using T_SQL code, or both?

Can you execute the job? Does it run successfully? What are you trying to modify (the schedule? a job step?).

WE might be able to diagnose the problem with more information.

Thanks,
Elliott
kusum.shah
kusum.shah
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 154
Hi Elliott,

Thanks for a quick response.

I tried to modify the job using SQL server mgmt studio only. When I right click the job and go to properties - it opens a window for a new job i/o opening the job I want to modify. When I right click the job and choose "script job as" - I can pick "Create to" and "drop to" options but the option "Alter to" is grayed out.

Thanks

Kusum
Elliott Berkihiser
Elliott Berkihiser
SSC-Addicted
SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)

Group: General Forum Members
Points: 436 Visits: 2014
Kusum,

Now I understand what you are seeing, and I agree that it's a surprising problem.

While you have Mgmt Studio open, could you click on New Query, and run the command " Select suser_sname() " ? The answer may tell us something about the permissions that you are running under.

Elliott
Silverfox
Silverfox
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3614 Visits: 1161
kusum.shah (9/11/2009)
I am a sysadmin on the server. I am able to create a SQL job. However, I am unable to modify the job. Any help would be appreciated.


You cannot alter a job in that way. script the job as a create, drop the job, make the changes to your script and then run it, recreating your job with your modifications.

--------------------------------------------------------------------------------------
Recommended Articles on How to help us help you and
solve commonly asked questions

Forum Etiquette: How to post data/code on a forum to get the best help by Jeff Moden
Managing Transaction Logs by Gail Shaw
How to post Performance problems by Gail Shaw
Help, my database is corrupt. Now what? by Gail Shaw
kusum.shah
kusum.shah
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 154
Hi Elliott,

Thanks again

I did run the query - select suser_sname and it returned my login id which is domainname\userid

Thanks

Kusum
Greg Charles
Greg Charles
SSCertifiable
SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)

Group: General Forum Members
Points: 5707 Visits: 5932
Silverfox (9/14/2009)
kusum.shah (9/11/2009)
I am a sysadmin on the server. I am able to create a SQL job. However, I am unable to modify the job. Any help would be appreciated.


You cannot alter a job in that way. script the job as a create, drop the job, make the changes to your script and then run it, recreating your job with your modifications.


So, Kusum, you can either script the job, modify the script, drop the job, and recreate it like Silverfox suggests, or you can open the properties of the job, make your changes in the GUI, and save it by clicking the 'OK' button.

Greg
kusum.shah
kusum.shah
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 154
Hi Greg,

I can script the job, modify the script, drop the job, and recreate it like Silverfox suggested

However, I would like to have the ability to make changes in the GUI through the properties of the job. When I open the properties for a job it opens a "New Job" window - this is my problem...


Thanks
Kusum
Elliott Berkihiser
Elliott Berkihiser
SSC-Addicted
SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)SSC-Addicted (436 reputation)

Group: General Forum Members
Points: 436 Visits: 2014
Hi Kusum,

I can't think of any reason that you should not be able to modify the job via the PROPERTIES menu (assuming that your login has the necessary permissions). If re-starting SQL Agent doesn't clear up the problem, you may need to try re-installing. Not a happy prospect, but it seems you are experiencing something that is far from normal.

Elliott
kusum.shah
kusum.shah
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 154
Thanks for your help. I will try restarting sql server agent..

Kusum
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