added ability to start at step (#758)

This commit is contained in:
Aditya Bist
2018-12-06 17:34:48 -08:00
committed by Karl Burtram
parent e4808c12aa
commit 046563318a
4 changed files with 48 additions and 2 deletions

View File

@@ -166,6 +166,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
// other information
private string script = null;
private string scriptName = null;
private int startStepID = -1;
#endregion
@@ -661,6 +662,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
this.owner = jobInfo.Owner;
this.description = jobInfo.Description;
this.enabled = jobInfo.Enabled;
this.startStepID = jobInfo.StartStepId;
}
}
#endregion
@@ -1184,6 +1186,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
}
else
{
job.StartStepID = this.startStepID != -1 ? this.startStepID : job.StartStepID;
job.Alter();
}