Server.Restore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String, ReadWriteMode, Boolean)
根據密碼、覆寫標誌、多台遠端伺服器、安全設定、密碼、儲存位置及讀寫模式,將分析服務資料庫從備份檔案還原至指定資料庫。
public void Restore(string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password, string dbStorageLocation, Microsoft.AnalysisServices.ReadWriteMode readWriteMode, bool ignoreIncompatibilities);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string * string * Microsoft.AnalysisServices.ReadWriteMode * bool -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String, dbStorageLocation As String, readWriteMode As ReadWriteMode, ignoreIncompatibilities As Boolean)
參數
- file
- String
還原檔案的名稱和位置。
- databaseName
- String
還原到資料庫。
- allowOverwrite
- Boolean
true,表示資料庫若存在,將會被覆寫;否則,則為錯誤。
- locations
- RestoreLocation[]
一組 RestoreLocation 物件陣列,指定多個遠端伺服器要還原。
- security
- RestoreSecurity
一個 RestoreSecurity 物件,用來指定還原的安全設定。
- password
- String
用來解密還原檔案的密碼。
- dbStorageLocation
- String
檔案要還原的儲存位置。
- readWriteMode
- ReadWriteMode
資料庫的讀寫模式。
- ignoreIncompatibilities
- Boolean
是否忽略模型不相容性。
適用於
Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String, ReadWriteMode)
根據密碼、覆寫標誌、多台遠端伺服器、安全設定、密碼、儲存位置及讀寫模式,將分析服務資料庫從備份檔案還原至指定資料庫。
public void Restore(string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password, string dbStorageLocation, Microsoft.AnalysisServices.ReadWriteMode readWriteMode);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string * string * Microsoft.AnalysisServices.ReadWriteMode -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String, dbStorageLocation As String, readWriteMode As ReadWriteMode)
參數
- file
- String
還原檔案的名稱和位置。
- databaseName
- String
還原到資料庫。
- allowOverwrite
- Boolean
true,表示資料庫若存在,將會被覆寫;否則,則為錯誤。
- locations
- RestoreLocation[]
一組 RestoreLocation 物件陣列,指定多個遠端伺服器要還原。
- security
- RestoreSecurity
一個 RestoreSecurity 物件,用來指定還原的安全設定。
- password
- String
用來解密還原檔案的密碼。
- dbStorageLocation
- String
檔案要還原的儲存位置。
- readWriteMode
- ReadWriteMode
資料庫的讀寫模式。
適用於
Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String, String)
根據密碼、覆寫標誌、多台遠端伺服器、安全設定、密碼及儲存位置,將分析服務資料庫從備份檔案還原至指定的資料庫。
public void Restore(string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password, string dbStorageLocation);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string * string -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String, dbStorageLocation As String)
參數
- file
- String
還原檔案的名稱和位置。
- databaseName
- String
還原到資料庫。
- allowOverwrite
- Boolean
true,表示資料庫若存在,將會被覆寫;否則,則為錯誤。
- locations
- RestoreLocation[]
一組 RestoreLocation 物件陣列,指定多個遠端伺服器要還原。
- security
- RestoreSecurity
一個 RestoreSecurity 物件,用來指定還原的安全設定。
- password
- String
用來解密還原檔案的密碼。
- dbStorageLocation
- String
檔案要還原的儲存位置。
適用於
Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity, String)
在給定覆蓋標誌、多台遠端伺服器,以及指定安全設定與密碼後,將分析服務資料庫從備份檔案還原到指定的資料庫。
public void Restore(string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security, string password);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity * string -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity, password As String)
參數
- file
- String
還原檔案的名稱和位置。
- databaseName
- String
還原到資料庫。
- allowOverwrite
- Boolean
true,表示資料庫若存在,將會被覆寫;否則,則為錯誤。
- locations
- RestoreLocation[]
一組 RestoreLocation 物件陣列,指定多個遠端伺服器要還原。
- security
- RestoreSecurity
一個 RestoreSecurity 物件,用來指定還原的安全設定。
- password
- String
用來解密還原檔案的密碼。
適用於
Restore(String, String, Boolean, RestoreLocation[], RestoreSecurity)
將分析服務資料庫從備份檔案還原到指定的資料庫,條件是有覆寫標誌、多台遠端伺服器,並指定安全設定。
public void Restore(string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations, Microsoft.AnalysisServices.RestoreSecurity security);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] * Microsoft.AnalysisServices.RestoreSecurity -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation(), security As RestoreSecurity)
參數
- file
- String
還原檔案的名稱和位置。
- databaseName
- String
還原到資料庫。
- allowOverwrite
- Boolean
true,表示資料庫若存在,將會被覆寫;否則,則為錯誤。
- locations
- RestoreLocation[]
一組 RestoreLocation 物件陣列,指定多個遠端伺服器要還原。
- security
- RestoreSecurity
一個 RestoreSecurity 物件,用來指定還原的安全設定。
適用於
Restore(String, String, Boolean)
在給定覆蓋標誌後,將分析服務資料庫從備份檔案還原到指定的資料庫。
public void Restore(string file, string databaseName, bool allowOverwrite);
member this.Restore : string * string * bool -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean)
參數
- file
- String
還原檔案的名稱和位置。
- databaseName
- String
還原到資料庫。
- allowOverwrite
- Boolean
true,表示資料庫若存在,將會被覆寫;否則,則為錯誤。
適用於
Restore(String)
從備份檔案還原分析服務資料庫。
public void Restore(string file);
member this.Restore : string -> unit
Public Sub Restore (file As String)
參數
- file
- String
還原檔案的名稱和位置。
適用於
Restore(RestoreInfo)
利用提供的 RestoreInfo 物件設定的選項,從備份檔案還原分析服務資料庫。
public void Restore(Microsoft.AnalysisServices.RestoreInfo restoreInfo);
member this.Restore : Microsoft.AnalysisServices.RestoreInfo -> unit
Public Sub Restore (restoreInfo As RestoreInfo)
參數
- restoreInfo
- RestoreInfo
RestoreInfo 物件包含執行資料庫還原的選項。
適用於
Restore(String, String, Boolean, RestoreLocation[])
將分析服務資料庫從備份檔案還原到指定的資料庫,並給予覆寫標誌及多個遠端伺服器。
public void Restore(string file, string databaseName, bool allowOverwrite, Microsoft.AnalysisServices.RestoreLocation[] locations);
member this.Restore : string * string * bool * Microsoft.AnalysisServices.RestoreLocation[] -> unit
Public Sub Restore (file As String, databaseName As String, allowOverwrite As Boolean, locations As RestoreLocation())
參數
- file
- String
還原檔案的名稱和位置。
- databaseName
- String
還原到資料庫。
- allowOverwrite
- Boolean
true,表示資料庫若存在,將會被覆寫;否則,則為錯誤。
- locations
- RestoreLocation[]
一組 RestoreLocation 物件陣列,指定多個遠端伺服器要還原。