Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3855278
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:45:05+00:00 2026-05-19T17:45:05+00:00

Here is my dilemma, I am working on some SaaS using ASP.net MVC3 and

  • 0

Here is my dilemma,

I am working on some SaaS using ASP.net MVC3 and SQL Server.

there will be multiple companies that user the software, each company will have multiple users. to make sure the data doesn’t accidentally become visible from one company to another I have setup the databases as individual databases for each company and then the web-servers handle everything else: UI, logic etc.

I can foresee an issue already and I need to decide how best to deal with it before it becomes a real issue. Having these multiple databases, if everything goes good this year knock on wood we could potentially get 500 clients by the end of the year. Manually syncing schemas is out of the question for obvious reasons. VS2010 has a nice SQL compare script tool that will be helpful but how should I go about making sure that all the databases are of the latest version?

Problem 2

the way the system is designed it is very modular, so the clients will be able to add little widgets and things for their particular needs which will add new tables to there specific database. so in theory each database will be a little bit different. I figure the best way to handle this is to chuck all change scripts so that you have

Core.sql 
Widget-Map.sql 
Widget-HR.sql  
etc.. 

am I correct in this line of thinking or is there perhaps a more practical way to attack this situation?

I have looked into Red-Gate SQL compare and I like it but, it still doesn’t help in the multiple database situation.

so that being the case should I just create my own tools for updating the schemas?

if so any advice, tips, links. to make this task a little less daunting would be very appreciated.

Thank you very much for any and all assistance,

A Few Source I have already read,
Migrations for Java

http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:45:06+00:00Added an answer on May 19, 2026 at 5:45 pm

    Outside of an ORM that does structure upgrades, the methods break down as:

    1. Compare to some DB that is considered correct. Personally I consider this risky, as I would much rather have the upgrade tied to the deploy of code, and have the db spec included somehow in the code. This is personal preference of mine.

    2. Upgrade scripts. Used to be the most popular, seems to be passing out with ORM’s taking more hold. Basically for any particular release you’ve got an “install” script that builds from scratch, and a second set of scripts that handle all incrementals “From_x.y.z_to_a.b.c” kind of thing. Pro: Simple to understand. Con: doubled code, extremely major PITA when the 7th script of 17 fails.

    3. Dictionary or schema based upgrades. Probably the least popular in that outside of myself, I know nobody that does it 🙁 OK, maybe that’s an exaggeration. PHP Doctrine has something like this. The idea is some tool compares the schema to the existing database and brings the schema current. Pro: single schema file (or files), no doubling of code, best way to guarantee the upgrade will produce the database you expect in the shortest time. Con: (almost) nobody does it, dearth of tools.

    I have a tool that does this, and ought to work on MS SQL, but I’m only testing on Postgres right now, so I won’t post a link cuz I don’t want to waste your time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are working on an Asp.net project. It has two parts, first one is
Here is my dilemma: I really like lambda and have been using Boost.Fusion and
Here is my dilemma, I know in JSF the accessor method will get call
So here's the dilemma: I'm writing a progam using two different class using two
I have a bit of a dilemma here. I have a drupal 7 database
Here is the script I'm using, copied directly from Google: <script type=text/javascript> var _gaq
Here is my SQL script CREATE TABLE tracks( track_id int NOT NULL AUTO_INCREMENT, account_id
Here's my dilemma: I have to RGBA RAW images: a master image (the first)
Here's my dilemma: I have two types of routes which are semantically very different,
I have a dilemma going on here. I need to use a session to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.