RestoreOptions.ReplaceDatabase 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
REPLACE 規定即使已有同名的資料庫,SQL Server 仍應建立指定的資料庫及其相關檔案。 在這種情況下,會刪除現有的資料庫。 如果沒有指定 REPLACE 選項,就會進行安全檢查。 這樣可避免意外覆寫不同的資料庫。
public bool ReplaceDatabase { get; set; }
member this.ReplaceDatabase : bool with get, set
Public Property ReplaceDatabase As Boolean
屬性值
true若 [取代資料庫];否則,。 false