RestoreOptions.ReplaceDatabase 屬性

定義

REPLACE 規定即使已有同名的資料庫,SQL Server 仍應建立指定的資料庫及其相關檔案。 在這種情況下,會刪除現有的資料庫。 如果沒有指定 REPLACE 選項,就會進行安全檢查。 這樣可避免意外覆寫不同的資料庫。

public bool ReplaceDatabase { get; set; }
member this.ReplaceDatabase : bool with get, set
Public Property ReplaceDatabase As Boolean

屬性值

true若 [取代資料庫];否則,。 false

適用於