Ashish Rathore
Ashish Rathore

Reputation: 2696

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?

Upvotes: 0

Views: 5337

Answers (1)

dknaack
dknaack

Reputation: 60506

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:

Upvotes: 1

Related Questions