JsonScripter.ScriptRestore JsonScripter.ScriptRestore JsonScripter.ScriptRestore Method

Definition

Overloads

ScriptRestore(String, String) ScriptRestore(String, String) ScriptRestore(String, String)

Creates a script to restore the database.

ScriptRestore(String, String, Boolean, String, String, ReadWriteMode) ScriptRestore(String, String, Boolean, String, String, ReadWriteMode)

Creates a script to restore the database.

ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity) ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity)

Creates a script to restore the database.

ScriptRestore(String, String) ScriptRestore(String, String) 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 String String

The name and location of the file to restore.

databaseName
String String String

Name of the database to restore.

Returns

System.String containing the Restore script.

ScriptRestore(String, String, Boolean, String, String, ReadWriteMode) 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

Parameters

filePath
String String String

The name and location of the file to restore.

databaseName
String String String

The database to restore.

allowOverwrite
Boolean Boolean Boolean

True if the database should be overwritten, False otherwise.

password
String String String

The password to use to decrypt the restoration file.

dbStorageLocation
String String String

The storage location for the file to restore.

readWriteMode
ReadWriteMode ReadWriteMode ReadWriteMode

The read/write mode of the database.

Returns

System.String containing the Restore script.

ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity) 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

Parameters

filePath
String String String

The name and location of the file to restore.

databaseName
String String String

The database to restore.

allowOverwrite
Boolean Boolean Boolean

True if the database should be overwritten, False otherwise.

password
String String String

The password to use to decrypt the restoration file.

dbStorageLocation
String String String

The storage location for the file to restore.

readWriteMode
ReadWriteMode ReadWriteMode ReadWriteMode

The read/write mode of the database.

restoreSecurity
RestoreSecurity RestoreSecurity RestoreSecurity

Security options for restoring the database.

Returns

System.String containing the Restore script.

Applies to