IgnoreDrift 属性

注意:此 API 现在已过时。

获取和设置“忽略偏差”升级选项。

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

语法

声明
<ObsoleteAttribute("Please use BlockOnChanges")> _
Public Property IgnoreDrift As Boolean
    Get
    Set
用法
Dim instance As DacUpgradeOptions
Dim value As Boolean

value = instance.IgnoreDrift

instance.IgnoreDrift = value
[ObsoleteAttribute("Please use BlockOnChanges")]
public bool IgnoreDrift { get; set; }
[ObsoleteAttribute(L"Please use BlockOnChanges")]
public:
property bool IgnoreDrift {
    bool get ();
    void set (bool value);
}
[<ObsoleteAttribute("Please use BlockOnChanges")>]
member IgnoreDrift : bool with get, set
function get IgnoreDrift () : boolean
function set IgnoreDrift (value : boolean)

属性值

类型:System. . :: . .Boolean
一个 Boolean 值,该值指定在检测到偏差时升级采取的操作。如果为 True,则升级将继续执行,而不管数据库中发现的可能导致某些数据从升级的数据库中缺失的更改。只有在您以前已经分析了这些更改并且计划好手动迁移数据的情况下,才指定 True。如果为 False,则升级在它检测到偏差后将停止。

注释

Drift is marked by changes made to a database after a DAC is deployed, such that the database schema is now different than the original schema defined in the DAC type. If tables have been added or changed, such as by using CREATE TABLE or ALTER TABLE statements, the tables or their data may not be moved to the upgraded database. They will be present in the original database that is preserved by the upgrade, so you can move the data manually. For more information, see 升级数据层应用程序.