Skip to main content
.NETFramework4.6.2net8.0net9.0

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.

Published
Apr 30, 2025
1y ago
Total Downloads
1.6B
1,624,121,266

Install

dotnet add package Microsoft.Data.SqlClient --version 6.1.0-preview1.25120.4
ProductVersions
.NET
net8.0net9.0
Other
.NETFramework4.6.2

README

Changes from Previous Version

v6.0.5v6.1.0-preview1.25120.4
Added Dependencies
Removed Dependencies
Azure.Core(.NETFramework4.6.2)
Microsoft.Identity.Client(.NETFramework4.6.2)
Azure.Core(net8.0)
Azure.Core(net9.0)

Adoption Assessment

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

Databases Guide
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.The published metadata declares 29 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Editorial Note: 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.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.