CSharpAtl
CSharpAtl

Reputation: 7512

Sql Server Job steps

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

Answers (1)

CSharpAtl
CSharpAtl

Reputation: 7512

will just hit up the sysjobsteps table and grab max id....that will work

Upvotes: 1

Related Questions