Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is it possible to query the replication metadata to see which subscription caused a change to a specific row in a table?

share|improve this question
add comment

1 Answer 1

If the change hasn't yet been replicated you can look in the distribution database to see which publication will change the value.

If the subscriber is in full or bulk_logged recovery you can look in the transaction log to see what user made the change (it might have the application name in there, if it does that'll tell you what SQL Agent job made the change and therefor which publication and subscription made the change). If you are in simple recovery mode you are hosed unless you are logging this data yourself somewhere within the subscriber.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.