Database Migration Service を使用して SQL Server データベースを Cloud SQL for SQL Server インスタンスに移行するには、バックアップと復元のフローを使用します。まず、データベースの完全バックアップとトランザクション ログ ファイルを Cloud Storage バケットにアップロードします。その後、Database Migration Service はバケットをアクティブにモニタリングし、宛先の Cloud SQL for SQL Server インスタンスにデータを継続的に複製します。
このページでは、同種の SQL Server 移行に使用できる Database Migration Service の主な機能の概要について説明します。
サポートされている移行元と移行先に、Database Migration Service でサポートされているすべての SQL Server バージョンを示します。
継続的な移行データフローは、移行プロセス中にデータがどのように移動するかをエンドツーエンドで概説しています。 Google Cloud
Encryption では、暗号化された SQL Server バックアップ ファイルを使用して移行する方法について説明します。
サポートされているソースと宛先のデータベース
Database Migration Service を使用すると、バージョンの互換性ガイドラインに従っている限り、同じ SQL Server のバージョンとエディションの間、または以前のバージョンの SQL Server から Cloud SQL でサポートされている新しいバージョンに移行できます。詳細については、Microsoft のドキュメントで、ご使用の SQL Server バージョンでサポートされているバージョンとエディションのアップグレードをご覧ください。たとえば、
サポートされているバージョンとエディションのアップグレード(SQL Server 2022)をご覧ください。
次の表に、サポートされているすべての SQL Server の移行元データベースと移行先データベースを示します。
移行元データベース
移行先データベース
Amazon RDS
Cloud SQL for SQL Server バージョン 2022、2019、2017
セルフマネージド SQL Server
(オンプレミスまたはお客様が完全に管理するクラウド VM 上)
継続的な移行のデータフロー
SQL Server から Cloud SQL への同種移行の場合、Database Migration Service は
継続的な移行フローをサポートしています。このアプローチでは、まずデータベースの完全バックアップ ファイルからデータが読み込まれ、次に差分バックアップ ファイルから読み込まれ、専用の Cloud Storage バケットにアップロードされたトランザクション ログ ファイルに基づいて継続的に更新されます。
図 1.SQL Server 向け Database Migration Service の移行中のデータ移動。(クリックして拡大)
アプリケーションを切り替えて Cloud SQL for SQL Server の移行先インスタンスを本番環境データベースとして使用する場合、進行中のレプリケーションを停止して移行ジョブを昇格できます。詳細な移行ガイドについては、
Cloud SQL for SQL Server 移行ガイドをご覧ください。
モニタリング
図 2.Database Migration Service の可観測性図の例。(クリックして拡大)
Database Migration Service には、移行の進行状況をモニタリングするために役立つ、広範なロギング機能とオブザーバビリティ機能が用意されています。これらの機能には、レプリケーションの遅延とトランザクション ログのバックアップ ファイル処理のリアルタイム診断、Cloud SQL for SQL Server の宛先インスタンスの健全性と移行ジョブの状態に関する詳細なログが含まれます。
Database Migration Service は、
暗号化された SQL Server バックアップと完全に互換性があります。暗号鍵を Google Cloudにアップロードすると、Database Migration Service はデータのセキュリティを損なうことなく、データを安全に復号して Cloud SQL for SQL Server の移行先インスタンスに読み込むことができます。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-05 UTC。"],[[["\u003cp\u003eDatabase Migration Service allows the migration of SQL Server databases to Cloud SQL for SQL Server using a backup and restore method, where full database backups and transaction logs are uploaded to Cloud Storage.\u003c/p\u003e\n"],["\u003cp\u003eThe service supports various source databases, including Amazon RDS and self-managed SQL Servers, and can migrate between different SQL Server versions as long as version compatibility guidelines are met.\u003c/p\u003e\n"],["\u003cp\u003eData migration occurs in a continuous flow, starting with a full backup, followed by an optional differential backup, and then ongoing updates from transaction log files uploaded to a designated Cloud Storage bucket.\u003c/p\u003e\n"],["\u003cp\u003eDatabase Migration Service offers monitoring capabilities, including real-time diagnostics and detailed logs, to track the progress and health of the migration process.\u003c/p\u003e\n"],["\u003cp\u003eThe migration service can handle encrypted SQL Server backups, ensuring data security by decrypting the files using an uploaded encryption key during the migration process.\u003c/p\u003e\n"]]],[],null,["# Database Migration Service for SQL Server\n\nYou can migrate SQL Server databases to Cloud SQL for SQL Server\ninstances with Database Migration Service by using a backup and restore flow.\nYou first upload the full database backup and transaction\nlog files to a Cloud Storage bucket. Database Migration Service then actively\nmonitors your bucket, and continuously replicates your data to the destination\nCloud SQL for SQL Server instance.\n\nThis page provides an overview of the key Database Migration Service\nfeatures for homogeneous SQL Server migrations:\n\n- [Supported source and destination](#supported-src-and-dest) lists all SQL Server\n versions supported by Database Migration Service.\n\n- [Continuous migrations data flow](#data-flow-migration-types) provides an end-to-end overview\n of how your data moves in Google Cloud during the migration process.\n\n- [Monitoring](#monitoring)\n gives an introduction for logs and metrics that can\n help you observe the progress and health of your migration job.\n\n- [Encryption](#securing-migration-jobs) looks at how you can migrate\n with encrypted SQL Server backup files.\n\nSupported source and destination databases\n------------------------------------------\n\nYou can use Database Migration Service to migrate between the same SQL Server\nversion and edition, or from earlier versions of\nSQL Server to later versions supported in Cloud SQL, as long\nas you follow the version compatibility guidelines. For more information,\nsee the supported version and edition upgrades for your SQL Server\nversion in Microsoft documentation. For example, see\n[Supported version and edition upgrades (SQL Server 2022)](https://learn.microsoft.com/en-us/sql/database-engine/install-windows/supported-version-and-edition-upgrades-2022?view=sql-server-ver16#upgrades-from-earlier-versions-to-sql-server-2022).\n\nThe following table lists all supported SQL Server source and destination\ndatabases:\n\nContinuous migrations data flow\n-------------------------------\n\nFor homogeneous SQL Server migrations to Cloud SQL,\nDatabase Migration Service supports the\n[continuous migration](/database-migration/docs/overview#migrationconcepts) flow. In this approach, your data is first\nloaded from a full database backup file, then from a differential backup file,\nand then continuously updated based on transaction log files you upload to\na dedicated Cloud Storage bucket.\n[](#lightbox-trigger) **Figure 1.** Data movement during Database Migration Service for SQL Server migrations. (click to enlarge)\n\nAt a high level, your data moves through the migration phases as follows:\n\n1. You upload your backup files to Cloud Storage.\n\n Continuous SQL Server migrations require that you first take a\n full backup of your source database, and then upload the backup file to\n a Cloud Storage bucket.\n For subsequent updates, you can optionally provide a differential backup file,\n and then upload transaction log files.\n You can also automate continuous transaction log creation and uploads.\n - For more information on automating continuous transaction log creation and\n uploads, see\n [Schedule transaction log backups](/database-migration/docs/sqlserver/automate-backup-exports).\n\n - For details on how Database Migration Service uses different types of backup files\n in homogeneous SQL Server migrations, see\n [Supported backup file types](/database-migration/docs/sqlserver/supported-backup-files).\n\n2. When the migration job starts, Database Migration Service loads the latest full\n database backup to the destination Cloud SQL for SQL Server instance.\n\n3. Once the initial load is complete, Database Migration Service switches to the incremental\n load phase. At this point, Database Migration Service performs the following:\n\n 1. If your migration job is configured to use a differential backup file,\n Database Migration Service scans the `diff` folder and loads differential backup\n files to your destination instance. If your migration job is configured\n to use a differential backup file, but Database Migration Service can't find it\n in the Cloud Storage bucket, the migration job shows an error\n while continuously searching the `diff` folder for the differential\n backup file.\n\n Database Migration Service loads differential backup files only once, at the beginning\n of the incremental load phase. When the migration job proceeds to work with\n transaction log files no new differential backup files are recognized when\n you upload them to the `diff` folder.\n 2. Now Database Migration Service continuously scans your Cloud Storage bucket\n for transaction log backup files to replicate on your destination instance.\n\n4. As new data shows up in your source database, you can keep exporting\n the transaction log backup files and uploading them to the same Cloud Storage\n bucket. Database Migration Service picks up all new transaction log backup files and\n replicates them on the destination database.\n\nYou can stop the ongoing replication and promote the migration job when you want\nto switch your application to so that it uses the Cloud SQL for SQL Server\ndestination instance as the production database. For a detailed step-by-step\nmigration guide, see\n[Cloud SQL for SQL Server migration guide](/database-migration/docs/sqlserver/guide).\n\nMonitoring\n----------\n\n[](#lightbox-trigger) **Figure 2.** Sample observability diagram in Database Migration Service. (click to enlarge)\n\nDatabase Migration Service provides extensive logging and observability capabilities\nto help you monitor the migration progress. These features include real-time\ndiagnostics for replication delay and transaction log backup file processing,\nas well as detailed logs for Cloud SQL for SQL Server destination instance health\nand migration job state.\n\nFor more details, see\n[Migration job metrics](/database-migration/docs/sqlserver/migration-job-metrics).\n\nEncryption\n----------\n\nDatabase Migration Service is fully compatible with\n[encrypted SQL Server backups](https://learn.microsoft.com/en-us/sql/relational-databases/backup-restore/backup-encryption). If you upload your\nencryption key to Google Cloud, Database Migration Service can safely decrypt\nyour data and load it to the Cloud SQL for SQL Server destination instance without\ncompromising your data security.\n\nFor more details, see\n[Encrypted SQL Server backup files](/database-migration/docs/sqlserver/backup-file-encryption).\n\nWhat's next\n-----------\n\n- To learn more about SQL Server data and feature support in\n Database Migration Service, see\n [Known limitations](/database-migration/docs/sqlserver/known-limitations).\n\n- To get a complete, step-by-step migration walkthrough, see\n [Cloud SQL for SQL Server migration guide](/database-migration/docs/sqlserver/guide)."]]