SQL数据库镜像和您的Web应用程序 [英] SQL Database Mirroring and your web application

查看:83
本文介绍了SQL数据库镜像和您的Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

执行SQL Server数据库镜像时,您有两个服务器

You have two servers when you perform a SQL Server database mirroring

您有1个主数据库和1个镜像数据库

You have 1 primary database and 1 mirror database

您是否需要对Web应用程序进行任何更改以告知您正在使用数据库镜像?如果不是,您的Web应用程序如何知道主数据库出现故障时要使用哪个数据库?

Do you need to make any changes to web application to tell it that your using database mirroring? If not how does your web application know which database to use when the primary database fails?

推荐答案

可以在连接字符串中进行设置.请参见数据库镜像"示例此处

It can be set in the connection string. See the "database mirroring" example here

这篇关于SQL数据库镜像和您的Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