经典 ASP 可以处理 SQL Server 镜像故障转移吗?
我有几个“经典”ASP 应用程序需要连接到使用数据库镜像的 SQL Server 数据库。 ASP 能否以与 ASP.NET 类似的方式处理故障转移?就像我调整连接字符串以放置故障转移服务器详细信息一样?
I have a couple of "classic" ASP apps that need to connect to a SQL Server database that is using database mirroring. Can ASP handle the failover in a similar way to ASP.NET? As in if I adjust the connection string to put the failover server details?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不让 MSSQL 来完成这项工作呢?
在您的 web.config 中以这种方式设置连接字符串:
Why not just let MSSQL do the job or you.
In your web.config set your connection string this way :
是的,就 ASP 应用程序而言,它被视为主机。如果您有自动故障转移设置,SQL Server 将处理一切。如果您有手动故障转移,则可能需要更改连接字符串中的主机。其他一切都会正常进行。
Yes, as far as the ASP application is concerned, it is seen as a host. If you have automatic failover setup, SQL server will deal with everything. If you have manual failover, you may need to change the host in the connection string. Everything else will then work as normal.