mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-12 02:58:35 -05:00
Added more options to job changes and elaborated error messages (#775)
* job step type and error message details change * added newline for both environments * checked for inner exceptions * sorted imports
This commit is contained in:
@@ -659,10 +659,11 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
if (jobInfo != null)
|
||||
{
|
||||
this.currentName = jobInfo.Name;
|
||||
this.owner = jobInfo.Owner;
|
||||
this.description = jobInfo.Description;
|
||||
this.enabled = jobInfo.Enabled;
|
||||
this.Owner = jobInfo.Owner;
|
||||
this.Description = jobInfo.Description;
|
||||
this.Enabled = jobInfo.Enabled;
|
||||
this.startStepID = jobInfo.StartStepId;
|
||||
this.Category = ConvertStringToCategory(jobInfo.Category);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -188,6 +188,21 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// SubSystem
|
||||
/// </summary>
|
||||
public AgentSubSystem Subsystem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.subSystem;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.subSystem = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// indicates whether the job exists on the server
|
||||
/// </summary>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
using System;
|
||||
using Microsoft.SqlServer.Management.Smo.Agent;
|
||||
using Microsoft.SqlTools.ServiceLayer.Agent;
|
||||
using Microsoft.SqlTools.ServiceLayer.Agent.Contracts;
|
||||
using Microsoft.SqlTools.ServiceLayer.Management;
|
||||
|
||||
@@ -43,6 +44,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
this.data.ID = stepInfo.Id;
|
||||
this.data.Name = stepInfo.StepName;
|
||||
this.data.Command = stepInfo.Command;
|
||||
this.data.Subsystem = AgentUtilities.ConvertToAgentSubSytem(stepInfo.SubSystem);
|
||||
}
|
||||
|
||||
protected override bool DoPreProcessExecution(RunType runType, out ExecutionMode executionResult)
|
||||
|
||||
Reference in New Issue
Block a user