在线 等,比较急 没看懂, 远程就写ip或计算机名 。。 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) 出现了这个错误 按这 config里 该数据库,因为 需要远程访问 你们服务器现在是多少ip,webconfig里面就调用多少ip就可以了 connectionString="Data Source=60.217.22*.***; config里的设置 ,和服务器的IP是一样的 但是企业管理器 里显示 数据 库是localhost ,感觉上 应该 是个远程IP地址 才对,应该是60.217.22*.*** 这个IP,感觉上 把(localhost)改成下面