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

Unable to get new filtered data without reinitialising subscription

$
0
0

Hi,

I am developing a .NET Windows application to be used by field engineers to capture data on rugged tablets running desktop Windows. This application can also run in the office, connecting to the main SQL Server database (2008 R2) that holds all the data.

When in mobile mode the application has a sync feature. This uses merge replication (push) to sync the data between the main database and a SQL Server express database on the tablet.

The database on the tablet will only have a subset of the data required for the engineer to do their job. I have used the filtering to do this. The filtering makes use of the currently logged in user and calls a function to return the subset of data needed for the job for the current user logged in.

I have a problem with this. After the initial sync, no new job data is replicated down. Also, the previous data remains. I would like this to be removed after syncing.

I have been able to get this to work if I reinitialise the subscription (through code) but this makes the sync really slow. Especially when syncing over the mobile data connection.

Any help / advice on getting this to download new data without reinitialising would be appreciated.

Thanks in advance for your help.

Abrar



Viewing all articles
Browse latest Browse all 4054

Trending Articles



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