[转[tip] localhost vs. (local) in SQL Server connection strings

Posted 排骨虾

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[转[tip] localhost vs. (local) in SQL Server connection strings相关的知识,希望对你有一定的参考价值。

主要区别在于连接协议不同,前者(localhost)使用TCP协议,后者(“(local)”)使用NamedPipe协议。

 

Sample code with SQL Server connection strings often use localhost and (local) interchangeably. They‘re different.

Server=(local);Database=DotNetNuke;Trusted_Connection=True
Uses named pipes

Server=localhost;Database=DotNetNuke;Trusted_Connection=True
Uses a TCP port negotiated on port 1434 udp, which defaults to 1433

原文链接:http://weblogs.asp.net/jongalloway/432062

以上是关于[转[tip] localhost vs. (local) in SQL Server connection strings的主要内容,如果未能解决你的问题,请参考以下文章

转VS2010解决方案转换到VS2008

[Tools] VS Code Tips

[Tips] vs code python选择

VS:101 Visual Studio 2010 Tips

[Tips] vs code 配置anancoda

https: could not reliably determine the server's fully qualified domain name, using localhost.lo