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

8.0.0Latest, 26 Nov 2026
1.8BDownloads, all time
0Advisories on the latest
2Advisories, all versions
MITLicence
1KStars
6.5/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
High Microsoft.Data.SqlClient and System.Data.SqlClient vulnerable to SQL Data Provider Security Feature Bypass CVE-2024-0056 Fixed in 3.1.5, 4.0.5, 5.1.3 9 Jan 2024
Moderate .NET Information Disclosure Vulnerability CVE-2022-41064 Fixed in 1.1.4, 2.1.2 8 Nov 2022

In the news

Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.