Reputation: 7512
I am dynamically adding steps to a Sql Server Agent Job, but I need to get the last step id to determine the next id in the sequence. I cannot seem to find any built in sps that can give me this information.
Upvotes: 0
Views: 571
Reputation: 7512
will just hit up the sysjobsteps table and grab max id....that will work
Upvotes: 1