使用 Data Migration Assistant (DMA) 移轉 Azure SQL DataBase

Data Migration Assistant (DMA) 是微軟提供的 SQL Server 資料庫與帳戶移轉工具,本篇文章將介紹,如何一步一步將已經部屬在AWS上的SQL DataBase 無痛移轉到 Azure SQL DataBase上。

image


下載安裝

我們可以直接從 Microsoft® 官方網站,下載最新發布的Data Migration Assistant v5.5安裝檔。

image

移轉資料庫

Step 1. 安裝完成後,開啟DMA工具,點擊左側功能列的【+】建立第一個移轉Project。

image

Step 2. 在左窗格中,Project name 可自行設定此次移轉的名稱,Project type選取 【Migration】,將Source server type設定為 【SQL Server】,並將Target server type 設定為 【Azure SQL Database】,Migration scope選取 【Schema and data】,設定完成後選擇建立。

image

Step 3. 指定來源伺服器和資料庫 【Connect to source server】,將Authentication type選擇【SQL Server Authentication 】,建立來源伺服器連線。

image

Step 4. 選取要遷移至 Azure SQL Database 的資料庫。

image

Step 5. 指定目標伺服器和資料庫 【Connect to target server】,將Authentication type選擇【SQL Server Authentication 】,建立目標伺服器連線後,選取要移轉至的目標資料庫。

image

Step 6. 從來源資料庫中,選取要遷移至 Azure SQL Database 的結構描述物件。

image

Step 7. 開始產生來源Script語法。

image

Step 8. 檢查產生的腳本Script語法。

image

Step 9. 開始資料移轉,最後會顯示完整狀態,確認移轉成功。

image


將AWS SQL DataBase移轉至Azure SQL DataBase,透過DMA工具,除了Schema 還包含資料,整個完整移轉的過程不到5分鐘就完成了,最後回到 SSMS 檢查目標資料庫,確認所有資料移轉完成。


  • 參考文章

Microsoft® DMA

Microsoft-將 SQL Server 移轉至 Azure SQL Database

tags: SQL SERVER

留言板
歷史留言

標籤