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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:33:13+00:00 2026-05-20T08:33:13+00:00

Hi I am wondering if there is such thing as a ‘cascade copy’ that

  • 0

Hi I am wondering if there is such thing as a ‘cascade copy’ that honors foreign key relationships when copying records, so that if you copy a record that has related records pointing to it, they are also implicitly copied? If not is there an elegant way to do this that will scale, so that if I add new FK relationships or modify my tables I dont have to retest code?

My situation is that I have a main database and small mobile databases that I would like to merge with the main one periodically. Lets say I have Customers – Orders – OrderItems and a new Customer is created in the mobile DB with new order information, I would like to merge that into the main DB so the whole tree comes across.

UPDATED:
I am using SQLite on both main and satellite DBs. I would just like to bring across a Customer order without having to manually copy the related Orders and OrderItems.

Any thoughts would be much appreciated!

  • 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-20T08:33:14+00:00Added an answer on May 20, 2026 at 8:33 am

    There is no built-in mechanism that will provide the functionality of automatically copying a row and its related data in a given database when a copy is desired. That logic must be encapsulated into a stored procedure which would have to be updated and tested when new relationships are created.

    However, if what you are seeking is replicating data between two databases, that is possible through the built-in replication mechanism or using something like the Sync Framework.

    Microsoft Sync Framework

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

Sidebar

Related Questions

I'm wondering if there's such a thing as Django-like ease of web app development
Okay, I'm just getting curious. But I was wondering if there was such thing
I was wondering if there's such thing as the equivalent as a callback function
I was wondering if there was such thing as 'belongs to' relationship, and what
Is there such a thing as a manager design pattern that controls how different
I am wondering if such thing is possible: I have a java program that
I was wondering if there exists such thing as Java SE MVC framework. I've
I'm wondering if there's such a thing as reverse decimation for 3d graphics. I've
Wondering if there is any way to get the lambda expressions that result from
Wondering if there is a good way to generate temporary URLs that expire in

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.