RollbackOnFailure 屬性
取得或設定值,指定升級程序本身是否包裝於交易內,因而可以回復。如果這個選項設為 false,則對目前資料庫的所有變更都會認可,而不進行交易。
命名空間: Microsoft.SqlServer.Management.Dac
組件: Microsoft.SqlServer.Management.Dac (在 Microsoft.SqlServer.Management.Dac.dll 中)
語法
'宣告
Public Property RollbackOnFailure As Boolean
Get
Set
'用途
Dim instance As DacUpgradeOptions
Dim value As Boolean
value = instance.RollbackOnFailure
instance.RollbackOnFailure = value
public bool RollbackOnFailure { get; set; }
public:
property bool RollbackOnFailure {
bool get ();
void set (bool value);
}
member RollbackOnFailure : bool with get, set
function get RollbackOnFailure () : boolean
function set RollbackOnFailure (value : boolean)
屬性值
型別:System. . :: . .Boolean
如果發生錯誤時要回復升級,則為 true,否則為 false。