table from replication??

  • hi

    i have database A and database B

    B is subscribed to a replication from A

    i have a table on B.

    i need to know if this table come from one of the published articles of the replication from A or it doesnt .

    by few words i need to know if this table is a replicated one or no.

    i need it in a script form.

    any help plz.


    If something's hard to do, then it's not worth doing.

  • Hi

    You will need to check the distibution database

    use distibution

    go

    select * from msarticles where article =''

    Thanks

  • ok man thanks a lot.


    If something's hard to do, then it's not worth doing.

  • If you don't have permission to see distribution database, see triggers of that table for Database B, if there are three triggers (insert, update and delete) it may looks like

    ins_E583CD913A23410E90E567CF5E0BC371

    del_E583CD913A23410E90E567CF5E0BC371

    upd_E583CD913A23410E90E567CF5E0BC371

    if found it is participating in replication, otherwise it won't have any trigger like these above names.

     

    Shamshad Ali.

  • i didnt find those triggers even i checked the some tables on database B that i know its participating in a replication and i  didint find them.

    :S

     

     


    If something's hard to do, then it's not worth doing.

  • If there is no such trigger on tables, how your replication is working? without Triggers I never saw database that replicates somewhere. Due you realize it or not?

    Shamshad Ali.

  • well no triggers and replication is working fine!!!


    If something's hard to do, then it's not worth doing.

  • You guys are talking different types of replication...

    I think Shamshad is refferring to merge replication and Charbel is transactional...

    I think Merge replication uses these types of triggers..

    MohammedU
    Microsoft SQL Server MVP

  • yes its a transactional replication !


    If something's hard to do, then it's not worth doing.

  • It is always better to specify complete details when posting so that people can answer better...

    MohammedU
    Microsoft SQL Server MVP

  • ye right hehe!!


    If something's hard to do, then it's not worth doing.

Viewing 11 posts - 1 through 10 (of 10 total)

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