得到的數據。當我嘗試登錄到我的網站,就會發生錯誤。我也嘗試過運行SQL服務。
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)
連接字符串
Data Source=.\SQLEXPRESS (metro);Initial Catalog=metrodb;Integrated Security=True
你可以請張貼你正在使用的**連接字符串**嗎?該錯誤基本上說,該連接字符串有問題..... –
我已更新我的問題與連接字符串。 –