About 50 results
Open links in new tab
  1. c# - How to use SqlClient in ASP.NET Core? - Stack Overflow

    210 I think you may have missed this part in the tutorial: Instead of referencing System.Data and System.Data.SqlClient you need to grab from Nuget: System.Data.Common and …

  2. Why can't I use Microsoft.Data.SqlClient with .NET 8?

    Microsoft.Data.SqlClient is not supported on this platform I then tried to lower the versions of Microsoft.Data.SqlClient to 4.0.5 and when calling this class from a Console application I receive:

  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. This works …

  5. 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.

  6. Could not load file or assembly Microsoft.Data.SqlClient, Version=5.0.0.0

    Feb 3, 2023 · There can be multiple root causes for this issue, but based on your specific scenario (specifically Microsoft.Data.SqlClient 5.0.0.0 on linux app service), your build target is likely wrong.

  7. .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 …

  8. .net - When should I be using Odbc, OleDb, SQLClient? What are the ...

    Oct 21, 2015 · 4 System.Data.SQLClient Connects to SQL Server 2000 and later only, but you will get optimal performance when connecting to those databases. System.Data.OledbClient Connects to …

  9. c# - Microsoft.Data.SqlClient SqlParameter not passing size to Azure ...

    Mar 26, 2025 · I have a view in an Azure SQL Server database, and I am querying that view using the Microsoft.Data.SqlClient package. However, when I use parameters in my SqlCommand through the …

  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, 1 month ago Modified 1 month ago Viewed 63k times