SQL Mobile Replication subsciption and Hard Reset
- From: "Renaud PORTIER" <r.portier@xxxxxxx>
- Date: Mon, 27 Aug 2007 14:10:45 +0200
Hello,
My application uses sql ce merge replication on Windows CE 5 devices.
Database is stored on an internal flah memory (Persistent Storage). My
problem is that when a device is hard reset, the next database
synchronization will create a new subscription. Actually, merge agent
doesn't seem to be able to recognize the subscriber after it has been hard
reset, so it is considered as a new subsciber.
However, my replication doesn't allow multiple subcription per partition.
Is there a way to preserve subscription after device hard reset ?
Hostname is set to the device's serial number, so it doesn't change after
hard reset.
I think replication server considers the database as a new subscriber after
the device has been hard reset. Replication monitor shows a new subcription
(HostName + a unique id) when I synchronize the database. The problem is
that my replication doesn't allow multiple subsciption per partition so this
synchro fails.
See MSDN :
"You can create the initial subscription on one smart device and then deploy
the application by copying the application and the initial subscription to
as many devices as you want. When the application first synchronizes, SQL
Server Compact Edition automatically recognizes it as a new Subscriber, due
to the new device and/or physical folder location change, and creates a new
subscription. By copying the initial subscription to a device, you avoid
downloading the initial subscription to the device over the network."
(http://msdn2.microsoft.com/en-us/library/ms172912.aspx)
My understanding is that SQL Server considers the device as a new one after
hard reset.
One more thing : I noticed that deleting the concerned partition on server
side (replication properties>partitions) seems to solve the problem, next
database sync are successful. However this is not a reliable solution as
devices are regularly hard reset due to battery fault.
Thanks for help !
.
- Prev by Date: Scenario- Multiple filter case
- Next by Date: Re: Continuous Replication updates every minute
- Previous by thread: Scenario- Multiple filter case
- Next by thread: replication server crashed
- Index(es):
Relevant Pages
|
Loading