microsoft.data.sqlclient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
Install
dotnet add package microsoft.data.sqlclient --version 7.0.2
Install-Package microsoft.data.sqlclient -Version 7.0.2
<PackageReference Include="microsoft.data.sqlclient" Version="7.0.2" />
Frameworks
Dependencies
Adoption guide
Workloads running on SQL Server family platforms that need current security and connectivity features.
Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.
The published metadata declares 48 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.