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.