Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Subset filters and HOST_NAME()

$
0
0

I have many tables need to be dynamically filtered based on HOST_NAME() parameter.

First approach is to Subset filtering the join table and join the other tables to it, but this looks to have performance and timeout issues when updating correspondent datapartation.

Second approach is to Subset filtering all the tables and remove the join filters, in order to do this my filter needs to be like : SELECT TitleId FROM Title WHERE DocumentId in ( SELECT DocumentId FROM Document WHERE UnquieId = HOST_NAME())

My question is the second approach possibles, i read that putting the HOST_NAME() in a subquery has too many problems and might not work, Can any one help ?

Thanks,


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>