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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:01:00+00:00 2026-05-10T19:01:00+00:00

I currently have an asp.net website hosted on two web servers that sit behind

  • 0

I currently have an asp.net website hosted on two web servers that sit behind a Cisco load balancer. The two web servers reference a single MSSQL database server.

Since this database server is a single point of failure, I’m adding an additional MSSQL server for backup. I would like to setup my web.config files to write everything to both MSSQL servers, but only read from the ‘primary’ database server unless it is unreachable for some reason, at which point the backup MSSQL server would be used.

Is this possible via a web.config file setting, or must this be done in code? Thanks in advance for any help.

New Information: I just wanted to add further information on this topic after researching it for the past several days – Microsoft TechNet has a good article title ‘Implementing Application Failover with Database Mirroring’ (http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/implappfailover.mspx#EMD).

This specifically covers the database mirroring feature in Microsoft SQL Server 2005 and the new new ‘Failover Partner’ connection string keyword that allows you to specify two server/db instances in a single connection string.

The article is well worth a read if your interested in implementing this type of feature.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T19:01:00+00:00Added an answer on May 10, 2026 at 7:01 pm

    What you want is called ‘failover’, where if one database fails your queries are automatically redirected to the other. This is acheived at the database level, not the application. There are a lot of walkthroughs etc for setting up failover clusters: here’s one for SQL 2000, and another for SQL 2005. Basically, once you set it up, the primary database communicates all activity to the secondary one. If the primary fails, the secondary is (almost) up to date and takes over.

    The servers form a cluster, and look like a single unit – similar to the way your load-balanced web servers look to the outside world. The backup monitors the primary, and if the primary stops responding, the backup takes over receiving queries. If you’re Googling, try also looking adding the keywords ‘database mirroring’ and ‘quorum’.

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

Sidebar

Related Questions

I currently have a website (ASP.NET 3.5, IIS 7.0) that allows users to upload
I have a asp.net application in a web farm (3 servers). Alongside that application
We currently have an asp.net website that we use to generate html emails. Basically
I have an ASP.NET MVC website that connects to a DB via a Web
I have a ASP.Net 2.0 website that is currently using a custom MembershipProvider and
I currently have a databound dropdown list on my ASP.Net C# 2.0 website that
We have a website load balanced across two servers that calls into a WCF
I'm currently writing a website in ASP.NET MVC, and my database (which doesn't have
I have a project that needs to be done using ASP.NET. Currently, I'm using
I'm currently working on web application using VB in ASP.NET. Right now I have

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.