JobStep.OutputFileName Property


Gets or sets the name and path of the operating system file that records job step result message text.

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

public string OutputFileName { get; set; }

Property Value

Type: System.String

An OSRunPriority value that specifies the priority given to job steps executing operating system tasks.

The sysadmin permission level is required to access this property. N.sysadmins can also use this property.

Set OutputFileName to start recording result message text to the file indicated by the property. Set OutputFileName to an empty string to stop recording.

Return to top