Connecting UWP App to Remote SQL Server 2008 provider: TCP Provider, error: 0

后端 未结 1 1101
醉梦人生
醉梦人生 2021-01-16 14:10

System.Data.SqlClient.SqlException: \'A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider

相关标签:
1条回答
  • 2021-01-16 14:49

    I tested the connection between UWP app and SQL server 2008 R2, and can reproduce your issue. I also tested the connection between UWP app and SQL server 2017, with the same code snippet, same configuration for SQL server, it worked very well. So that as a workaround I strongly recommend you to upgrade the SQL server to 2017 since SQL server 2008 R2 is already out of date that not supported.

    Additionally, don't forgget to Enable TCP/IP Network Protocol for SQL Server which you didn't mention it in above description.

    0 讨论(0)
提交回复
热议问题