mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-06 01:25:43 -05:00
added ability to start at step (#758)
This commit is contained in:
committed by
Karl Burtram
parent
e4808c12aa
commit
046563318a
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user