Поделиться через


Интерфейс IDatabaseOptions

Interface with properties that expose database options.

Этот API-интерфейс несовместим с CLS. 

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")> _
<DisplayDescriptionKeyAttribute("IDatabaseOptions_Desc")> _
<CLSCompliantAttribute(False)> _
<StateChangeEventAttribute("CREATE_DATABASE", "DATABASE")> _
<StateChangeEventAttribute("ALTER_DATABASE", "DATABASE")> _
<StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "DATABASE")> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None Or AutomatedPolicyEvaluationMode.CheckOnChanges Or AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<DisplayNameKeyAttribute("IDatabaseOptions_Name")> _
Public Interface IDatabaseOptions _
    Inherits IDmfFacet
'Применение
Dim instance As IDatabaseOptions
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")]
[DisplayDescriptionKeyAttribute("IDatabaseOptions_Desc")]
[CLSCompliantAttribute(false)]
[StateChangeEventAttribute("CREATE_DATABASE", "DATABASE")]
[StateChangeEventAttribute("ALTER_DATABASE", "DATABASE")]
[StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "DATABASE")]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[DisplayNameKeyAttribute("IDatabaseOptions_Name")]
public interface IDatabaseOptions : IDmfFacet
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.LocalizableResources")]
[DisplayDescriptionKeyAttribute(L"IDatabaseOptions_Desc")]
[CLSCompliantAttribute(false)]
[StateChangeEventAttribute(L"CREATE_DATABASE", L"DATABASE")]
[StateChangeEventAttribute(L"ALTER_DATABASE", L"DATABASE")]
[StateChangeEventAttribute(L"ALTER_AUTHORIZATION_DATABASE", L"DATABASE")]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::None|AutomatedPolicyEvaluationMode::CheckOnChanges|AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[DisplayNameKeyAttribute(L"IDatabaseOptions_Name")]
public interface class IDatabaseOptions : IDmfFacet
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")>]
[<DisplayDescriptionKeyAttribute("IDatabaseOptions_Desc")>]
[<CLSCompliantAttribute(false)>]
[<StateChangeEventAttribute("CREATE_DATABASE", "DATABASE")>]
[<StateChangeEventAttribute("ALTER_DATABASE", "DATABASE")>]
[<StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "DATABASE")>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<DisplayNameKeyAttribute("IDatabaseOptions_Name")>]
type IDatabaseOptions =  
    interface 
        interface IDmfFacet 
    end
public interface IDatabaseOptions extends IDmfFacet

