SqlException: System.Data.SqlClient.SqlException (0x80131904)

谁说我不能喝 提交于 2019-11-29 16:07:57

This error is not a login issue. It's not a matter of invalid credentials. You would get a different error message for that. This error message simply means it cannot find either the server (probably) or the database in the connection string.

There is a open source program on CodePlex you can download to testing connection string etc. You can find it here. This should help you determine where/what the problem is.

To me it looks like in connection string you are calling your server by the machine name and SQL server is not enabled with Named Pipes. The solution to the problem is: either enable the named pipes in SQL Server configuration or in connection string provide the IP Address of the SQL Server instead of name.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!