次の方法で共有


レッスン 3: データベースの完全バックアップを Azure Blob Storage サービスに書き込む

このレッスンでは、tsql ステートメントを使用して、Azure Blob Storage サービスへのデータベースの完全バックアップを実行する方法について説明します。

Azure Blob Storage サービスへのデータベースの完全バックアップを実行する

データベースの完全バックアップを作成するには、次の手順に従います。

  1. SQL Server Management Studio に接続します。

  2. オブジェクト エクスプローラーで、SQL Server 2014 のインスタンスに接続します。

  3. [標準] メニュー バーの [ 新しいクエリ] をクリックします。

  4. 次の例をコピーしてクエリ ウィンドウに貼り付け、必要に応じて変更し、[ 実行] をクリックします。

    BACKUP DATABASE[AdventureWorks2012]   
    TO URL = 'https://mystorageaccount.blob.core.windows.net/privatecontainertest/AdventureWorks2012.bak'   
    /* URL includes the endpoint for the BLOB service, followed by the container name, and the name of the backup file*/   
    WITH CREDENTIAL = 'mycredential';  
    /* name of the credential you created in the previous step */   
    GO  
    
    
  5. オブジェクト エクスプローラーで、Azure Storage に接続します。 コンテナーと新しく作成されたバックアップ ファイルを参照して検索します。

次のレッスン

レッスン 4: データベースの完全バックアップからの復元を実行する