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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:24:02+00:00 2026-06-15T09:24:02+00:00

I am working on a Windows application (WinForms) that requires four different processes to

  • 0

I am working on a Windows application (WinForms) that requires four different processes to run (stored procedures) that include the ability to commit or rollback the entire process in the instance that any of the four processes raised an error. I’ll describe my situation below (and please excuse my SQL ignorance as I am not a DBA):

  • Windows App: Click Process Button

  • Database: Initiate Procedure 1 (and presumably BEGIN TRANSACTION MyProcessTransaction)

  • Windows App: Click Process Button

  • Database: Initiate Procedure 1 (and presumably BEGIN TRANSACTION MyProcessTransaction)

  • Windows App: Receives notification from Procedure 1 that it completed successfully and updates a progress bar.

  • Database: Initiate Procedure 2 (and somehow still encapsulated under MyProcessTransaction)

  • Windows App: Receives notification from Procedure 2 that it completed successfully and updates a progress bar.

  • Database: Initiate Procedure 3 (and somehow still encapsulated under MyProcessTransaction) and raises an error and rolls back the transaction MyProcessTransaction

Is this possible? I tried four query windows and began a transaction in the first, then put try catches in the other windows and attempted to perform work in each to simulate this but when I got to the fourth window and intentionally raised an error, I received the exception that there was no BEGIN TRANSACTION for me to be able to ROLLBACK. Any suggestions?

  • 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-15T09:24:03+00:00Added an answer on June 15, 2026 at 9:24 am

    Well, as usual, after doing some digging, I found a solution that works for me. Not that it’s the sole solution, but it’s efficient and it works:

    https://stackoverflow.com/a/13228090/176806

    I never put 2 and 2 together to figure out that the TRANSACTION is connection specific, so, I did as suggested and created a transaction via the connection object and passed that transaction from call to call, then in the instance of an error, roll back that transaction. If anyone feels like answering something else, I’m still open to any suggestions.

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

Sidebar

Related Questions

I'm working on a WinForms application that uses System.Windows.Forms.PrintPreviewDialog to display a Print Preview
I have a Winforms application that is working correctly on various versions of windows
I'll start working on windows forms application that hosts ESRI maps into it So,
I am working with Windows form application. In that I retrieve the data from
I am working on a windows application that has a shockwave flash player embedded
I'm presently working on a side-by-side application (C#, WinForms) that injects messages into an
I'm working on an application that displays some child windows which can either be
I'm working on a .net WinForms application that embeds the Flash ActiveX component. When
I've got a .NET CF (C#) mobile application that I run on a windows
I am working on a windows application that will need to be branded. The

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.