远程数据库连接报错
用同样的代码就是只连接数据库。在两台机器上测试,两台都安装sql server2000数据库,在两台机器上运行代码连接在另一台上的数据库服务器,结果其中一台可以连接成功,另一台就报下面的错: 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) 请教大家这个哪里出错了,该怎么解决啊?