当我尝试运行我的项目,我得到follwing错误消息无法连接数据库
Message : Message : Message : Message : Message : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
我跟我的本地数据库和数据库服务器都尝试,得到同样的错误。 但是当我将它上传到我的测试网站时,它在那里工作。当我运行我的另一个项目时,他们的工作正常。 请告诉我我需要做什么在我的本地机器上运行。
添加ConnectionString(空白输出用户名和密码)和其他SQL特定信息,例如SQL Server的名称,实例名称等。 – tomasmcguinness 2011-01-27 11:37:03
相同的Connectionstring在服务器上工作,为什么不能在本地机器上工作? – Vijjendra 2011-01-27 11:58:37