Export (0) Print
Expand All

Job.Description Property

Gets or sets the textual description of the job.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string Description { get; set; }

Property Value

Type: System.String
A String value that specifies the textual description of the job.

The following code example sets the job description.

C#

Server srv = new Server("(local)");
Job jb = new Job(srv.JobServer, "Test Job");
jb.Description = "Sample Job Description";

PowerShell

$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job($srv.JobServer, "Test Job")
$jb.Description = "Sample Job Description"

Community Additions

ADD
Show:
© 2014 Microsoft