Compartir a través de


Interfaz IDatabaseOptions

Interface with properties that expose database options.

Esta API no es compatible con CLS. 

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<CLSCompliantAttribute(False)> _
<DisplayDescriptionKeyAttribute("IDatabaseOptions_Desc")> _
<StateChangeEventAttribute("CREATE_DATABASE", "DATABASE")> _
<StateChangeEventAttribute("ALTER_DATABASE", "DATABASE")> _
<StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "DATABASE")> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None Or AutomatedPolicyEvaluationMode.CheckOnChanges Or AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")> _
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
<DisplayNameKeyAttribute("IDatabaseOptions_Name")> _
Public Interface IDatabaseOptions _
    Inherits IDmfFacet
'Uso
Dim instance As IDatabaseOptions
[CLSCompliantAttribute(false)]
[DisplayDescriptionKeyAttribute("IDatabaseOptions_Desc")]
[StateChangeEventAttribute("CREATE_DATABASE", "DATABASE")]
[StateChangeEventAttribute("ALTER_DATABASE", "DATABASE")]
[StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "DATABASE")]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[DisplayNameKeyAttribute("IDatabaseOptions_Name")]
public interface IDatabaseOptions : IDmfFacet
[CLSCompliantAttribute(false)]
[DisplayDescriptionKeyAttribute(L"IDatabaseOptions_Desc")]
[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)]
[LocalizedPropertyResourcesAttribute(L"Microsoft.SqlServer.Management.Smo.LocalizableResources")]
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
[DisplayNameKeyAttribute(L"IDatabaseOptions_Name")]
public interface class IDatabaseOptions : IDmfFacet
[<CLSCompliantAttribute(false)>]
[<DisplayDescriptionKeyAttribute("IDatabaseOptions_Desc")>]
[<StateChangeEventAttribute("CREATE_DATABASE", "DATABASE")>]
[<StateChangeEventAttribute("ALTER_DATABASE", "DATABASE")>]
[<StateChangeEventAttribute("ALTER_AUTHORIZATION_DATABASE", "DATABASE")>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.None|AutomatedPolicyEvaluationMode.CheckOnChanges|AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<LocalizedPropertyResourcesAttribute("Microsoft.SqlServer.Management.Smo.LocalizableResources")>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
[<DisplayNameKeyAttribute("IDatabaseOptions_Name")>]
type IDatabaseOptions =  
    interface
        interface IDmfFacet
    end
public interface IDatabaseOptions extends IDmfFacet

El tipo IDatabaseOptions expone los siguientes miembros.

Propiedades

  Nombre Descripción
Propiedad pública AnsiNullDefault Gets or sets a Boolean property value that specifies whether the ANSI_NULL_DEFAULT database option is active.
Propiedad pública AnsiNullsEnabled Gets or sets a Boolean property value that specifies whether the ANSI_NULLS_ENABLED database option is active.
Propiedad pública AnsiPaddingEnabled Gets or sets a Boolean property value that specifies whether the ANSI_PADDING_ENABLED database option is active.
Propiedad pública AnsiWarningsEnabled Gets or sets a Boolean property value that specifies whether the ANSI_WARNING_ENABLED database option is active.
Propiedad pública ArithmeticAbortEnabled Gets or sets a Boolean property value that specifies whether the ARITHMETICABORT database option is active.
Propiedad pública AutoClose Gets or sets a Boolean property value that specifies whether the AUTOCLOSE database option is active.
Propiedad pública AutoCreateStatisticsEnabled Gets or sets a Boolean property value that specifies whether the AUTOCREATESTATISTICS database option is active.
Propiedad pública AutoShrink Gets or sets a Boolean property value that specifies whether the AUTOSHRINK database option is active.
Propiedad pública AutoUpdateStatisticsAsync Gets or sets a Boolean property value that specifies whether the AUTOUPDATESTATISTICSASYNC database option is active.
Propiedad pública AutoUpdateStatisticsEnabled Specifies whether database statistics are automatically updated.
Propiedad pública BrokerEnabled Gets or sets a Boolean property value that specifies whether the Service Broker service is enabled.
Propiedad pública ChangeTrackingAutoCleanUp Gets or sets a Boolean property value that specifies whether the CHANGE_TRACKING_AUTO_CLEANUP OPTION is enabled.
Propiedad pública ChangeTrackingEnabled Gets or sets a value indicating whether change tracking is enabled.
Propiedad pública ChangeTrackingRetentionPeriod Gets or sets an interval that specifies how long change tracking information is retained.
Propiedad pública ChangeTrackingRetentionPeriodUnits Specifies the units for the change tracking retention period.
Propiedad pública CloseCursorsOnCommitEnabled Gets or sets a Boolean property value that specifies whether the CURSOR_CLOSE_ON_COMMIT database option is active.
Propiedad pública Collation Gets or sets the default collation used by the database.
Propiedad pública CompatibilityLevel Gets or sets the compatibility level for a database.
Propiedad pública ConcatenateNullYieldsNull Gets or sets a Boolean property value that specifies whether the CONCAT_NULL_YIELDS_NULL database option is active.
Propiedad pública CreateDate Gets the date and time at which the database was created.
Propiedad pública DatabaseOwnershipChaining Indicates whether property ownership chaining is active.
Propiedad pública DatabaseSnapshotBaseName Gets the name of shapshot base for the database.
Propiedad pública DateCorrelationOptimization Gets or sets a Boolean property value that specifies whether the date correlation optimization is active.
Propiedad pública DefaultFileGroup Gets the default file group used by the database.
Propiedad pública DefaultFileStreamFileGroup Gets the default stream file group used by the database.
Propiedad pública EncryptionEnabled Gets or sets a value indicating whether encryption is enabled for the database.
Propiedad pública HonorBrokerPriority Gets or sets a value that indicates whether the priority specified by the broker is acknowledged.
Propiedad pública ID Gets the database ID value.
Propiedad pública IsParameterizationForced Gets or sets a Boolean property value that specifies whether parameterization is forced on the database.
Propiedad pública IsReadCommittedSnapshotOn Gets a value that specifies whether transactions with the read committed isolation level use row versioning.
Propiedad pública IsSystemObject Specifies whether the database is a system object or a user-defined database.
Propiedad pública IsUpdateable Indicates whether the database is updateable.
Propiedad pública LocalCursorsDefault Gets the Boolean value that specifies whether the local server cursors are used by default.
Propiedad pública 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.
Propiedad pública Name Gets the name of the database.
Propiedad pública NumericRoundAbortEnabled Gets or sets a Boolean property value that specifies whether the NUMERIC_ROUNDABORT database option is active.
Propiedad pública Owner Gets the the owner of the database.
Propiedad pública PageVerify Specifies the type of page integrity check that SQL Server performs when it reads database pages.
Propiedad pública PrimaryFilePath Gets the primary database file path.
Propiedad pública 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.
Propiedad pública ReadOnly Gets or sets the Boolean property value that specifies whether the database is read-only.
Propiedad pública RecoveryModel Gets or sets the recovery model for the database.
Propiedad pública RecursiveTriggersEnabled Gets or sets the Boolean value that specifies whether recursive triggers are enabled on the database.
Propiedad pública Trustworthy The TRUSTWORTHY database property is used to indicate whether the instance of SQL Server trusts the database and the contents within it.
Propiedad pública UserAccess Gets or sets the database user access.

Arriba