Table of Contents

Class SqlAgentGeneralSettings

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents the SQL server agent general configuration settings for a SQL instance. This only applies to on-premises installations of SQL Server.

public class SqlAgentGeneralSettings : BypassSection
Inheritance
SqlAgentGeneralSettings
Inherited Members

Constructors

SqlAgentGeneralSettings()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.SqlAgentGeneralSettings class.

public SqlAgentGeneralSettings()

Properties

ErrorLogFile

Gets or sets the absolute path to the error log file.

public string ErrorLogFile { get; set; }

Property Value

string

ServiceAccount

Gets or sets the agent service account name.

public string ServiceAccount { get; set; }

Property Value

string

ServiceStartMode

Gets or sets the start mode of the agent service.

public SqlServiceStartMode ServiceStartMode { get; set; }

Property Value

SqlServiceStartMode

ServiceStartModeString

Gets the start mode of the agent service.

public string ServiceStartModeString { get; set; }

Property Value

string

SqlAgentRestart

Gets or sets whether to auto restart SQL server agent if it stops unexpectedly.

public BooleanOption SqlAgentRestart { get; set; }

Property Value

BooleanOption

SqlServerRestart

Gets or sets whether to auto restart SQL server if it stops unexpectedly.

public BooleanOption SqlServerRestart { get; set; }

Property Value

BooleanOption

WriteOemErrorLog

Gets or sets whether to write the OEM error log.

public BooleanOption WriteOemErrorLog { get; set; }

Property Value

BooleanOption

Methods

ToString()

Returns the SQL server agent general settings as a human readable string.

public override string ToString()

Returns

string

The SQL server agent general as a human readable string.