Install
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
Source · Homepage · Ask AI Mode · · Markdown
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
- How to Set Up SqlConnection with Microsoft.Data.SqlClient? dev.to, 7 May 2025
- System.Data.SqlClient used in Azure even though Microsoft.Data.SqlClient is used locally stackoverflow.com, 29 Jan 2025
- Assembly loading failures in Microsoft.Data.SqlClient's dependencies stackoverflow.com, 14 Jan 2025
- Unity "PlatformNotSupportedException" Error with Microsoft.Data.SqlClient stackoverflow.com, 2 Jan 2025
- Can't connect to encrypted SQL Server connection using Microsoft.Data.SqlClient stackoverflow.com, 22 Nov 2024
Sources: NuGet, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.