Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Database.Backup Method

 

Applies To: SQL Server 2016 Preview

Provides programmatic access to Backup operations for a Database.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

NameDescription
System_CAPS_pubmethodBackup(BackupInfo)

Provides programmatic access to Backup operations for a Database with BackupInfo parameter.

System_CAPS_pubmethodBackup(String)

Provides programmatic access to Backup operations for a Database with file parameter.

System_CAPS_pubmethodBackup(String, Boolean)

Provides programmatic access to Backup operations for a Database with file and AllowOverWrite parameters.

System_CAPS_pubmethodBackup(String, Boolean, Boolean)

Provides programmatic access to Backup operations for a Database with file, AllowOverWrite, and BackupRemotePartitions parameters.

System_CAPS_pubmethodBackup(String, Boolean, Boolean, BackupLocation[])

Provides programmatic access to backup operations for a Database with file, AllowOverWrite, BackupRemotePartitions, and locations parameters.

System_CAPS_pubmethodBackup(String, Boolean, Boolean, BackupLocation[], Boolean)

Provides programmatic access to backup operations for a Database with five parameters.

System_CAPS_pubmethodBackup(String, Boolean, Boolean, BackupLocation[], Boolean, String)

Provides programmatic access to Backup operations for a Database with six parameters.

Return to top

Database.Backup Method (BackupInfo)

Provides programmatic access to Backup operations for a Database with BackupInfo parameter.

public void Backup(
	BackupInfo backupInfo
)

Parameters

backupInfo
Type: Microsoft.AnalysisServices.BackupInfo

Contains parameters to be applied during backup of a Database.

System_CAPS_security Security Note

For each backup file, the user who runs the backup command must have permission to write to the backup location specified for each file. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance, or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.

Return to top

Database.Backup Method (String)

Provides programmatic access to Backup operations for a Database with file parameter.

public void Backup(
	string file
)

Parameters

file
Type: System.String

A file containing the parameters to be applied during backup of a Database.

System_CAPS_security Security Note

For each backup file, the user who runs the backup command must have permission to write to the backup location specified for each file. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.

Return to top

Database.Backup Method (String, Boolean)

Provides programmatic access to Backup operations for a Database with file and AllowOverWrite parameters.

public void Backup(
	string file,
	bool allowOverwrite
)

Parameters

file
Type: System.String

A file containing the parameters to be applied during backup of a Database.

allowOverwrite
Type: System.Boolean

true if overwrite is allowed; otherwise, false.

System_CAPS_security Security Note

For each backup file, the user who runs the backup command must have permission to write to the backup location specified for each file. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.

Return to top

Database.Backup Method (String, Boolean, Boolean)

Provides programmatic access to Backup operations for a Database with file, AllowOverWrite, and BackupRemotePartitions parameters.

public void Backup(
	string file,
	bool allowOverwrite,
	bool backupRemotePartitions
)

Parameters

file
Type: System.String

A file containing the parameters to be applied during backup of a Database.

allowOverwrite
Type: System.Boolean

true if overwrite is allowed; otherwise, false.

backupRemotePartitions
Type: System.Boolean

true if remote partitions are subject to backup; otherwise, false.

System_CAPS_security Security Note

For each backup file, the user who runs the backup command must have permission to write to the backup location specified for each file. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.

Return to top

Database.Backup Method (String, Boolean, Boolean, BackupLocation[])

Provides programmatic access to backup operations for a Database with file, AllowOverWrite, BackupRemotePartitions, and locations parameters.

public void Backup(
	string file,
	bool allowOverwrite,
	bool backupRemotePartitions,
	BackupLocation[] locations
)

Parameters

file
Type: System.String

A file containing the parameters to be applied during backup of a Database.

allowOverwrite
Type: System.Boolean

true if overwrite is allowed; otherwise, false.

backupRemotePartitions
Type: System.Boolean

true if remote partitions are subject to backup; otherwise, false.

locations
Type: Microsoft.AnalysisServices.BackupLocation[]

If locations is specified, then remote partitions are backed up on their servers using the same file name as defined in this parameter.

System_CAPS_security Security Note

For each backup file, the user who runs the backup command must have permission to write to the backup location specified for each file. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.

Return to top

Database.Backup Method (String, Boolean, Boolean, BackupLocation[], Boolean)

Provides programmatic access to backup operations for a Database with five parameters.

public void Backup(
	string file,
	bool allowOverwrite,
	bool backupRemotePartitions,
	BackupLocation[] locations,
	bool applyCompression
)

Parameters

file
Type: System.String

Name of the file.

allowOverwrite
Type: System.Boolean

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

backupRemotePartitions
Type: System.Boolean

true if remote partitions are subject to backup; otherwise, false.

locations
Type: Microsoft.AnalysisServices.BackupLocation[]

If locations is specified, then remote partitions are backed up on their servers using the same file name as defined in this parameter.

applyCompression
Type: System.Boolean

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

System_CAPS_security Security Note

For each backup file, the user who runs the backup command must have permission to write to the backup location specified for each file. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.

Return to top

Database.Backup Method (String, Boolean, Boolean, BackupLocation[], Boolean, String)

Provides programmatic access to Backup operations for a Database with six parameters.

public void Backup(
	string file,
	bool allowOverwrite,
	bool backupRemotePartitions,
	BackupLocation[] locations,
	bool applyCompression,
	string password
)

Parameters

file
Type: System.String

Name of the file.

allowOverwrite
Type: System.Boolean

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

backupRemotePartitions
Type: System.Boolean

true if remote partitions are subject to backup; otherwise, false.

locations
Type: Microsoft.AnalysisServices.BackupLocation[]

If locations is specified, then remote partitions are backed up on their servers using the same file name as defined in this parameter.

applyCompression
Type: System.Boolean

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

password
Type: System.String

The password text to apply to the backup.

System_CAPS_security Security Note

For each backup file, the user who runs the backup command must have permission to write to the backup location specified for each file. Also, the user must have one of the following roles: a member of a server role for the Analysis Services instance or a member of a database role with Full Control (Administrator) permissions on the database to be backed up.

Return to top
Show:
© 2015 Microsoft