このレッスンでは、tsql ステートメントを使用して、Azure Blob Storage サービスへのデータベースの完全バックアップを実行する方法について説明します。
Azure Blob Storage サービスへのデータベースの完全バックアップを実行する
データベースの完全バックアップを作成するには、次の手順に従います。
SQL Server Management Studio に接続します。
オブジェクト エクスプローラーで、SQL Server 2014 のインスタンスに接続します。
[標準] メニュー バーの [ 新しいクエリ] をクリックします。
次の例をコピーしてクエリ ウィンドウに貼り付け、必要に応じて変更し、[ 実行] をクリックします。
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
オブジェクト エクスプローラーで、Azure Storage に接続します。 コンテナーと新しく作成されたバックアップ ファイルを参照して検索します。