SQL Server Agent jobs - Modify jobs issue

  • 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.

  • 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

  • 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

  • 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

  • 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.

    --------------------------------------------------------------------------------------
    [highlight]Recommended Articles on How to help us help you and[/highlight]
    [highlight]solve commonly asked questions[/highlight]

    Forum Etiquette: How to post data/code on a forum to get the best help by Jeff Moden[/url]
    Managing Transaction Logs by Gail Shaw[/url]
    How to post Performance problems by Gail Shaw[/url]
    Help, my database is corrupt. Now what? by Gail Shaw[/url]

  • Hi Elliott,

    Thanks again

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

    Thanks

    Kusum

  • 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

  • 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

  • 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

  • Thanks for your help. I will try restarting sql server agent..

    Kusum

  • I ran into a similar problem yesterday. My Sr. DBA pointed out that I did not have proper SP installed. I installed the latest SP. I was able to edit the job after that.

  • go to job what u created let me called "myjob".so go to jobs->myjob->right click n go to view history.u can edit the job

  • I have this issue sometimes myself. The version and service pack level of Management studio must be the same as the version and service pack level of the SQL Server you are attempting to make the change in.

  • Technology job fairs are a good source to get entry level jobs. As per your interest, you may entry into that.

    apprenticeship vacancy[/url]

Viewing 14 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic. Login to reply