JsonScripter.ScriptBackup 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
| ScriptBackup(Database, String) |
Creates a script to backup the database. |
| ScriptBackup(Database, String, String, Boolean, Boolean) |
Creates a script to backup the database. |
ScriptBackup(Database, String)
Creates a script to backup the database.
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
Name of a Tabular database.
- filePath
- String
Path of the backup file.
Returns
System.String containing a scripted Backup command.
Applies to
ScriptBackup(Database, String, String, Boolean, Boolean)
Creates a script to backup the database.
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
Name of a Tabular database.
- 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, False otherwise.
- applyCompression
- Boolean
True if compression is to be used, False otherwise.
Returns
System.String containing a scripted Backup command.