--- title: "Pause and resume data migration (Stretch Database) | Microsoft Docs" ms.custom: "" ms.date: "06/14/2016" ms.prod: "sql-non-specified" ms.prod_service: "database-engine" ms.service: "" ms.component: "stretch-database" ms.reviewer: "" ms.suite: "sql" ms.technology: - "dbe-stretch" ms.tgt_pltfrm: "" ms.topic: "article" helpviewer_keywords: - "Stretch Database, pausing and resuming" - "pausing Stretch Database" - "resuming Stretch Database" ms.assetid: 65d6a990-b295-41b2-97f9-7b6bf3000e4d caps.latest.revision: 23 author: "douglaslMS" ms.author: "douglasl" manager: "craigg" ms.workload: "Inactive" --- # Pause and resume data migration (Stretch Database) [!INCLUDE[tsql-appliesto-ss2016-xxxx-xxxx-xxx-md-winonly](../../includes/tsql-appliesto-ss2016-xxxx-xxxx-xxx-md-winonly.md)] To pause or resume data migration to Azure, select **Stretch** for a table in SQL Server Management Studio, and then select **Pause** to pause data migration or **Resume** to resume data migration. You can also use Transact-SQL to pause or resume data migration. Pause data migration on individual tables when you want to troubleshoot problems on the local server or to maximize the available network bandwidth. ## Pause data migration ### Use SQL Server Management Studio to pause data migration 1. In SQL Server Management Studio, in Object Explorer, select the Stretch-enabled table for which you want to pause data migration. 2. Right-click and select **Stretch**, and then select **Pause**. ### Use Transact-SQL to pause data migration Run the following command. ```sql USE ; GO ALTER TABLE SET ( REMOTE_DATA_ARCHIVE ( MIGRATION_STATE = PAUSED ) ) ; GO ``` ## Resume data migration ### Use SQL Server Management Studio to resume data migration 1. In SQL Server Management Studio, in Object Explorer, select the Stretch-enabled table for which you want to resume data migration. 2. Right-click and select **Stretch**, and then select **Resume**. ### Use Transact-SQL to resume data migration Run the following command. ```sql USE ; GO ALTER TABLE SET ( REMOTE_DATA_ARCHIVE ( MIGRATION_STATE = OUTBOUND ) ) ; GO ``` ## Check whether migration is active or paused ### Use SQL Server Management Studio to check whether migration is active or paused In SQL Server Management Studio, open **Stretch Database Monitor** and check the value of the **Migration State** column. For more info, see [Monitor and troubleshoot data migration](../../sql-server/stretch-database/monitor-and-troubleshoot-data-migration-stretch-database.md). ### Use Transact-SQL to check whether migration is active or paused Query the catalog view **sys.remote_data_archive_tables** and check the value of the **is_migration_paused** column. For more info, see [sys.remote_data_archive_tables](../../relational-databases/system-catalog-views/stretch-database-catalog-views-sys-remote-data-archive-tables.md). ## See Also [ALTER TABLE (Transact-SQL)](../../t-sql/statements/alter-table-transact-sql.md) [Monitor and troubleshoot data migration](../../sql-server/stretch-database/monitor-and-troubleshoot-data-migration-stretch-database.md)