Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SQL Server Agent jobs - Modify jobs issue Expand / Collapse
Author
Message
Posted Friday, September 11, 2009 12:24 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 15, 2012 9:36 AM
Points: 5, Visits: 107
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.
Post #786633
Posted Friday, September 11, 2009 2:07 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 12:27 PM
Points: 256, Visits: 2,008
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
Post #786699
Posted Friday, September 11, 2009 2:36 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 15, 2012 9:36 AM
Points: 5, Visits: 107
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
Post #786711
Posted Friday, September 11, 2009 3:12 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 12:27 PM
Points: 256, Visits: 2,008
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
Post #786729
Posted Monday, September 14, 2009 4:56 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 1:04 AM
Points: 2,694, Visits: 1,120
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
Post #787321
Posted Monday, September 14, 2009 7:07 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 15, 2012 9:36 AM
Points: 5, Visits: 107
Hi Elliott,

Thanks again

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

Thanks

Kusum
Post #787421
Posted Monday, September 14, 2009 9:43 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 4:51 PM
Points: 4,064, Visits: 5,323
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
Post #787568
Posted Monday, September 14, 2009 9:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 15, 2012 9:36 AM
Points: 5, Visits: 107
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
Post #787576
Posted Monday, September 14, 2009 10:33 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 12:27 PM
Points: 256, Visits: 2,008
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
Post #787601
Posted Monday, September 14, 2009 11:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, June 15, 2012 9:36 AM
Points: 5, Visits: 107
Thanks for your help. I will try restarting sql server agent..

Kusum
Post #787635
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse