代码改变世界

一个值200元的小问题。

2007-03-20 17:24  Rainbow  阅读(393)  评论(0)    收藏  举报
问题是这样的:
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: TCP Provider, error: 0 - 不能做任何连接,因为目标机器积极地拒绝它。)

是一个.NET2.0的站点,VB写的。我看应该是.net2.0中默认对SQL2005的连接,但是他的数据库是SQL2000的。于是就GOOGLE了下。。
http://www.cnblogs.com/soso/archive/2006/05/23/406937.html兄弟的Blogs上找到了答案。

打开IIS属性-》虚拟目录属性-》选Net 2.0-》点‘编辑配置’-》删除所有连接SQlexpress的项
当然,最好连全局的配置也删除,
打开IIS属性-》站点属性-》选Net 2.0-》点‘编辑全局配置’
-》删除所有连接SQlexpress的项