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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:51:06+00:00 2026-05-13T07:51:06+00:00

In an environment with a SQL Server failover cluster or mirror, how do you

  • 0

In an environment with a SQL Server failover cluster or mirror, how do you prefer to handle errors? It seems like there are two options:

  1. Fail the entire current client request, and let the user retry
  2. Catch the error in your DAL, and retry there

Each approach has its pros and cons. Most shops I’ve worked with do #1, but many of them also don’t follow strict transactional boundaries, and seem to me to be leaving themselves open for trouble in the event of failure. Even so, I’m having trouble talking them into #2, which should also result in a better user experience (one catch is the potentially long delay while the failover happens).

Any arguments one way or the other would be appreciated. If you use the second approach, do you have a standard wrapper that helps simplify implementation? Either way, how do you structure your code to avoid issues such as those related to the lack of idempotency in the command that failed?

  • 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-13T07:51:07+00:00Added an answer on May 13, 2026 at 7:51 am

    Number 2 could be an infinite loop. What if it’s network related, or the local PC needs rebooted, or whatever?

    Number 1 is annoying to users, of course.

    If you only allow access via a web site, then you’ll never see the error anyway unless the failover happens mid-call. For us, this is unlikely and we have failed over without end users realising.

    In real life you may not have nice clean DAL on a web server. You may have an Excel sheet connecting (most financials) or WinForms where the connection is kept open, so you only have the one option.

    Fail over should only take a few seconds anyway. If the DB recovery takes more than that, you have bigger issues anyway. And if it happens often enough to have to think about handling it, well…

    In summary, it will happen that rarely that you want to know and number 1 would be better. IMHO.

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

Sidebar

Ask A Question

Stats

  • Questions 494k
  • Answers 494k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer http://developer.apple.com/iphone/library/samplecode/SpeakHere/Introduction/Intro.html In this project there is a code-snippet where it… May 16, 2026 at 10:56 am
  • Editorial Team
    Editorial Team added an answer tar xzvf gcc-4.4_4.4.3.orig.tar.gz for a gziped file (like .tar.gz) and… May 16, 2026 at 10:56 am
  • Editorial Team
    Editorial Team added an answer The answer is yes. You should do everything in your… May 16, 2026 at 10:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am developing an application that is hosted on a SQL Server 2005 failover
If I am developing for an environment that will make use of SQL Server
Environment: SQL Server 2005 SP2 (9.0.3077) Transactional Publications (Production and Beta) I have a
Environment: SQL Server 2005 I have a stored proc which receives comma separated value
My environment: SQL Server 2005 for database and SQL Server 2005 Analysis Services. I
Last night I installed sp3 and cu1 on a 64 bit SQL 2005 failover
My default environment.rb is overflowing, and i would like to have a separate file
Environment: Built interface using Glade3. Backend is written in Python using the GTK+ Builder
Development Environment : - VS2010 - .Net Framework 4.0, 3.5, 2.0 Staging and Production
My environment - C# 3.5 and ASP.NET 4.0 and VS 2010 Apologies - am

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.