问题
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!
回答1:
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
来源:https://stackoverflow.com/questions/4430381/force-the-tcp-ip-protocol-in-connection-string