An error has occurred while establishing a connection to the server. 
\ When connecting to SQL Server 2005, this failure may be caused by the fact that under the 
default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not 
open a connection to SQL Server)前几分钟还能运行出来呢,吃完饭回来就到con.open()的时候就出错
以前好像也遇到过这样的情况,重起机就好了,可是今天怎么折腾也不行
大家帮帮忙吧!