次の方法で共有


Database.Backup メソッド (String, Boolean, Boolean, array<BackupLocation )

file パラメーター、AllowOverWrite パラメーター、BackupRemotePartitions パラメーター、および locations パラメーターを使用した Database のバックアップ操作にプログラムからアクセスできるようにします。

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

構文

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

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

パラメーター

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

説明

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

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

関連項目

参照

Database クラス

Backup オーバーロード

Microsoft.AnalysisServices 名前空間