Тип IDatabaseOptions обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство AnsiNullDefault Gets or sets a Boolean property value that specifies whether the ANSI_NULL_DEFAULT database option is active.
Открытое свойство AnsiNullsEnabled Gets or sets a Boolean property value that specifies whether the ANSI_NULLS_ENABLED database option is active.
Открытое свойство AnsiPaddingEnabled Gets or sets a Boolean property value that specifies whether the ANSI_PADDING_ENABLED database option is active.
Открытое свойство AnsiWarningsEnabled Gets or sets a Boolean property value that specifies whether the ANSI_WARNING_ENABLED database option is active.
Открытое свойство ArithmeticAbortEnabled Gets or sets a Boolean property value that specifies whether the ARITHMETICABORT database option is active.
Открытое свойство AutoClose Gets or sets a Boolean property value that specifies whether the AUTOCLOSE database option is active.
Открытое свойство AutoCreateStatisticsEnabled Gets or sets a Boolean property value that specifies whether the AUTOCREATESTATISTICS database option is active.
Открытое свойство AutoShrink Gets or sets a Boolean property value that specifies whether the AUTOSHRINK database option is active.
Открытое свойство AutoUpdateStatisticsAsync Gets or sets a Boolean property value that specifies whether the AUTOUPDATESTATISTICSASYNC database option is active.
Открытое свойство AutoUpdateStatisticsEnabled Specifies whether database statistics are automatically updated.
Открытое свойство BrokerEnabled Gets or sets a Boolean property value that specifies whether the Компонент Service Broker service is enabled.
Открытое свойство ChangeTrackingAutoCleanUp Gets or sets a Boolean property value that specifies whether the CHANGE_TRACKING_AUTO_CLEANUP OPTION is enabled.
Открытое свойство ChangeTrackingEnabled Gets or sets a value indicating whether change tracking is enabled.
Открытое свойство ChangeTrackingRetentionPeriod Gets or sets an interval that specifies how long change tracking information is retained.
Открытое свойство ChangeTrackingRetentionPeriodUnits Specifies the units for the change tracking retention period.
Открытое свойство CloseCursorsOnCommitEnabled Gets or sets a Boolean property value that specifies whether the CURSOR_CLOSE_ON_COMMIT database option is active.
Открытое свойство Collation Gets or sets the default collation used by the database.
Открытое свойство CompatibilityLevel Gets or sets the compatibility level for a database.
Открытое свойство ConcatenateNullYieldsNull Gets or sets a Boolean property value that specifies whether the CONCAT_NULL_YIELDS_NULL database option is active.
Открытое свойство CreateDate Gets the date and time at which the database was created.
Открытое свойство DatabaseOwnershipChaining Indicates whether property ownership chaining is active.
Открытое свойство DatabaseSnapshotBaseName Gets the name of shapshot base for the database.
Открытое свойство DateCorrelationOptimization Gets or sets a Boolean property value that specifies whether the date correlation optimization is active.
Открытое свойство DefaultFileGroup Gets the default file group used by the database.
Открытое свойство DefaultFileStreamFileGroup Gets the default stream file group used by the database.
Открытое свойство EncryptionEnabled Gets or sets a value indicating whether encryption is enabled for the database.
Открытое свойство HonorBrokerPriority Gets or sets a value that indicates whether the priority specified by the broker is acknowledged.
Открытое свойство ID Gets the database ID value.
Открытое свойство IsParameterizationForced Gets or sets a Boolean property value that specifies whether parameterization is forced on the database.
Открытое свойство IsReadCommittedSnapshotOn Gets a value that specifies whether transactions with the read committed isolation level use row versioning.
Открытое свойство IsSystemObject Specifies whether the database is a system object or a user-defined database.
Открытое свойство IsUpdateable Indicates whether the database is updateable.
Открытое свойство LocalCursorsDefault Gets the Boolean value that specifies whether the local server cursors are used by default.
Открытое свойство MirroringTimeout Gets or sets the maximum time, in seconds, that the principal server instance waits for a PING message from another instance in the mirroring session before assuming the other instance is disconnected.
Открытое свойство Name Gets the name of the database.
Открытое свойство NumericRoundAbortEnabled Gets or sets a Boolean property value that specifies whether the NUMERIC_ROUNDABORT database option is active.
Открытое свойство Owner Gets the the owner of the database.
Открытое свойство PageVerify Specifies the type of page integrity check that SQL Server performs when it reads database pages.
Открытое свойство PrimaryFilePath Gets the primary database file path.
Открытое свойство QuotedIdentifiersEnabled Gets or sets a Boolean property value that specifies whether identifiers delimited by double quotation marks (" ") are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules.
Открытое свойство ReadOnly Gets or sets the Boolean property value that specifies whether the database is read-only.
Открытое свойство RecoveryModel Gets or sets the recovery model for the database.
Открытое свойство RecursiveTriggersEnabled Gets or sets the Boolean value that specifies whether recursive triggers are enabled on the database.
Открытое свойство TargetRecoveryTime Gets or sets the target recovery time.
Открытое свойство Trustworthy The TRUSTWORTHY database property is used to indicate whether the instance of SQL Server trusts the database and the contents within it.
Открытое свойство UserAccess Gets or sets the database user access.

В начало

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Smo