连接字符串到SQL Server群集 [英] connection string to a SQL Server cluster

查看:234
本文介绍了连接字符串到SQL Server群集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以点我或告诉我怎么写连接字符串到SQL Server群集实例?

Could anyone point me or tell me how to write connection string to a SQL Server cluster instance?

我要建立一个SQL Server群集的具体实例的受信任的连接到数据库(初始目录)。我找了很长一段时间,但无法找到从谷歌官方的答案。

I want to establish trusted connection to a database (initial catalog) of the specific instance of a SQL Server cluster. I find for quite some time but can not find official answer from Google.

我要求对C#ADO.Net code中的连接字符串。

I am asking for the connection string for C# ADO.Net code.

我知道怎么写的连接字符串到正常的机非群集SQL Server实例。

I know how to write connection string to a normal one-machine non-cluster SQL Server instance.

推荐答案

服务器名称是虚拟服务器名称。

The server name is the virtual server name.

例如:

  • 您有物理 pserver1 pserver2
  • 在这些共同构成集群 cserver - 该主机上的虚拟服务器 vserv1 (也许,见下文) vserv2
  • You have Physical pserver1, pserver2
  • These together make cluster cserver -This hosts virtual servers vserv1 (and perhaps, see below) vserv2

所以,这是 vserv1 \实例 vserv1 。你不使用物理服务器名

So, it's vserv1\instancename or vserv1. you don't use physical server names

修改的基础上,为虚拟服务器可能的名字的数量:

Edit, based on number of possible names for virtual servers:

集群可以是主动/被动/ A / P)或主动/主动(A / A)

The cluster may be active/passive /A/P) or active/active (A/A)

  • 在A /磷,只有一个虚拟服务器托管和备用节点未主动使用。
  • 在A / A,有2个虚拟服务器,通常每个节点包含之一。每个节点是备用的其它

这篇关于连接字符串到SQL Server群集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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