次の方法で共有


Backup メソッド (String, Boolean, Boolean, BackupLocation[], Boolean, String)

6 個のパラメータを使用した Database のバックアップ操作にプログラムからアクセスできるようにします。

名前空間:  Microsoft.AnalysisServices
アセンブリ:  Microsoft.AnalysisServices (Microsoft.AnalysisServices.dll)

構文

'宣言
Public Sub Backup ( _
    file As String, _
    allowOverwrite As Boolean, _
    backupRemotePartitions As Boolean, _
    locations As BackupLocation(), _
    applyCompression As Boolean, _
    password As String _
)
'使用
Dim instance As Database
Dim file As String
Dim allowOverwrite As Boolean
Dim backupRemotePartitions As Boolean
Dim locations As BackupLocation()
Dim applyCompression As Boolean
Dim password As String

instance.Backup(file, allowOverwrite, _
    backupRemotePartitions, locations, _
    applyCompression, password)
public void Backup(
    string file,
    bool allowOverwrite,
    bool backupRemotePartitions,
    BackupLocation[] locations,
    bool applyCompression,
    string password
)
public:
void Backup(
    String^ file, 
    bool allowOverwrite, 
    bool backupRemotePartitions, 
    array<BackupLocation^>^ locations, 
    bool applyCompression, 
    String^ password
)
member Backup : 
        file:string * 
        allowOverwrite:bool * 
        backupRemotePartitions:bool * 
        locations:BackupLocation[] * 
        applyCompression:bool * 
        password:string -> unit 
public function Backup(
    file : String, 
    allowOverwrite : boolean, 
    backupRemotePartitions : boolean, 
    locations : BackupLocation[], 
    applyCompression : boolean, 
    password : String
)

パラメーター

  • allowOverwrite
    型: System. . :: . .Boolean
    対象の上書きが有効な場合は true、無効な場合は false です。
  • backupRemotePartitions
    型: System. . :: . .Boolean
    リモート パーティションがバックアップの対象となる場合は true、それ以外の場合は false です。 
  • locations
    型: array<Microsoft.AnalysisServices. . :: . .BackupLocation> [] () [] []
    locations を指定した場合、リモート パーティションはこのパラメータで指定されたファイル名を使用してサーバーにバックアップされます。 
  • applyCompression
    型: System. . :: . .Boolean
    圧縮を使用する場合は true、使用しない場合は false です。
  • password
    型: System. . :: . .String
    バックアップに適用するパスワードのテキストです。

説明

セキュリティに関する注意セキュリティに関する注意

バックアップ ファイルごとに、バックアップ コマンドを実行するユーザーは、各ファイルに指定されたバックアップ場所に対する書き込み権限を持っている必要があります。また、Analysis Services インスタンスのサーバー ロールのメンバであるか、バックアップするデータベースに対してフル コントロール (管理者) 権限を持つデータベース ロールのメンバであることが条件となります。