-할 수 없습니다 SQL 연결 내 SQL 연결 코드에 문제가
SqlConnection con = new SqlConnection("Data Source=D:\\MyDocuments\\Desktop\\WorkHours\\WorkHours\\App_Data\\Database1.sdf;" + "Trusted_Connection=true;");
con.Open();
임 단지가는 연결을 얻으려고 노력하고 메신저이 오류지고, 그 2 개 라인을 통해가는 :
을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)
내 데이터베이스 URL이 정확하다는 것을 100 % 확신합니다. 도움을 받으실 수 있습니다
어떤 언어로 코딩 하시겠습니까? –