Solved

Storing Data in multiple Countries

Posted on 2014-04-01
5
32 Views
Last Modified: 2016-06-04
We have a web application and have several clients who want their data to only be stored in their country.   Is there a decent way to do this without having multiple copies of the application running.
0
Comment
Question by:Josh_Blade
  • 2
5 Comments
 
LVL 39

Expert Comment

by:lcohan
Comment Utility
You could "globalize" your app and create some sort of "mapping" between/via the Client Computer Locale and the appropriate Language you want that stored into the database. It is pretty complex but possible and your SQL backend is still one single server having unique  collation (Default Latin for instance) language for all "text" like columns, with one (or more) user DB(s).
0
 

Author Comment

by:Josh_Blade
Comment Utility
Sorry, I was not clear in my objective.  I have clients in both the US and Canada that want their physical data stored in in their respective countries.  So the Canadian customers do not want their data stored on a server in the US.  The only think I can think of is to have multiple versions of the application running.   IE the US customers would access  us.myapp.com  and the canadians  ca.myapp.com and have the applications save to different databases in different countries.   Not an ideal solution and help would be appreciated.
0
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 250 total points
Comment Utility
"I have clients in both the US and Canada that want their physical data stored in in their respective countries. "
Just to make it 100% clear...the data must be stored into 2 separate SQL Servers in 2 separate countries? and they will NEVER ever use data from the "other" country database? That is extremely hard for me to believe if this "myapp.com" is from the same company.
What I think you may need is to rather look at replication or mirroring and see if they serve your purpose where 2 databases in 2 different SQL Servers from 2 different geographical positions are kept in sync.

http://stackoverflow.com/questions/16857615/syncing-a-database-between-multiple-sites

How to setup Snapshot Replication.  Here's a step-by-step guide:
http://www.mssqlcity.com/Articles/Replic/SetupSR/SetupSR.htm

Or Merge Replication:

http://msdn.microsoft.com/en-us/library/ms152746(v=sql.100).aspx
http://www.databasejournal.com/features/mssql/article.php/1438231/Setting-Up-Merge-Replication-A-Step-by-step-Guide.htm
0
 
LVL 69

Accepted Solution

by:
ScottPletcher earned 250 total points
Comment Utility
>> Is there a decent way to do this without having multiple copies of the application running.[?] <<

Sure, should be easy.  The app can connect to different databases based on the client location, or on whatever other criteria you want.

You can create one database/instance in the U.S. and a different one in Canada.
0

Featured Post

Do email signature updates give you a headache?

Do you spend too much time managing email signatures? Hate visiting every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Well, let Exclaimer give your company the email signature it deserves!

Join & Write a Comment

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now