Search code examples
c#sql-server-2000sql-agent-job

Is there any way to update SQL Server job step command text using C#


I have some jobs in my SQL Server 2000 Agent.

Now I need to update only step command text.

Is there any way to do this from code behind?


Solution

  • Yes you can do this. There are several stored procedures in the msdb database of your server.

    You need the permission sysadmin OR

    • SQLAgentUserRole
    • SQLAgentReaderRole
    • SQLAgentOperatorRole

    Check out: