Table of Contents

Class SqlDatabaseOptions

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

Represents the options for a SQL database.

public class SqlDatabaseOptions : BaseTypeSection
Inheritance
SqlDatabaseOptions

Constructors

SqlDatabaseOptions()

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

public SqlDatabaseOptions()

Properties

AllowSnapshotIsolation

Gets or sets whether to allow snapshot isolation. This applies to SQL Server 2012 and above.

public BooleanOption AllowSnapshotIsolation { get; set; }

Property Value

BooleanOption

AnsiNullDefault

Gets or sets the default ANSI NULL setting value.

public BooleanOption AnsiNullDefault { get; set; }

Property Value

BooleanOption

AnsiNullsEnabled

Gets or sets the ANSI NULLS enabled setting value.

public BooleanOption AnsiNullsEnabled { get; set; }

Property Value

BooleanOption

AnsiPaddingEnabled

Gets or sets the ANSI padding enabled setting value.

public BooleanOption AnsiPaddingEnabled { get; set; }

Property Value

BooleanOption

AnsiWarningsEnabled

Gets or sets the ANSI warnings enabled setting value.

public BooleanOption AnsiWarningsEnabled { get; set; }

Property Value

BooleanOption

ArithmeticAbortEnabled

Gets or sets the arithmetic abort enabled setting value.

public BooleanOption ArithmeticAbortEnabled { get; set; }

Property Value

BooleanOption

AutoClose

Gets or sets whether the database is configured to close automatically. This setting isn't available on Azure system databases.

public BooleanOption AutoClose { get; set; }

Property Value

BooleanOption

AutoCreateIncrementalStatistics

Gets or sets whether the database is configured to automatically create incremental statistics. This applies to SQL Server 2014 and above.

public BooleanOption AutoCreateIncrementalStatistics { get; set; }

Property Value

BooleanOption

AutoCreateStatistics

Gets or sets whether the database is configured to automatically create statistics.

public BooleanOption AutoCreateStatistics { get; set; }

Property Value

BooleanOption

AutoShrink

Gets or sets whether the database is configured to automatically shrink.

public BooleanOption AutoShrink { get; set; }

Property Value

BooleanOption

AutoUpdateStatistics

Gets or sets whether the database is configured to automatically update statistics.

public BooleanOption AutoUpdateStatistics { get; set; }

Property Value

BooleanOption

AutoUpdateStatisticsAsynchronously

Gets or sets whether the database is configured to automatically update statistics asynchronously.

public BooleanOption AutoUpdateStatisticsAsynchronously { get; set; }

Property Value

BooleanOption

Azure

Gets or sets the Azure related database options. This only applies to Azure hosted databases.

public SqlDatabaseAzureOptions Azure { get; set; }

Property Value

SqlDatabaseAzureOptions

CloseCursorsOnCommitEnabled

Gets or sets the close cursors on commit enabled setting.

public BooleanOption CloseCursorsOnCommitEnabled { get; set; }

Property Value

BooleanOption

CompatibilityLevel

Gets or sets the compatibility level of the database.

public SqlDatabaseCompatibilityLevel CompatibilityLevel { get; set; }

Property Value

SqlDatabaseCompatibilityLevel

CompatibilityLevelString

Gets the compatibility level of the database as a human readable string.

public string CompatibilityLevelString { get; set; }

Property Value

string

ConcatenateNullYieldsNull

Gets or sets the concatenate null yields null setting value.

public BooleanOption ConcatenateNullYieldsNull { get; set; }

Property Value

BooleanOption

Containment

Gets or sets the containment options for the database. This applies to on-premises SQL Server 2012 and above.

public SqlDatabaseContainmentOptions Containment { get; set; }

Property Value

SqlDatabaseContainmentOptions

DatabaseOwnershipChaining

Gets or sets the cross database ownership chaining enabled setting.

public BooleanOption DatabaseOwnershipChaining { get; set; }

Property Value

BooleanOption

DatabaseScoped

Gets or sets the database scoped configuration options. This applies to Azure and SQL Server 2016 and above.

public SqlDatabaseScopedConfigurationOptions DatabaseScoped { get; set; }

Property Value

SqlDatabaseScopedConfigurationOptions

DateCorrelationOptimization

Gets or sets whether date correlation optimization is enabled.

public BooleanOption DateCorrelationOptimization { get; set; }

Property Value

BooleanOption

DefaultCursorString

Gets the default cursor.

public string DefaultCursorString { get; set; }

Property Value

string

DelayedDurability

Gets or sets the delayed durability option. This applies to on-premises SQL Server 2014 and above.

public SqlDatabaseDelayedDurability DelayedDurability { get; set; }

Property Value

SqlDatabaseDelayedDurability

DelayedDurabilityString

Gets the delayed durability option as a human readable string.

public string DelayedDurabilityString { get; set; }

Property Value

string

FilestreamDirectoryName

Gets or sets the filestream directory name. This applies to on-premises SQL Server 2012 and above.

public string FilestreamDirectoryName { get; set; }

Property Value

string

FilestreamNonTransactedAccess

Gets or sets the filestream non transacted access type. This applies to on-premises SQL Server 2012 and above.

public SqlDatabaseFilestreamNonTransactedAccessType FilestreamNonTransactedAccess { get; set; }

Property Value

SqlDatabaseFilestreamNonTransactedAccessType

FilestreamNonTransactedAccessString

Gets the filestream non transacted access type as human readable string. This applies to on-premises SQL Server 2012 and above.

public string FilestreamNonTransactedAccessString { get; set; }

Property Value

string

IsParameterizationForced

Gets or sets the value of the is parameterization forced setting.

public BooleanOption IsParameterizationForced { get; set; }

Property Value

BooleanOption

IsReadCommittedSnapshotOn

Gets or sets the is read committed snapshot on setting value. This applies to SQL Server 2012 and above.

public BooleanOption IsReadCommittedSnapshotOn { get; set; }

Property Value

BooleanOption

LocalCursorsDefault

Gets or sets whether the default cursor is local.

public BooleanOption LocalCursorsDefault { get; set; }

Property Value

BooleanOption

NumericRoundAbortEnabled

Gets or sets the value of the numeric round abort enabled setting.

public BooleanOption NumericRoundAbortEnabled { get; set; }

Property Value

BooleanOption

PageVerify

Gets or sets the page verify setting for the database. This only applies to on-premises SQL Server.

public SqlDatabasePageVerify PageVerify { get; set; }

Property Value

SqlDatabasePageVerify

PageVerifyString

Gets the page verify setting for the database as a human readable string.

public string PageVerifyString { get; set; }

Property Value

string

ParameterizationString

Gets the value of the is parameterization setting as a human readable string.

public string ParameterizationString { get; set; }

Property Value

string

QuotedIdentifiersEnabled

Gets or sets the value of the quoted identifiers enabled setting.

public BooleanOption QuotedIdentifiersEnabled { get; set; }

Property Value

BooleanOption

RecoveryModel

Gets or sets the recovery model for the database. This only applies to on-premises SQL Server.

public SqlDatabaseRecoveryModel RecoveryModel { get; set; }

Property Value

SqlDatabaseRecoveryModel

RecoveryModelString

Gets the recovery model for the database as a human readable string. This only applies to on-premises SQL Server.

public string RecoveryModelString { get; set; }

Property Value

string

RecursiveTriggersEnabled

Gets or sets the value of the recursive triggers enabled setting.

public BooleanOption RecursiveTriggersEnabled { get; set; }

Property Value

BooleanOption

ServiceBroker

Gets or sets the service broker options for a SQL database. This applies to on-premises SQL instances.

public SqlDatabaseServiceBrokerOptions ServiceBroker { get; set; }

Property Value

SqlDatabaseServiceBrokerOptions

State

Gets or sets the state options for the databse.

public SqlDatabaseStateOptions State { get; set; }

Property Value

SqlDatabaseStateOptions

TargetRecoveryTime

Gets or sets the target recovery time in seconds. This only applies to on-premises SQL Server 2012 and above.

public int TargetRecoveryTime { get; set; }

Property Value

int

Trustworthy

Gets or sets whether the database is trustworthy.

public BooleanOption Trustworthy { get; set; }

Property Value

BooleanOption

VarDecimalStorageFormatEnabled

Gets or sets the value of the vardecimal storage format enabled setting.

public BooleanOption VarDecimalStorageFormatEnabled { get; set; }

Property Value

BooleanOption

Methods

FromXml(string)

Returns a CENTREL.XIA.Configuration.Types.SqlDatabaseOptions class from the specified XML.

public static SqlDatabaseOptions FromXml(string xml)

Parameters

xml string

The XML representation of the object.

Returns

SqlDatabaseOptions

A CENTREL.XIA.Configuration.Types.SqlDatabaseOptions class.