JsonScripter.ScriptRestore Method

Definition

Overloads

ScriptRestore(RestoreInfo)

Scripts out a given tabular database restore information into a Restore command.

ScriptRestore(String, String)

Scripts out a given tabular database information into a Restore command using the specified backup location.

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

Scripts out a given tabular database information into a Restore command using the specified backup location and additional optional settings.

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

Scripts out a given tabular database information into a Restore command using the specified backup location and additional optional settings.

ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity, Nullable<Boolean>)

Scripts out a given tabular database information into a Restore command using the specified backup location and additional optional settings.

ScriptRestore(RestoreInfo)

Scripts out a given tabular database restore information into a Restore command.

public static string ScriptRestore (Microsoft.AnalysisServices.RestoreInfo restoreInfo);
static member ScriptRestore : Microsoft.AnalysisServices.RestoreInfo -> string
Public Shared Function ScriptRestore (restoreInfo As RestoreInfo) As String

Parameters

restoreInfo
RestoreInfo

The information and options for performing the database restoration.

Returns

A String containing the Restore command.

Applies to

ScriptRestore(String, String)

Scripts out a given tabular database information into a Restore command using the specified backup location.

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 location of the file to restore.

databaseName
String

Name of the database to restore.

Returns

A String containing the Restore command.

Applies to

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

Scripts out a given tabular database information into a Restore command using the specified backup location and additional optional settings.

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 location of the file to restore.

databaseName
String

Name of the database to restore.

allowOverwrite
Boolean

True if the database should be overwritten; otherwise, false.

password
String

The password to use to decrypt the restoration file.

dbStorageLocation
String

The storage location for the restored database.

readWriteMode
ReadWriteMode

The read/write mode of the database.

Returns

A String containing the Restore command.

Applies to

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

Scripts out a given tabular database information into a Restore command using the specified backup location and additional optional settings.

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 location of the file to restore.

databaseName
String

Name of the database to restore.

allowOverwrite
Boolean

True if the database should be overwritten; otherwise, false.

password
String

The password to use to decrypt the restoration file.

dbStorageLocation
String

The storage location for the restored database.

readWriteMode
ReadWriteMode

The read/write mode of the database.

restoreSecurity
RestoreSecurity

Security options for restoring the database.

Returns

A String containing the Restore command.

Applies to

ScriptRestore(String, String, Boolean, String, String, ReadWriteMode, RestoreSecurity, Nullable<Boolean>)

Scripts out a given tabular database information into a Restore command using the specified backup location and additional optional settings.

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 location of the file to restore.

databaseName
String

Name of the database to restore.

allowOverwrite
Boolean

True if the database should be overwritten; otherwise, false.

password
String

The password to use to decrypt the restoration file.

dbStorageLocation
String

The storage location for the restored database.

readWriteMode
ReadWriteMode

The read/write mode of the database.

restoreSecurity
RestoreSecurity

Security options for restoring the database.

ignoreIncompatibilities
Nullable<Boolean>

True, if incompatibility should be ignored during restore; otherwise, false.

Returns

A String containing the Restore command.

Applies to