check through code if sp_addarticle is used in replication

Posted on 2011-10-13
Last Modified: 2012-05-12
is there a t-sql code you could use to check if sp_addarticle was used or implemented in the existing publication on a database on a server?
Question by:25112
    LVL 25

    Accepted Solution

    You can query on following tables in distributor

      distribution.dbo.MSArticles A WITH (NOLOCK)  
    inner join  
     distribution.dbo.MSPublications P WITH (NOLOCK)  
     P.Publication_id = A.Publication_Id  

    Or you can query following tables on publication server\database

    LVL 5

    Author Comment

    thanks TempDBA.. how can i use the above query to filter out objects.. i just need to see the articles where properties for objects are added as articles.. for example, SELECT permissions for a table for a user.. i want see if such permissions are assigned..
    LVL 25

    Expert Comment

    This you can obtain by knowing the user and role he/she is assinged to, to perform on a database. I am not sure if there is any property saved for a article in the context you are looking for.
    LVL 5

    Author Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
    SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
    Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
    Viewers will learn how the fundamental information of how to create a table.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now