力连接字符串的TCP / IP协议字符串、协议、TCP、IP

2023-09-04 09:18:28 作者:棉花糖味的小仙女

我已经写在asp.net中一个数据库驱动的网站。我想修改连接字符串强制协议TCP。请指教。谢谢!

i have a database driven website written in asp.net. i'd like to modify the connection string to force protocol TCP. Please advise. Thanks!

推荐答案

您可以使用服务器= TCP:主机在连接字符串来实现这个

You can use server=tcp:hostname in your connection string to achieve this.

有关详细信息,请参见如何使用在连接字符串中服务器名参数指定客户端网络库

For more details, see How to use the server name parameter in a connection string to specify the client network library