我已经写在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