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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:37:51+00:00 2026-06-12T19:37:51+00:00

What will happen if connection is lost during long operation? For example there is

  • 0

What will happen if connection is lost during long operation?

For example there is a select statement that takes several minutes to complete and connection is lost during its execution. Will it continue execution or will be stopped?

For a delete statement: will it be executed to its finish or interrupted when client disconnects? What will happen to the data: will it be committed or rolled back, how soon?

For a ddl operation: I have a long running alter table tbl_name move operation, what will happen to it when client loses connection? Will continue execution or will be interrupted?

  • 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-06-12T19:37:52+00:00Added an answer on June 12, 2026 at 7:37 pm

    I’m assuming that we’re talking about something akin to the client application crashing or the network connection getting dropped rather than a situation where the application is doing a clean disconnect since you cannot do a clean disconnect while a transaction is open let alone while a statement is running.

    In general, the statement will run to completion on the server (where “completion” for a SELECT is the point at which it can return the first set of rows the client requested which may or may not require executing the statement in its entirety). The server will then attempt to communicate the fact that the result is ready back to the client. When it doesn’t get a response back (it may take a few minutes to time out waiting for the ACK packet), it knows that the client process is dead and begins the process of rolling back the uncommitted transaction (which releases all the locks held by the transaction). If you have made changes to the database as part of your transaction (i.e. you have done inserts, updates, and/or deletes), it can take as long to roll back the changes as it took to generate the changes in the first place.

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

Sidebar

Related Questions

what will happen if connection lost during transactional replication? suppose db1 and db2 are
What would be happen if IP address is changed after connection is established? Will
I want to know that what will happen to my activity incase of an
Would anyone happen to know a trick that will keep this MSBuild task from
If I have a using block surrounding a try catch statement what will happen
Is there anyway to find why ftp_get fail , if connection was susccesfull? Will
What will happen if i have two mirrors with same id in the settings.xml
I'm wondering what will happen on a non-retina display device if only the @2x
Problem on WindowsXP (likely will happen on all Win installs), first time using Mercurial.
What exactly will happen to the data segment and text segment if I use

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.