Microsoft.Data.SqlClient
5.0.1
Prefix Reserved
| Advisory: https://github.com/advisories/GHSA-98g6-xh36-x2p7 | Severity: high |
Microsoft.Data.SqlClient 5.0.2
Additional DetailsAn important security issue exists in this version of the package. It is recommended to update to a newer version.
https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-0056
A regression was introduced in 5.0.1 that resulted in a memory leak during certain async operations. It's recommended to update to at least 5.0.2 to avoid the issue.
See the version list below for details.
Requires NuGet 2.12 or higher.
dotnet add package Microsoft.Data.SqlClient --version 5.0.1
NuGet\Install-Package Microsoft.Data.SqlClient -Version 5.0.1
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.1" />
<PackageVersion Include="Microsoft.Data.SqlClient" Version="5.0.1" />
<PackageReference Include="Microsoft.Data.SqlClient" />
paket add Microsoft.Data.SqlClient --version 5.0.1
#r "nuget: Microsoft.Data.SqlClient, 5.0.1"
#:package Microsoft.Data.SqlClient@5.0.1
#addin nuget:?package=Microsoft.Data.SqlClient&version=5.0.1
#tool nuget:?package=Microsoft.Data.SqlClient&version=5.0.1
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server 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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Azure.Identity (>= 1.6.0)
- Microsoft.Data.SqlClient.SNI.runtime (>= 5.0.1)
- Microsoft.Identity.Client (>= 4.45.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.21.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.21.0)
- Microsoft.SqlServer.Server (>= 1.0.0)
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Buffers (>= 4.5.1)
- System.Configuration.ConfigurationManager (>= 5.0.0)
- System.Diagnostics.DiagnosticSource (>= 5.0.0)
- System.IO (>= 4.3.0)
- System.Resources.ResourceManager (>= 4.3.0)
- System.Runtime.Caching (>= 5.0.0)
- System.Security.Cryptography.Cng (>= 5.0.0)
- System.Security.Principal.Windows (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 5.0.0)
- System.Text.Encodings.Web (>= 4.7.2)
-
.NETFramework 4.6.2
- Azure.Identity (>= 1.6.0)
- Microsoft.Data.SqlClient.SNI (>= 5.0.1)
- Microsoft.Identity.Client (>= 4.45.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.21.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.21.0)
- System.Buffers (>= 4.5.1)
- System.Configuration.ConfigurationManager (>= 5.0.0)
- System.IO (>= 4.3.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.Security.Cryptography.Algorithms (>= 4.3.1)
- System.Security.Cryptography.Primitives (>= 4.3.0)
- System.Text.Encodings.Web (>= 4.7.2)
-
.NETStandard 2.0
- Azure.Identity (>= 1.6.0)
- Microsoft.Data.SqlClient.SNI.runtime (>= 5.0.1)
- Microsoft.Identity.Client (>= 4.45.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.21.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.21.0)
- Microsoft.SqlServer.Server (>= 1.0.0)
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Buffers (>= 4.5.1)
- System.Configuration.ConfigurationManager (>= 5.0.0)
- System.IO (>= 4.3.0)
- System.Resources.ResourceManager (>= 4.3.0)
- System.Runtime.Caching (>= 5.0.0)
- System.Runtime.Loader (>= 4.3.0)
- System.Security.Cryptography.Cng (>= 5.0.0)
- System.Security.Principal.Windows (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 5.0.0)
- System.Text.Encodings.Web (>= 4.7.2)
-
.NETStandard 2.1
- Azure.Identity (>= 1.6.0)
- Microsoft.Data.SqlClient.SNI.runtime (>= 5.0.1)
- Microsoft.Identity.Client (>= 4.45.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.21.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.21.0)
- Microsoft.SqlServer.Server (>= 1.0.0)
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Buffers (>= 4.5.1)
- System.Configuration.ConfigurationManager (>= 5.0.0)
- System.IO (>= 4.3.0)
- System.Resources.ResourceManager (>= 4.3.0)
- System.Runtime.Caching (>= 5.0.0)
- System.Runtime.Loader (>= 4.3.0)
- System.Security.Cryptography.Cng (>= 5.0.0)
- System.Security.Principal.Windows (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 5.0.0)
- System.Text.Encodings.Web (>= 4.7.2)
NuGet packages (3.3K)
Showing the top 5 NuGet packages that depend on Microsoft.Data.SqlClient:
| Package | Downloads |
|---|---|
|
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core. |
|
|
AspNetCore.HealthChecks.SqlServer
HealthChecks.SqlServer is the health check package for SqlServer. |
|
|
Microsoft.Extensions.Caching.SqlServer
Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using Microsoft SQL Server. This package was built from the source code at https://github.com/dotnet/dotnet/tree/4370ea16341331f045fa9b89cc46e03aed27195c |
|
|
Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite
NetTopologySuite support for the Microsoft SQL Server database provider for Entity Framework Core. |
|
|
Serilog.Sinks.MSSqlServer
A Serilog sink that writes events to Microsoft SQL Server and Azure SQL |
GitHub repositories (275)
Showing the top 20 popular GitHub repositories that depend on Microsoft.Data.SqlClient:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
|
|
|
DapperLib/Dapper
Dapper - a simple object mapper for .Net
|
|
|
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
|
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
|
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
|
|
|
Radarr/Radarr
Movie organizer/manager for usenet and torrent users.
|
|
|
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
|
|
|
dotnet/orleans
Cloud Native application framework for .NET
|
|
|
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
|
|
|
HangfireIO/Hangfire
An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
|
|
|
StockSharp/StockSharp
Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options).
|
|
|
TechnitiumSoftware/DnsServer
Technitium DNS Server
|
|
|
MassTransit/MassTransit
Distributed Application Framework for .NET
|
|
|
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
|
|
|
quartznet/quartznet
Quartz Enterprise Scheduler .NET
|
|
|
Prowlarr/Prowlarr
Prowlarr is an indexer manager/proxy built on the popular *arr .net/reactjs base stack to integrate with your various PVR apps, supporting management of both Torrent Trackers and Usenet Indexers.
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
|
|
|
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 7.1.0-preview1.26124.5 | 9,855 | 5/5/2026 | |
| 7.0.1 | 3,167,028 | 4/24/2026 | |
| 7.0.0 | 4,190,369 | 3/17/2026 | |
| 7.0.0-preview4.26064.3 | 12,342 | 3/5/2026 | |
| 7.0.0-preview3.25342.7 | 151,099 | 12/8/2025 | |
| 7.0.0-preview2.25289.6 | 96,125 | 10/16/2025 | |
| 7.0.0-preview1.25257.1 | 52,104 | 9/14/2025 | |
| 6.1.5 | 415,877 | 4/27/2026 | |
| 6.1.4 | 14,895,552 | 1/15/2026 | |
| 6.1.3 | 12,898,238 | 11/12/2025 | |
| 6.1.2 | 9,941,691 | 10/8/2025 | |
| 6.1.1 | 36,389,823 | 8/14/2025 | |
| 6.0.5 | 101,076 | 1/16/2026 | |
| 6.0.4 | 92,366 | 11/15/2025 | |
| 6.0.3 | 106,935 | 10/8/2025 | |
| 5.1.9 | 132,956 | 1/13/2026 | |
| 5.1.8 | 75,680 | 11/14/2025 | |
| 5.0.1 | 58,974,371 | 10/8/2022 |