Udostępnij za pośrednictwem


JsonScripter.ScriptBackup Method

Definition

Overloads

ScriptBackup(Database, String)

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

ScriptBackup(Database, String, String, Boolean, Boolean)

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

ScriptBackup(Database, String)

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

public static string ScriptBackup (Microsoft.AnalysisServices.Core.Database db, string filePath);
static member ScriptBackup : Microsoft.AnalysisServices.Core.Database * string -> string
Public Shared Function ScriptBackup (db As Database, filePath As String) As String

Parameters

db
Database

The tabular database to script.

filePath
String

Path of the backup file.

Returns

A String containing the Backup command.

Applies to

ScriptBackup(Database, String, String, Boolean, Boolean)

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

public static string ScriptBackup (Microsoft.AnalysisServices.Core.Database db, string filePath, string password, bool allowOverwrite, bool applyCompression);
static member ScriptBackup : Microsoft.AnalysisServices.Core.Database * string * string * bool * bool -> string
Public Shared Function ScriptBackup (db As Database, filePath As String, password As String, allowOverwrite As Boolean, applyCompression As Boolean) As String

Parameters

db
Database

The tabular database to script.

filePath
String

Path of the backup file.

password
String

The password text to apply to the backup.

allowOverwrite
Boolean

True, if overwrite of the target is enabled; otherwise, false.

applyCompression
Boolean

True if compression is to be used; otherwise, false.

Returns

A String containing the Backup command.

Applies to