Skip to content

Latest commit

 

History

History
76 lines (62 loc) · 4.6 KB

File metadata and controls

76 lines (62 loc) · 4.6 KB
title Replication Views (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql-server-2016
ms.reviewer
ms.suite
ms.technology
replication
ms.tgt_pltfrm
ms.topic language-reference
applies_to
SQL Server
dev_langs
TSQL
helpviewer_keywords
distribution databases [SQL Server replication], system views
metadata [SQL Server], views
views [SQL Server], replication
replication views [SQL Server]
publications [SQL Server replication], system views
articles [SQL Server replication], system views
replication metadata [SQL Server]
subscriptions [SQL Server replication], system views
system views [SQL Server], replication
ms.assetid 93e5056d-0d93-4a48-ba33-72762eb995d8
caps.latest.revision 14
author BYHAM
ms.author rickbyh
manager jhubbard

Replication Views (Transact-SQL)

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

These views contain information that is used by replication in [!INCLUDEmsCoName] [!INCLUDEssNoVersion]. The views enable easier access to data in replication system tables. Views are created in a user database when that database is enabled as a publication or subscription database. All replication objects are removed from user databases when the database is removed from a replication topology. The preferred method for accessing replication metadata is by using Replication Stored Procedures.

Important

System views should not be altered directly by any user.

Replication Views

The following is a list of the system views used by replication, grouped by database.

Replication Views in the msdb Database

MSdatatype_mappings (Transact-SQL) sysdatatypemappings (Transact-SQL)

Replication Views in the Distribution Database

IHextendedArticleView (Transact-SQL) sysarticles (System View) (Transact-SQL)
IHextendedSubscriptionView (Transact-SQL) sysextendedarticlesview (Transact-SQL)
IHsyscolumns (Transact-SQL) syspublications (System View) (Transact-SQL)
MSdistribution_status (Transact-SQL) syssubscriptions (System View) (Transact-SQL)
sysarticlecolumns (System View) (Transact-SQL)

Replication Views in the Publication Database

sysmergeextendedarticlesview (Transact-SQL) sysmergepartitioninfoview (Transact-SQL)
systranschemas (Transact-SQL)

Replication Views in the Subscription Database

sysmergeextendedarticlesview (Transact-SQL) sysmergepartitioninfoview (Transact-SQL)
systranschemas (Transact-SQL)

See Also

Replication Tables (Transact-SQL)