Query to find non-replicated objects

  • I've searched a little but haven't found anything worthwhile. Does anyone have a query to find all user objects within a database that aren't affiliated with a publication? This is a merge replication environment.

  • I think I found what I was looking for. The query below gives a good indication of what isn't being replicated:

    SELECT * FROM sys.objects so

    WHERE object_id NOT IN (SELECT objid FROM sysmergearticles)

    AND type IN ('U', 'V', 'P')

    AND is_ms_shipped <> 1

    ORDER BY type, name

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply