• 1399/10/14

خطا در اتصال sql به visual studio :

سلام خسته نباشید 

من میخواستم از کد زیر در visual studio به sql وصل بشم اما این ارور رو داد 

میشه کمکم کنید.

کد من :  private string Connection_String = "Data Source=DESKTOP-D50L2N2/SQL2019;Initial Catalog=Test_DB;User Id=***;Password=**";

ارور : 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)'

عکس ارور : 

  • 1399/10/14
  • ساعت 20:05

سلام


toplearn.com/q/LR74