Database.ChangeTrackingEnabled 属性

Gets or sets a value that specifies whether the CHANGE_TRACKING_VALUE option is enabled

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy)> _
Public Property ChangeTrackingEnabled As Boolean 
    Get 
    Set
用法
Dim instance As Database 
Dim value As Boolean 

value = instance.ChangeTrackingEnabled

instance.ChangeTrackingEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy)]
public bool ChangeTrackingEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::Deploy)]
public:
virtual property bool ChangeTrackingEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy)>]
abstract ChangeTrackingEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy)>]
override ChangeTrackingEnabled : bool with get, set
final function get ChangeTrackingEnabled () : boolean 
final function set ChangeTrackingEnabled (value : boolean)

属性值

类型:System.Boolean
A Boolean value that specifies whether the change tracking information is saved.

实现

IDatabaseOptions.ChangeTrackingEnabled

注释

Use to enable or disable change tracking for the database. To enable change tracking, you must have permission to modify the database. Setting ChangeTrackingEnabled to True sets a database option that allows change tracking to be enabled on individual tables.

请参阅

参考

Database 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

启用和禁用更改跟踪 (SQL Server)