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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:28:32+00:00 2026-05-17T01:28:32+00:00

I have an application run on an enterprise having head office and branches. Each

  • 0

I have an application run on an enterprise having head office and branches. Each branch has separate local server and DB. The master server and DB is updated daily by batch updation . How can i overcoming the id conflict in such situation.

Eg: i have a record with ID 10 on branch A
Also a transaction with reference id 10(foreign key) but while saving this into master db the unique id may be changed and hence the transaction is mismatched….

Pls help me for solving this…

Advance thanks to all….

  • 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-17T01:28:33+00:00Added an answer on May 17, 2026 at 1:28 am
    The master server and DB is updated daily by batch updation
    

    Not knowing the details of exactly how you do your batch updation or how big your database is and how many tables you have which face this kind of issue, one generic way that is possible way is by maintaining mapping tables

    In your batch updation logic,

    • for new records, you will first insert the records into the master table and then using their new ID’s generated from master, insert a record into mapping table with details like eg: branch, branchID, MasterID which stores the relation between the 2 ID’s

    • for existing records, you will join with the mapping table and update the records using their masterID’s from the mapping table

    Usually, in SQL Server, if the batch updation is a job, you can use SSIS and have this kind of logic within your SSIS package.

    Additionally, it depends on your design but there is usually a

    Source DB –> Staging DB –> Destination DB

    in your case which maps to

    Branch DB –> Staging DB –> Master DB

    for such ETL kind of tasks. In such cases, the mapping tables should probably reside in the Staging Database but if you do not have such a design (which you really should ) these mapping tables can reside in Destination i.e. Master database as well

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

Sidebar

Related Questions

We have a java application which run as server running on a remote windows
have a weird situation. I'm using Glassfish server for my Enterprise application. In that
We have an enterprise application written in asp.net c# (3.5) and SQL server that
I have an application and executables. I want my application to run my executables.
I need my application run in multiple screen resolutions. Currently I have specified all
I have an application that takes too long to run, and I want to
I have a web application which is run on Windows CE's Internet Explorer. Is
I have an application which get copied and run on client machines. The program
I have an application that I have to run as Administrator. One small part
I have an application (winform exe) that I run several times. Does this mean

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.