Click here to Skip to main content
15,995,543 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a situation where, i have multiple retail stores connected to a head office.
what i want is, if internet is working properly store should connect to head office and use data from there,
but as soon as the store goes offline, it should start using data locally.
after the internet starts again, it should connect to HO and start using data online.
i am using sql server 2008, .net 3.5


Any Suggestions

thanx in advance

SHailesh
Posted
Updated 7-Jul-13 20:10pm
v2

1 solution

Hi SHailesh,

Technically there does not seem to be any issue here.
Your application will try connecting to the HO. If connection to the HO fails, connect to aux DB, local/other. There is no problem replacing a connection to the DB or keeping several connections in parallel.
* If you need examples, specify on which part. We'll be glad to assist with the already many code samples here in CP

However - what you do have to consider is the synchronization mechanism.
Once you go "online" again, (i.e. the application always keeps polling the HO DB to see if it manages to connect), there's the issue of data you have manipulated on the local aux DB (potentially several databases, and potentially from several locations etc) that has to be integrated into the HO DB.
This is more of a Business Logic layer issue though.

Good luck,
Edo
 
Share this answer
 

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