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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:07:39+00:00 2026-05-14T06:07:39+00:00

Is an insert with autocommit guaranteed to be immediately visible to any/every SqlConnection on

  • 0

Is an insert with autocommit guaranteed to be immediately visible to any/every SqlConnection on the database, or only on it’s own SqlConnection?

I have a procedure with 3 SqlConnections. Connection One is associated with a SqlDataReader which is driving a loop. Withing the loop, Connection Two is used to get data for test, and Connection Three is used to insert rows in a table. The insert autocommits.

We have a situation where the test (using Connection Two data) is failing. One possible explanation is that Connection Two sometimes does not see the row inserted by Connection Three on the previous pass through the loop. Is this possible?

I don’t see a problem with combining Two and Three, and I’m going to do that, but I don’t have any way to force this error to occur, and I’d like to know if this explanation is even possible.

  • 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-14T06:07:40+00:00Added an answer on May 14, 2026 at 6:07 am

    Yes, auto-committed inserts are the same as any other committed inserts and will be visible on other connections.

    However, inserting rows won’t change the rows returned by an already-existing SqlDataReader, since the SqlDataReader object encapsulates a record set – the results of a query – and not the query itself.

    I’m not sure what your “Connection Two” is doing, but if it’s depending on the results of the INSERT in C3 being visible to the SqlDataReader, then it will definitely fail for this reason.

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

Sidebar

Related Questions

I need to insert more than thousand rows into an Oracle Database table every
I have a php file which performs a series of insert queries. If any
I am trying to insert into mysql database dynamically. But I always see only
I'm using OpenJPA and want to configure it to use Autocommit on every write/insert
INSERT MODE i have check box in one tr. and another dropdown control in
In MySQL I have to check whether select query has returned any records, if
what I would like to accomplish is the following: have autocommit enabled so per
I have a stored procedure which when i call from MSSQL Server GUI.It returns
I have four DB tables in an Oracle database that need to be rewritten/refreshed
I have a MySQl database with a few tables, all UTF-8 and MyISAM storage.

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.