枚举更改数据库中指定的选项类型Transact-SQL语句。
命名空间:  Microsoft.Data.Schema.ScriptDom.Sql
程序集:  Microsoft.Data.Schema.ScriptDom.Sql(在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)
语法
声明
Public Enumeration AlterDatabaseOptionKind
public enum AlterDatabaseOptionKind
public enum class AlterDatabaseOptionKind
type AlterDatabaseOptionKind
public enum AlterDatabaseOptionKind
成员
| 成员名称 | 说明 | |
|---|---|---|
| Online | 值为 0 | |
| Offline | 值为 1 | |
| Emergency | 值为 2 | |
| SingleUser | 值为 3 | |
| RestrictedUser | 值为 4 | |
| MultiUser | 值为 5 | |
| ReadOnly | 值为 6 | |
| ReadWrite | 值为 7 | |
| EnableBroker | 值为 8 | |
| DisableBroker | 值为 9 | |
| NewBroker | 值为 10 | |
| ErrorBrokerConversations | 值为 11 | |
| DBChaining | 值为 12 | |
| Trustworthy | 值为 13 | |
| CursorCloseOnCommit | 值为 14 | |
| AutoClose | 值为 15 | |
| AutoCreateStatistics | 值为 16 | |
| AutoShrink | 值为 17 | |
| AutoUpdateStatistics | 值为 18 | |
| AutoUpdateStatisticsAsync | 值为 19 | |
| AnsiNullDefault | 20 | |
| AnsiNulls | 值为 21 | |
| AnsiPadding | 值为 22 | |
| AnsiWarnings | 值为 23 | |
| ArithAbort | 值为 24 | |
| ConcatNullYieldsNull | 值为 25 | |
| NumericRoundAbort | 值为 26 | |
| QuotedIdentifier | 值为 27 | |
| RecursiveTriggers | 值为 28 | |
| TornPageDetection | 值为 29 | |
| DateCorrelationOptimization | 值为 30 | |
| AllowSnapshotIsolation | 值为 31 | |
| ReadCommittedSnapshot | 值为 32 | |
| Encryption | 值为 33 | |
| HonorBrokerPriority | 值为 34 | |
| VarDecimalStorageFormat | ||
| SupplementalLogging | 
备注
0–11 的值是简单选项。 12–32 的值是 on/off 选项。 33–35 的值是 SQL Server 2008 特有的开/关选项。