Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 3.15 KB

File metadata and controls

48 lines (42 loc) · 3.15 KB
title sys.remote_data_archive_tables (Transact-SQL) | Microsoft Docs
ms.custom
SQL2016_New_Updated
ms.date 06/10/2016
ms.prod sql-non-specified
ms.reviewer
ms.suite
ms.technology
dbe-stretch
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
sys.remote_data_archive_tables
sys.remote_data_archive_tables_TSQL
remote_data_archive_tables
remote_data_archive_tables_TSQL
dev_langs
TSQL
helpviewer_keywords
sys.remote_data_archive_tables catalog view
ms.assetid 765069b7-60fd-414c-875f-3455460b75cd
caps.latest.revision 11
author douglaslMS
ms.author douglasl
manager jhubbard

Stretch Database Catalog Views - sys.remote_data_archive_tables

[!INCLUDEtsql-appliesto-ss2016-xxxx-xxxx-xxx_md]

Contains one row for each remote table that stores data from a Stretch-enabled local table.

Column name Data type Description
object_id int The object ID of the Stretch-enabled local table.
remote_database_id int The auto-generated local identifier of the remote database.
remote_table_name sysname The name of the table in the remote database that corresponds to the Stretch-enabled local table.
filter_predicate nvarchar(max) The filter predicate, if any, that identifies rows in the table to be migrated. If the value is null, the entire table is eligible to be migrated.

For more info, see Enable Stretch Database for a table and Select rows to migrate by using a filter predicate.
migration_direction tinyint The direction in which data is currently being migrated. The available values are the following.
1 (outbound)
2 (inbound)
migration_direction_desc nvarchar(60) The description of the direction in which data is currently being migrated. The available values are the following.
outbound (1)
inbound (2)
is_migration_paused bit Indicates whether migration is currently paused.
is_reconciled bit Indicates whether the remote table and the SQL Server table are in sync.

When the value of is_reconciled is 1 (true), the remote table and the SQL Server table are in sync, and you can run queries that include the remote data.

When the value of is_reconciled is 0 (false), the remote table and the SQL Server table are not in sync. Recently migrated rows have to be migrated again. This occurs when you restore the remote Azure database, or when you delete rows manually from the remote table. Until you reconcile the tables, you can't run queries that include the remote data. To reconcile the tables, run sys.sp_rda_reconcile_batch.

See Also

Stretch Database