Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

We have a job that our Data run as part of it's package. We then often make customizations to the job for our various customers. We need to now add 2 steps. So if the job has steps 1 through 20, we need to add 2 new steps using SQL Script.

I tried looking on the web, but couldn't find anything either. Please help to solve this issue.

Thanks for your help,
Posted
Updated 11-Jan-15 23:44pm
v2
Comments
King Fisher 12-Jan-15 5:24am    
not Clear -

1 solution

SQL Server Agent (the part that runs jobs) has a lot of stored procedures exposed to handle different aspects of jobs - you should use them to be protected of potential changes in the underlying data format...
http://msdn.microsoft.com/en-us/library/ms187763.aspx[^]
One of the list is sp_add_jobstep[^]...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900