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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:37:25+00:00 2026-05-31T15:37:25+00:00

I have three tables, with two data relations connecting them (Table 1 -> Table

  • 0

I have three tables, with two data relations connecting them (Table 1 -> Table 2 <- Table 3).
I’ve been trying to use the command builder to generate the update, delete and insert commands as in this article but I cant seem to get this approach to work. Currently I get an error saying there is a problem with the syntax in the insert command. Also I’m using an Access database.

Is it possible to use the command builder for this or will I have to write the insert, update and delete commands myself?

  • 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-31T15:37:26+00:00Added an answer on May 31, 2026 at 3:37 pm

    The question is very vague. Without knowing what the Insert command looks like and what the exception message says, only this section from the MSDN article titled “Limitations of Automatic Command Generation Logic” is worth quoting:

    The automatic command generation logic generates INSERT, UPDATE, or DELETE statements for stand-alone tables without taking into account any relationships to other tables at the data source. As a result, you may encounter a failure when calling Update to submit changes for a column that participates in a foreign key constraint in the database. To avoid this exception, do not use the DbCommandBuilder for updating columns involved in a foreign key constraint; instead, explicitly specify the statements used to perform the operation.

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

Sidebar

Related Questions

I have two tables of data categories and category relations. This is a setup
I have two tables one has a three column composite key. The other needs
I have two tables which have some transactional stuff stored in them. There will
I've two master tables Org & Item and then there's an OrgItem table.I have
I have three tables: page, attachment, page-attachment I have data like this: page ID
I have a legacy data base and a relation one-to-one between two tables. The
I have two tables (subjects and pages) in one-to-many relations. I want to add
I have data in two tables (see below for a sample) - how do
We have two tables in a SQL Server 2005 database, A and B.There is
I have two tables Plants and Information. For every plant there are many information,

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.