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 6743453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:57:46+00:00 2026-05-26T11:57:46+00:00

Question: I am creating an Asp.Net application that has a multi-tenant data architecture with

  • 0

Question:

I am creating an Asp.Net application that has a multi-tenant data architecture with separate databases for each tenant. I need to be able to create and deploy databases programmatically from the application when a new tenant signs up. What is the best way to maintain a template database/schema/script and use it to deploy a new database on the server.

Note:

I am using .Net 4.0 for the application and SQL Server 2008 R2 for the server.

Current Workaround:

Currently a default template database is maintained on the server. Changes to the database are done through Visual Studio to maintain versioning through source control. When a new database needs to be deployed:

  1. Create a new database on the server using Database.Create.

  2. Then use Transfer.TransferData to transfer just the schema over to the new database. Or, use Transfer.ScriptTransfer and store the script in memory for subsequent deployments.

  • 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-26T11:57:47+00:00Added an answer on May 26, 2026 at 11:57 am

    Your deployment should be based on scripts that create the database from scratch. Any schema modification you make, make it through a script that upgrades the database schema. See Version Control and Your Database for a more extended discussion of the topic.

    The alternative of doing diff tools based deployment put you at the mercy of the tools decision on how to handle the diff (with large tables, this can get very dangerous if the tool decided to to a copy-based modification) and also puts you at the mercy of whatever support the diff tool has for automation, which makes the failure/retry handling, how should I put it,… ‘fun’.

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

Sidebar

Related Questions

I am creating an ASP.NET application that allows users to edit and insert data
I'm creating a ASP.NET MVC 2 application that envolve a section like questions here
Working inside the context of an ASP.NET application I am creating a page that
i have asp.net mvc application where my model has a relation like Question can
I am creating my first ASP.NET MVC 3 application, and my data comes from
I'm an ASP.NET developer that has never done Winforms/WPF, but I need to create
When making calls to a webservice from an asp.net web application, to avoid creating
I am creating a modular ASP.NET MVC application using areas. In short, I have
I'm creating a new ASP.NET MVC application. So far I've used the Account controller
I have a best practices/performance question. I am creating an ASP.NET MVC 2 project,

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.