Reputation: 12384
How can I force my ASP.Net application to connect to a SQL Server using TCP/IP, not Named Pipes?
I read somewhere putting "tcp:" in front of the server name in the connectionstring should do the trick, but it does not seem to change anything.
Upvotes: 11
Views: 19190
Reputation: 1666
Just to add a quick hint, could cause issues, if you need to specify a port, do it after the IP address, and use a comma, not a colon.
Upvotes: 0
Reputation: 2981
You can force it in the connection string:
server=tcp:hostname
Upvotes: 26
Reputation: 3340
Use the SQL Server Configuration Manager on the client and disable the client protocols you don't want it to use.
Upvotes: 4