About 51 results
Open links in new tab
  1. Why can't I use Microsoft.Data.SqlClient with .NET 8?

    Microsoft.Data.SqlClient is not supported on this platform message usually means the native SQL‑Client dependencies aren’t being included in your final build. You must have runtimes folder and depending …

  2. c# - How to use SqlClient in ASP.NET Core? - Stack Overflow

    Try getting System.Data.Common and System.Data.SqlClient via Nuget and see if this adds the above dependencies for you, but in a nutshell you are missing System.Runtime. Edit: As per Mozarts …

  3. Connect to SQL using "microsoft.data.sqlclient - Stack Overflow

    Jan 19, 2023 · The question contains the answer. The provided article is the "source code" for the official documentation which is here. It shows us how to connect to Azure SQL with a managed identity …

  4. How to use Microsoft.Data.SqlClient with Microsoft.Aspnet.identity ...

    Dec 18, 2024 · I have a new requirement to use azure managed identity, so I need to replace System.Data.SqlClient to Microsoft.Data.SqlClient and change the connection string.

  5. .net - SQL Connection Error: System.Data.SqlClient.SqlException ...

    May 26, 2015 · I am seeing this in several situations and it is intermittent in our web based application connecting to SQL Server 2008 R2 serve back end. Users are coming across a point 2 point …

  6. When to use Microsoft.Data.SqlClient.SqlException vs System.Data ...

    Nov 12, 2021 · I understand that around 2019 Microsoft created Microsoft.Data.SqlClient as their replacement for System.Data.SqlClient. System.Data.SqlClient will be supported ongoing but new …

  7. c# - How to use SqlCommand, SqlDataReader ... - Stack Overflow

    Oct 16, 2024 · 1 For .NET Core, this all moved to NuGet packages in the Microsoft.Data namespace. You have to add the Microsoft.Data.SqlClient Nuget package and change System.Data to …

  8. Unable to locate System.Data.SqlClient reference

    I have also attempted to use System.Data, but no reference to SqlClient is located within. I have manually added the dll/reference for System.Data, but also did not resolve the reference issue.

  9. How to read SQL Table data into a C# DataTable - Stack Overflow

    May 20, 2011 · I've read a lot of posts about inserting a DataTable into a SQL table, but how can I pull a SQL table into a C#/.NET DataTable?

  10. How to fix "The target principal name is incorrect error" with ...

    Dec 30, 2021 · How to fix "The target principal name is incorrect error" with Microsoft.Data.SqlClient Version=4.0.0 Asked 4 years, 4 months ago Modified 3 months ago Viewed 65k times