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 升級資料層應用程式.