Skip to main content
microsoft.data.sqlclient package icon

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.

Total Downloads
1.5B
1,482,322,526
Published
Jun 25, 2026
Latest stable version

Install

.NET CLI
dotnet add package microsoft.data.sqlclient --version 7.0.2
Package Manager Console
Install-Package microsoft.data.sqlclient -Version 7.0.2
PackageReference
<PackageReference Include="microsoft.data.sqlclient" Version="7.0.2" />

Frameworks

.NETFramework4.6.2 net8.0 net9.0 .NETStandard2.0

Dependencies

Microsoft.Bcl.Cryptography
.NETFramework4.6.2
[8.0.0, )
[7.0.2, 8.0.0)
[7.0.2, 8.0.0)
[6.0.2, 7.0.0)
[8.0.1, )
[8.16.0, )
System.Buffers
.NETFramework4.6.2
[4.6.1, )
System.Data.Common
.NETFramework4.6.2
[4.3.0, )
[10.0.3, )
System.Memory
.NETFramework4.6.2
[4.6.3, )
[8.0.1, )
System.Text.Json
.NETFramework4.6.2
[10.0.3, )
System.Threading.Channels
.NETFramework4.6.2
[10.0.3, )
System.ValueTuple
.NETFramework4.6.2
[4.6.2, )
[1.0.0, 2.0.0)

Adoption guide

Workloads running on SQL Server family platforms that need current security and connectivity features.

Databases guide
Why it appears in the guide: Modern SQL Server data provider for .NET with active support for SQL Server and Azure SQL scenarios. Trade-off: Provider behavior and defaults should be validated during major version upgrades.

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.