Helodie_Jaqueline 2015-03-13 07:18 采纳率: 0%
浏览 1898

请各位大神看一下这是错在哪里

System.Data.SqlClient.SqlException: 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

我想问一下是不是我数据库连接不成功,还是数据库的连接语句有错,谢谢了

  • 写回答

2条回答 默认 最新

  • jane0418 2015-03-13 07:35
    关注

    在vs2008的Tools -> Options -> Data base Tools -> Design Time - Validation Data base -> Connection Options -> SQL Serevr Instance Name 中设置为空就可以。

    评论

报告相同问题?