Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How can I synchronize data of different user with SQL Server 2005/2008? Expand / Collapse
Author
Message
Posted Monday, December 13, 2010 11:22 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, February 19, 2013 9:13 PM
Points: 16, Visits: 39
How can I synchronize data of different user with SQL Server 2005/2008?

Scope:
I am planning to design a free application for Windows Mobile and this app will store data in SDF file (SQL Server Compact Edition) locally in Mobile. I also design Web Interface for this application, where users can add/delete/edit/view their information entered using Mobile App. To achieve this I have to replicate and synchronize the SDF File data with SQL Server Enterprise Edition.

Issue:
The application is used by different users and I want only data related to that particular user can synchronize. For example if there is user Sam and Dean then when Sam do sync, only Sam get data related to him and when Dean does, he get data related to him.

Solutions:
1. Use SQL Replication.
I do not have much experience in using SQL Replication, but few year ago I did implemented merge replication. But it replicated the complete data.
Is there any way to replicate data based on condition?
2. Use custom logic to handle.
Here I am thinking to have one more table and log the info Add/Delete/Edit and later based on this will sync. But it will take a lot of effort to sync properly.


Please advice what can be done for syncing data for different users, while one user will not able to get others data.

Please let me know if you need any further clarification.
Post #1034200
Posted Tuesday, December 14, 2010 10:28 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, November 2, 2011 9:50 PM
Points: 189, Visits: 335
QUOTE $10,000.

CodeOn
Post #1034885
Posted Friday, January 13, 2012 9:31 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, January 13, 2012 9:26 AM
Points: 1, Visits: 0
I have also same issue, but i create different replications with filter option from SQL server replication and hard code each application with user replication filter, try if it is suitable for you or if you have any other idea please do let me know.

Muhammad Waqas
Post #1235774
Posted Friday, January 13, 2012 10:07 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Yesterday @ 12:25 PM
Points: 1,531, Visits: 255
If this is a free mobile application, creating a replication per user is not viable.
How many tables do you have to sync ?
How many data ?

A quick search lead me to this :
http://msdn.microsoft.com/en-us/sync/bb887608
It could be interesting for you.







Post #1235830
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse