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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:27:47+00:00 2026-05-16T00:27:47+00:00

I have three tables related to each other. They represent a hierarchical object. A_Table->

  • 0

I have three tables related to each other. They represent a hierarchical object.

A_Table-> B_Table -> C_Table

I drilled my error down to setting the primary key values to their same values as before. When I SubmitChanges(), it fails after about 30 seconds with an error of:

"This SqlTransaction has completed; it is no longer usable."

I know that the primary key values are identical before and after. I am under the impression that Linq to SQL only modifies field values if they are not equivalent to the existing field values. The dataContext.Log during this code and the failure do not include SQL update statements.

Why would this fail? Is it really trying to do some sort of in-RAM cascading update?

  • 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-16T00:27:47+00:00Added an answer on May 16, 2026 at 12:27 am

    By default all Linq to Sql generated objects implement INotifyPropertyChanging which the DBContext will use for change tracking and in which case it will not detect setting an identical value.

    Only in cases where the object doesn’t implement INotifyPropertyChanging will the change tracking mechanism use a hidden copy of the object to detect changes during calls to SubmitChanges().

    Take a look at Object States and Change-Tracking (LINQ to SQL) for an explanation of the change tracking.

    — Update: This actually isn’t totally correct; here is an excerpt from a Linq to Sql class from the DBContext designer.cs file:

    [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Tasks")]
    public partial class Task : INotifyPropertyChanging, INotifyPropertyChanged
    {
        private int _TaskId;
    
        [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TaskId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
        public int TaskId
        {
            get
            {
                return this._TaskId;
            }
            set
            {
                if ((this._TaskId != value))
                {
                    this.OnTaskIdChanging(value);
                    this.SendPropertyChanging();
                    this._TaskId = value;
                    this.SendPropertyChanged("TaskId");
                    this.OnTaskIdChanged();
                }
            }
        }
    }
    

    Are your primary key values integers and does your code check the previous value like this?

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

Sidebar

Related Questions

I have 3 tables which contain different types of data related to each other.
I have three tables products, sales and costs. The sales and products table each
I have two or more tables resembles each other. PARENT ID | PK NAME
I have around 30 tables. eg: producer, director etc related to movies each table
I have three tables in MySQL that are related, yet not technically linked to
If I have three tables: music_genres ----------- music_type_id genres [other unique fields] minerals --------
I have lots of tables with statistical data (environment related) and wondering if there
I have three tables, a user-table and two user-type tables. The user-type tables have
I have three tables as follows: table 1 is called Cat1, table 2 is
I have three tables: page, attachment, page-attachment I have data like this: page ID

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.