JsonScripter.ScriptRestore Method

Definition

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

String

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

String

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

String

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.

ignoreIncompatibilities
Nullable<Boolean>

Ignore incompatibility during restore

Returns

String

System.String containing the Restore script.

Applies to