Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
Hi all,

My friends are working on a project where they have a website attached to main database on server and they have individual client application attached with local database for transaction.

Say they are working on hotel domain where they want their client application to have transactions locally when they are offline and finally they want to sync it with database on server.

Initially what I thought is to create a database transaction log which will record everything and then pass all tables data in xml to a wcf service which will update database on server and then server will make call and update all local db.

But after goggling a bit I came to know that there is already Microsoft .net sync framework exists which will do this job for you.

But I read few disadvantages of it as it will have issue when tables have identity column as primary key.

But my client applications already have a database I don’t want to create a cache database. I directly want to sync my local database with a wcf service as intermediate layer.

I found lots of tutorial but none of them give good guide line how to work with sync framework?

Thanks
Posted
Updated 22-Dec-11 2:54am
v2
Comments
jasmin_patel 22-Dec-11 2:23am    
do you want to sync using of manually or sync framework.?

1 solution

To be on the safe side and not depending on tools (which can change) I personally would choose the hard way. Means: make a shadow of transactions which will be transferred (with my self made transaction control) as soon one is online again.

Why: In case of mistakes, I prefer to be responsible personally on them. My customers are only interested that my stuff I delivered is working. I can not say: Sorry there is a problem e.g. with the “ms distributed transaction stuff”….nobody bothers about that.

Some background for my argumentations:
I’m working on comparable things, but in my opinion you are on the lucky side. Why?
What I understand is, you have to "sync" several client transactions against one server (this is not really sync, it's "only" forward information in a transaction safe way). I’m in the “bad” position, that I have to sync several clients against a server

Regards
 
Share this answer
 
v5
Comments
sunder.tinwar 22-Dec-11 23:32pm    
Actually, I have to do both. syncing one or more clients against server and reflecting same on other clients also for report generation. And client can have even provision to download master tables directly from service when first time installed.
[no name] 23-Dec-11 12:37pm    
And how you do this? Self made or some tools?
Regards
sunder.tinwar 24-Dec-11 2:20am    
I am planing to use microsoft sync framework.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900