0

拥有一台具有多个 NIC 的计算机,我需要以某种方式指定用于连接 SQL Server 的计算机。

4

3 回答 3

2

Following on from @pzycoman, SqlConnection (and SQL OLEDB/SQL Server ODBC) has no explicit connection string semantic to express the bound NIC other than to specify the destination server host address (which in turn triggers the route metrics discussion). Splitting out services or applications onto different subnets can work - but equally can also generate the utilization asymmetry similar what you see today.

Another potential option would be NIC teaming if your adapters support it. Teaming software bonds multiple NICs into a single logical channel for increased throughput with less NetOps complexity. This happens at a much lower level in the OSI and as such is transparent to your applications and services.

Teaming used to be frowned on for a number of reasons (predominantly NLB issues and driver quality), but those have been largely mitigated in the last couple of years.

As always engineering mentality will help - test everything.

于 2008-10-08T16:28:23.197 回答
0

如果 NIC 有不同的子网,windows 应该自动通过正确的 NIC 路由请求(从命令行运行“路由打印”将显示什么被路由到哪里)

于 2008-10-08T16:12:30.547 回答
0

Windows 网络堆栈将确定使用哪个 NIC 来访问您的数据库服务器。如果您在连接字符串中使用 sql 服务器的 netbios 名称,您可能希望将其替换为首选 nic 所在子网中的 IP 地址(或 dns 条目)。

于 2008-10-10T12:58:39.630 回答