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

  • Home
  • SEARCH
  • 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 6829019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:27:05+00:00 2026-05-26T22:27:05+00:00

I basically have a database and an application, and what i want to do

  • 0

I basically have a database and an application, and what i want to do is creating a second database and a second application that is running mostly independent. Setting this up is easy, but what I want now is a connection between both, so that the configuration tool is abled to configure both setups at the same time. For an simple example we could assume that the whole configuration is done in only one table in the database. So i basically see two ways to do that:

Modify the configuration tool, so that it will write to both instead of only one server, or use replication to get the configuration table from one db to the other.

As I would have to go deep in alot of old code that I did not write myself, I would prefer it by far to get this done by replication.
As SQL Server 2008R2 is used, I have snapshot, transactional and merge replication available. Snapshot is kind of bad because I want the whole thing to be “realtime” and that is not how snapshots work.

Transactional and merge sound both pretty nice, and I think both would be possible, but I experienced some Problems with that. Transactional replication kills the constraints on the subscriber, which is not acceptable. Merge replication does not do that, but when I have the second database running I cannot apply the merge replication because it wants to delete the table which it cannot because of the existing constraints.

I tried to set up both of those replications without initialisation, but that did not work at all. I guess I have to set up something different for that but i dont know what.

Is there a way to get this running like I want it to, or is there even another possible way that I missed completely?

  • 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-26T22:27:05+00:00Added an answer on May 26, 2026 at 10:27 pm

    We use transactional replication on a large scale to do more or less exactly what you’re describing here, distributing configuration from a central point to many subscriber databases.

    Whilst you may not be happy with the default options offered by transactional replication, you have a lot of control over how it behaves.

    The schema options bitmask, set when adding an article to a publication, allows you control over pretty much all aspects of the DDL replicated to the subscriber – for full details, see the documentation on sp_addarticle. The replication GUI gives you access to most of these settings, but you may need to use T-SQL scripts to get exactly what you want. I don’t have access to a database at the moment to check whether check, default and foreign-key constraints are all surfaced in the GUI.

    Even the default transactional replication would be appropriate in this scenario if it’s really acceptable that the replication is one-way, since there’s no need to maintain the constraints on the read-only database, since no data is being inserted.

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

Sidebar

Related Questions

I basically want to make this in my application, so our technicians have an
Basically, I have an RPG-type Rails application. I'm storing skills in a skills database
Let's say I have a Type II SCD database, that is basically append only.
I am writing an application that is basically a DataGrid attached to a database
I have a Windows Forms application that currently loads a database on startup. The
I have this query which I want to run in my PHP application back
So I have this application in ASP MVC 3. My database has two tables:
Basically when I have an application in XCode and I change the sqlite/coredata database
So! Basically I have a database with a load of blog posts, these are
I have to design a database to handle forms. Basically, a form needs 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.