JsonScripter.ScriptRestore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ScriptRestore(String, String) |
Creates a script to restore the database. |
| ScriptRestore(String, String, Boolean, String, String, ReadWriteMode) |
Creates a script to restore the database. |
| ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity) |
Creates a script to restore the database. |
| ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity, Nullable<Boolean>) |
Creates a script to restore the database. |
ScriptRestore(String, String)
Creates a script to restore the database.
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
Parameters
- filePath
- String
The name and location of the file to restore.
- databaseName
- String
Name of the database to restore.
Returns
System.String containing the Restore script.
Applies to
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode)
Creates a script to restore the database.
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
Parameters
- filePath
- String
The name and location of the file to restore.
- databaseName
- String
The database to restore.
- allowOverwrite
- Boolean
True if the database should be overwritten, False otherwise.
- password
- String
The password to use to decrypt the restoration file.
- dbStorageLocation
- String
The storage location for the file to restore.
- readWriteMode
- ReadWriteMode
The read/write mode of the database.
Returns
System.String containing the Restore script.
Applies to
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity)
Creates a script to restore the database.
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
Parameters
- filePath
- String
The name and location of the file to restore.
- databaseName
- String
The database to restore.
- allowOverwrite
- Boolean
True if the database should be overwritten, False otherwise.
- password
- String
The password to use to decrypt the restoration file.
- dbStorageLocation
- String
The storage location for the file to restore.
- readWriteMode
- ReadWriteMode
The read/write mode of the database.
- restoreSecurity
- RestoreSecurity
Security options for restoring the database.
Returns
System.String containing the Restore script.
Applies to
ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity, Nullable<Boolean>)
Creates a script to restore the database.
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
Parameters
- filePath
- String
The name and location of the file to restore.
- databaseName
- String
The database to restore.
- allowOverwrite
- Boolean
True if the database should be overwritten, False otherwise.
- password
- String
The password to use to decrypt the restoration file.
- dbStorageLocation
- String
The storage location for the file to restore.
- readWriteMode
- ReadWriteMode
The read/write mode of the database.
- restoreSecurity
- RestoreSecurity
Security options for restoring the database.
Returns
System.String containing the Restore script.