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


Элементы DatabaseOptions

The DatabaseOptions object represents SQL Server database options.

Тип DatabaseOptions предоставляет доступ к следующим элементам.

Методы

  Имя Описание
Защищенный метод AddDatabaseContext (Наследуется из SqlSmoObject.)
Открытый метод Alter() () () () Updates any DatabaseOptions object property changes on the instance of SQL Server. 
Открытый метод Alter(TimeSpan) Updates any DatabaseOptions object property changes on the instance of Microsoft SQL Server. 
Открытый метод Alter(TerminationClause) Updates any DatabaseOptions object property changes on the instance of SQL Server. 
Защищенный метод AlterImpl (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplInit (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод BindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод BindRuleImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckCollation (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectState() () () () Validates the state of the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectState(Boolean) Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectStateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion100 (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80 Checks the validity of the object on SQL Server 2000. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion90 Check the validity of the object on SQL Server 2005. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersionBelow90 (Наследуется из SqlSmoObject.)
Защищенный метод CleanObject (Наследуется из SqlSmoObject.)
Защищенный метод CreateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplInit (Наследуется из SqlSmoObject.)
Открытый метод Discover (Наследуется из SqlSmoObject.)
Защищенный метод DropImpl (Наследуется из SqlSmoObject.)
Защищенный метод DropImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод EnumScriptImpl (Наследуется из SqlSmoObject.)
Защищенный метод EnumScriptImplWorker (Наследуется из SqlSmoObject.)
Открытый метод Equals (Наследуется из Object.)
Защищенный метод Finalize (Наследуется из Object.)
Защищенный метод FormatSqlVariant (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceFileStreamScript (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindDefaultScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindRuleScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetDateTimeParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetDateTimeParameterAsInt (Наследуется из SqlSmoObject.)
Защищенный метод GetDBName Gets the database name that is associated with the object. (Наследуется из SqlSmoObject.)
Защищенный метод GetEnumParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetFragOptionString (Наследуется из SqlSmoObject.)
Защищенный метод GetGuidParameter (Наследуется из SqlSmoObject.)
Открытый метод GetHashCode (Наследуется из Object.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValue (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptional (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptionalAllowNull (Наследуется из SqlSmoObject.)
Защищенный метод GetRealValue (Наследуется из SqlSmoObject.)
Защищенный метод GetScriptingOptionsForCreate (Наследуется из SqlSmoObject.)
Защищенный метод GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetServerObject (Наследуется из SqlSmoObject.)
Защищенный метод GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetTimeSpanParameterAsInt (Наследуется из SqlSmoObject.)
Открытый метод GetType (Наследуется из Object.)
Защищенный метод GetUrnRecursive(StringBuilder) (Наследуется из SqlSmoObject.)
Защищенный метод GetUrnRecursive(StringBuilder, UrnIdOption) (Наследуется из SqlSmoObject.)
Защищенный метод ImplInitialize (Наследуется из SqlSmoObject.)
Открытый метод Initialize() () () () Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Открытый метод Initialize(Boolean) Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectDirty Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectInitialized Verifies whether the object has been initialized. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Наследуется из SqlSmoObject.)
Защищенный метод IsVersion80SP3 (Наследуется из SqlSmoObject.)
Защищенный метод MarkDropped (Наследуется из SqlSmoObject.)
Защищенный метод MarkForDropImpl (Наследуется из SqlSmoObject.)
Защищенный метод MemberwiseClone (Наследуется из Object.)
Защищенный метод PostAlter (Наследуется из SqlSmoObject.)
Защищенный метод PostCreate (Наследуется из SqlSmoObject.)
Защищенный метод PostDrop (Наследуется из SqlSmoObject.)
Открытый метод Refresh (Перезаписывает SqlSmoObject. . :: . .Refresh() () () ().)
Защищенный метод ScriptAlter (Наследуется из SqlSmoObject.)
Защищенный метод ScriptCreate (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDdl (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDrop (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl() () () () (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl(ScriptingOptions) (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод SetParentImpl (Наследуется из SqlSmoObject.)
Открытый метод SetSnapshotIsolation Sets the snapshot isolation level.
Открытый метод ToString Returns a String that represents the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод TouchImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindRuleImpl (Наследуется из SqlSmoObject.)
Открытый метод Validate (Наследуется из SmoObjectBase.)

В начало

Поля

  Имя Описание
Защищенное поле m_ExtendedProperties (Наследуется из SqlSmoObject.)

В начало

Свойства

  Имя Описание
Открытое свойство 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.
Открытое свойство AutoCreateStatistics 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.
Открытое свойство AutoUpdateStatistics Gets or sets a Boolean property value that specifies whether the AUTOUPDATESTATISTICS database option is active.
Открытое свойство AutoUpdateStatisticsAsync Gets or sets a Boolean property value that specifies whether the AUTOUPDATESTATISTICSASYNC database option is active.
Открытое свойство BrokerEnabled Gets or sets a Boolean property value that specifies whether the Service Broker service is enabled.
Открытое свойство CloseCursorsOnCommitEnabled Gets or sets a Boolean property value that specifies whether the CURSOR_CLOSE_ON_COMMIT database option is active.
Открытое свойство ConcatenateNullYieldsNull Gets or sets a Boolean property value that specifies whether the CONCAT_NULL_YIELDS_NULL database option is active.
Открытое свойство DatabaseOwnershipChaining Gets or sets a Boolean property value that specifies whether the database ownership chaining is active.
Открытое свойство DateCorrelationOptimization Gets or sets a Boolean property value that specifies whether the date correlation optimization is active.
Защищенное свойство ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Наследуется из SqlSmoObject.)
Открытое свойство IsParameterizationForced Gets or sets a Boolean property value that specifies whether parameterization is forced on the database.
Защищенное свойство IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Наследуется из SqlSmoObject.)
Открытое свойство LocalCursorsDefault Gets the Boolean value that specifies whether the local server cursors are used by default.
Открытое свойство MirroringRedoQueueMaxSize Gets or sets the maximum size of the redo queue of the mirror server instance in KB.
Открытое свойство 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.
Открытое свойство NumericRoundAbortEnabled Gets or sets a Boolean property value that specifies whether the NUMERIC_ROUNDABORT database option is active.
Защищенное свойство ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Наследуется из SqlSmoObject.)
Открытое свойство PageVerify Specifies the type of page integrity check that Microsoft SQL Server performs when reading database pages.
Открытое свойство Parent Gets the Database object that is the parent of the DatabaseOptions object.
Открытое свойство Properties
Открытое свойство 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.
Защищенное свойство ScalarResult Gets the scalar result for the referenced object. (Наследуется из SqlSmoObject.)
Открытое свойство SnapshotIsolationState Gets the snapshot isolation state for the database.
Открытое свойство State Gets the state of the referenced object. (Наследуется из SmoObjectBase.)
Открытое свойство Trustworthy The TRUSTWORTHY database property is used to indicate whether the instance of SQL Server trusts the database and the contents within it.
Открытое свойство Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Наследуется из SqlSmoObject.)
Открытое свойство UserAccess Gets or sets the database user access.
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Наследуется из SmoObjectBase.)

В начало

События

  Имя Описание
Открытое событие PropertyChanged (Наследуется из SqlSmoObject.)
Открытое событие PropertyMetadataChanged (Наследуется из SqlSmoObject.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод IAlienObjectDiscover (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetParent (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetProperty (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод ISfcPropertyProviderGetPropertySet (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetUrn (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectResolve (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectSetProperty (Наследуется из SqlSmoObject.)

В начало