找到所有与复制无关的表

时间:2017-07-21 04:38:33

标签: sql sql-server tsql database-replication

有没有办法在SQL Server中选择未选中的文章(参考本地发布属性,文章选项卡)。我只能通过此代码选择所有选中的

SELECT
     P.[publication]                        AS [Publication Name]
    ,A.[publisher_db]                       AS [Database Name]
    ,A.[article]                            AS [Article Name]
    ,A.[source_owner]                       AS [Schema]
    ,A.[source_object]                      AS [Object]
FROM
    [distribution].[dbo].[MSarticles] AS A
    INNER JOIN [distribution].[dbo].[MSpublications] AS P
        ON (A.[publication_id] = P.[publication_id])
ORDER BY
    P.[publication], A.[article]

0 个答案:

没有答案