Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Can I use the `IN` operator in snapshot replication

$
0
0

Following is my query which I am using in snapshot filter replication

SELECT 
    * 
FROM 
    [dbo].[PosMast] 
WHERE 
    Shop = (SELECT shop FROM Config)
    AND transactiondate >= (SELECT closingdate 
                            FROM StockRoom 
                            WHERE Code = (SELECT shop FROM Config ))
    AND TransactionDate >= (SELECT dateFrom FROM DataInf)
    AND TransactionDate <= (SELECT Dateto FROM DataInf)

enter image description here enter image description here

The problem is that it duplicates data on subscriber If I don't use the IN statement.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



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