Tell me more ×
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.

I am using merge replication in SQL 2012. I have a situation where I am using join filters to filter out what records are being replicated to the subscriber.

When I look at the stored procedure,

sp_addmergefilter

You can only specify one @join_articlename. I want one of my tables to be join filtered by the content of two other tables, is this possible?

It is a bit like this, it relates to security. For example I have some tables,

ColourPermissions
ShapePermissions
Shapes

So if the ColourPermissions table says that my user 'peter' in the system is allowed to see red, blue, and yellow. Also the shape permissions table says that my user 'peter' in the system is allowed to see squares, and circles.

The only way I can filter the Shapes table properly is to join it to the ColourPermissions and ShapePermissions table. So I want my user to see a red square, but not a red hexagon.

Is there a way to do this using join filters, or any alternative ways to do this?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.