JsonScripter.ScriptRestore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ScriptRestore(RestoreInfo) |
将给定表格数据库还原信息脚本化到 Restore 命令中。 |
ScriptRestore(String, String) |
使用指定的备份位置将给定表格数据库信息脚本化到 Restore 命令中。 |
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode) |
使用指定的备份位置和附加的可选设置,将给定的表格数据库信息脚本化到 Restore 命令中。 |
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity) |
使用指定的备份位置和附加的可选设置,将给定的表格数据库信息脚本化到 Restore 命令中。 |
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity, Nullable<Boolean>) |
使用指定的备份位置和附加的可选设置,将给定的表格数据库信息脚本化到 Restore 命令中。 |
ScriptRestore(RestoreInfo)
将给定表格数据库还原信息脚本化到 Restore 命令中。
public static string ScriptRestore (Microsoft.AnalysisServices.RestoreInfo restoreInfo);
static member ScriptRestore : Microsoft.AnalysisServices.RestoreInfo -> string
Public Shared Function ScriptRestore (restoreInfo As RestoreInfo) As String
参数
- restoreInfo
- RestoreInfo
用于执行数据库还原的信息和选项。
返回
包含 String Restore 命令的 。
适用于
ScriptRestore(String, String)
使用指定的备份位置将给定表格数据库信息脚本化到 Restore 命令中。
public static string ScriptRestore (string filePath, string databaseName);
static member ScriptRestore : string * string -> string
Public Shared Function ScriptRestore (filePath As String, databaseName As String) As String
参数
- filePath
- String
要还原的文件的位置。
- databaseName
- String
要还原的数据库的名称。
返回
包含 String Restore 命令的 。
适用于
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode)
使用指定的备份位置和附加的可选设置,将给定的表格数据库信息脚本化到 Restore 命令中。
public static string ScriptRestore (string filePath, string databaseName, bool allowOverwrite, string password, string dbStorageLocation, Microsoft.AnalysisServices.ReadWriteMode readWriteMode);
static member ScriptRestore : string * string * bool * string * string * Microsoft.AnalysisServices.ReadWriteMode -> string
Public Shared Function ScriptRestore (filePath As String, databaseName As String, allowOverwrite As Boolean, password As String, dbStorageLocation As String, readWriteMode As ReadWriteMode) As String
参数
- filePath
- String
要还原的文件的位置。
- databaseName
- String
要还原的数据库的名称。
- allowOverwrite
- Boolean
如果应覆盖数据库,则为 True;否则为 false。
- password
- String
用于对还原文件进行解密的密码。
- dbStorageLocation
- String
还原的数据库的存储位置。
- readWriteMode
- ReadWriteMode
数据库的读/写模式。
返回
包含 String Restore 命令的 。
适用于
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity)
使用指定的备份位置和附加的可选设置,将给定的表格数据库信息脚本化到 Restore 命令中。
public static string ScriptRestore (string filePath, string databaseName, bool allowOverwrite, string password, string dbStorageLocation, Microsoft.AnalysisServices.ReadWriteMode readWriteMode, Microsoft.AnalysisServices.RestoreSecurity restoreSecurity);
static member ScriptRestore : string * string * bool * string * string * Microsoft.AnalysisServices.ReadWriteMode * Microsoft.AnalysisServices.RestoreSecurity -> string
Public Shared Function ScriptRestore (filePath As String, databaseName As String, allowOverwrite As Boolean, password As String, dbStorageLocation As String, readWriteMode As ReadWriteMode, restoreSecurity As RestoreSecurity) As String
参数
- filePath
- String
要还原的文件的位置。
- databaseName
- String
要还原的数据库的名称。
- allowOverwrite
- Boolean
如果应覆盖数据库,则为 True;否则为 false。
- password
- String
用于对还原文件进行解密的密码。
- dbStorageLocation
- String
还原的数据库的存储位置。
- readWriteMode
- ReadWriteMode
数据库的读/写模式。
- restoreSecurity
- RestoreSecurity
还原数据库的安全选项。
返回
包含 String Restore 命令的 。
适用于
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity, Nullable<Boolean>)
使用指定的备份位置和附加的可选设置,将给定的表格数据库信息脚本化到 Restore 命令中。
public static string ScriptRestore (string filePath, string databaseName, bool allowOverwrite, string password, string dbStorageLocation, Microsoft.AnalysisServices.ReadWriteMode readWriteMode, Microsoft.AnalysisServices.RestoreSecurity restoreSecurity, bool? ignoreIncompatibilities);
static member ScriptRestore : string * string * bool * string * string * Microsoft.AnalysisServices.ReadWriteMode * Microsoft.AnalysisServices.RestoreSecurity * Nullable<bool> -> string
Public Shared Function ScriptRestore (filePath As String, databaseName As String, allowOverwrite As Boolean, password As String, dbStorageLocation As String, readWriteMode As ReadWriteMode, restoreSecurity As RestoreSecurity, ignoreIncompatibilities As Nullable(Of Boolean)) As String
参数
- filePath
- String
要还原的文件的位置。
- databaseName
- String
要还原的数据库的名称。
- allowOverwrite
- Boolean
如果应覆盖数据库,则为 True;否则为 false。
- password
- String
用于对还原文件进行解密的密码。
- dbStorageLocation
- String
还原的数据库的存储位置。
- readWriteMode
- ReadWriteMode
数据库的读/写模式。
- restoreSecurity
- RestoreSecurity
还原数据库的安全选项。
返回
包含 String Restore 命令的 。