简体   繁体   English

SQL Cluster - 使用数据源(本地)

[英]SQL Cluster - using datasource (local)

Using (local) in the connection string doesn't work on my cluster. 在连接字符串中使用(本地)不适用于我的群集。 I'm assuming it's looking for the default instance on the currently active node instead of the Virtual SQL name. 我假设它正在寻找当前活动节点上的默认实例而不是虚拟SQL名称。 Anyone know how to make this work? 有谁知道如何使这项工作?

edit note: I'd like to use (local) and not localhost - I don't want to change any application generated code. 编辑说明:我想使用(本地)而不是localhost - 我不想更改任何应用程序生成的代码。

The names (local) or (.) will always use the shared memory interface, rather than TCP or Named Pipes, and neither can be used against a clustered instance which requires TCP or Named Pipes over TCP. 名称(本地)或(。)将始终使用共享内存接口,而不是TCP或命名管道,并且两者都不能用于需要TCP或TCP命名管道的群集实例。 You can't use the shared memory interface against a non-local instance, which in the case of a cluster, the instance may or may not be local. 您不能对非本地实例使用共享内存接口,在集群的情况下,实例可能是也可能不是本地实例。

您必须使用群集虚拟SQL服务名称,遗憾的是localhost和(本地)不能在群集上运行

你有没有试过“localhost”(和)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM