Microsoft.Data.SqlClient
2.1.6
Prefix Reserved
| Advisory: https://github.com/advisories/GHSA-98g6-xh36-x2p7 | Severity: high |
An 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
See the version list below for details.
Requires NuGet 2.12 or higher.
dotnet add package Microsoft.Data.SqlClient --version 2.1.6
NuGet\Install-Package Microsoft.Data.SqlClient -Version 2.1.6
<PackageReference Include="Microsoft.Data.SqlClient" Version="2.1.6" />
<PackageVersion Include="Microsoft.Data.SqlClient" Version="2.1.6" />
<PackageReference Include="Microsoft.Data.SqlClient" />
paket add Microsoft.Data.SqlClient --version 2.1.6
#r "nuget: Microsoft.Data.SqlClient, 2.1.6"
#:package Microsoft.Data.SqlClient@2.1.6
#addin nuget:?package=Microsoft.Data.SqlClient&version=2.1.6
#tool nuget:?package=Microsoft.Data.SqlClient&version=2.1.6
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.
| 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 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net46 is compatible. net461 was computed. net462 was computed. 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 2.1
- Microsoft.Data.SqlClient.SNI.runtime (>= 2.1.1)
- Microsoft.Identity.Client (>= 4.21.1)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.8.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.8.0)
- Microsoft.Win32.Registry (>= 4.7.0)
- System.Configuration.ConfigurationManager (>= 4.7.0)
- System.Diagnostics.DiagnosticSource (>= 4.7.0)
- System.Runtime.Caching (>= 4.7.0)
- System.Security.Principal.Windows (>= 4.7.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
.NETCoreApp 3.1
- Microsoft.Data.SqlClient.SNI.runtime (>= 2.1.1)
- Microsoft.Identity.Client (>= 4.21.1)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.8.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.8.0)
- Microsoft.Win32.Registry (>= 4.7.0)
- System.Configuration.ConfigurationManager (>= 4.7.0)
- System.Diagnostics.DiagnosticSource (>= 4.7.0)
- System.Runtime.Caching (>= 4.7.0)
- System.Security.Principal.Windows (>= 4.7.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
.NETFramework 4.6
- Microsoft.Data.SqlClient.SNI (>= 2.1.1)
- Microsoft.Identity.Client (>= 4.21.1)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.8.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.8.0)
-
.NETStandard 2.0
- Microsoft.Data.SqlClient.SNI.runtime (>= 2.1.1)
- Microsoft.Identity.Client (>= 4.21.1)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.8.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.8.0)
- Microsoft.Win32.Registry (>= 4.7.0)
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.4)
- System.Runtime.Caching (>= 4.7.0)
- System.Security.Principal.Windows (>= 4.7.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
-
.NETStandard 2.1
- Microsoft.Data.SqlClient.SNI.runtime (>= 2.1.1)
- Microsoft.Identity.Client (>= 4.21.1)
- Microsoft.IdentityModel.JsonWebTokens (>= 6.8.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 6.8.0)
- Microsoft.Win32.Registry (>= 4.7.0)
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.4)
- System.Runtime.Caching (>= 4.7.0)
- System.Security.Principal.Windows (>= 4.7.0)
- System.Text.Encoding.CodePages (>= 4.7.0)
NuGet packages (2.9K)
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/44525024595742ebe09023abe709df51de65009b |
|
|
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 (246)
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
|
|
|
DapperLib/Dapper
Dapper - a simple object mapper for .Net
|
|
|
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
|
|
|
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
|
|
|
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.
|
|
|
HangfireIO/Hangfire
An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
|
|
|
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
|
|
|
MassTransit/MassTransit
Distributed Application Framework for .NET
|
|
|
TechnitiumSoftware/DnsServer
Technitium DNS Server
|
|
|
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.
|
|
|
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
|
|
|
DotNetNext/SqlSugar
.Net aot ORM SqlServer ORM Mongodb ORM MySql 瀚高 Postgresql ORM DB2 Hana 高斯 Duckdb C# VB.NET Sqlite ORM Oracle ORM Mysql Orm 虚谷数据库 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET9 ORM .NET8 ORM ClickHouse ORM QuestDb ,TDengine ORM,OceanBase ORM,GaussDB ORM,Tidb ORM Object/Relational Mapping
|
|
|
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
|
|
|
dotnet/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
umbraco/Umbraco-CMS
Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 7.0.0-preview3.25342.7 | 35,178 | 12/8/2025 | |
| 7.0.0-preview2.25289.6 | 56,988 | 10/16/2025 | |
| 7.0.0-preview1.25257.1 | 35,032 | 9/14/2025 | |
| 6.1.4 | 685,406 | 1/15/2026 | |
| 6.1.3 | 4,518,514 | 11/12/2025 | |
| 6.1.2 | 5,028,867 | 10/8/2025 | |
| 6.1.1 | 11,157,374 | 8/14/2025 | |
| 6.1.0-preview2.25178.5 | 69,840 | 6/27/2025 | |
| 6.1.0-preview1.25120.4 | 55,956 | 4/30/2025 | |
| 6.0.5 | 4,277 | 1/16/2026 | |
| 6.0.4 | 41,780 | 11/15/2025 | |
| 6.0.3 | 55,534 | 10/8/2025 | |
| 6.0.2 | 17,529,102 | 4/25/2025 | |
| 6.0.1 | 22,658,640 | 1/23/2025 | |
| 6.0.0-preview3.24332.3 | 107,768 | 11/28/2024 | |
| 6.0.0-preview2.24304.8 | 358,940 | 10/30/2024 | |
| 6.0.0-preview1.24240.8 | 161,322 | 8/27/2024 | |
| 5.2.3 | 4,741,738 | 4/29/2025 | |
| 5.2.2 | 81,541,385 | 8/27/2024 | |
| 5.2.1 | 26,730,617 | 5/31/2024 | |
| 5.2.0 | 44,814,100 | 2/28/2024 | |
| 5.2.0-preview5.24024.3 | 902,102 | 1/25/2024 | |
| 5.2.0-preview4.23342.2 | 441,619 | 12/8/2023 | |
| 5.2.0-preview3.23201.1 | 773,654 | 7/20/2023 | |
| 5.2.0-preview2.23159.1 | 51,383 | 6/8/2023 | |
| 5.2.0-preview1.23109.1 | 73,563 | 4/20/2023 | |
| 5.1.9 | 6,412 | 1/13/2026 | |
| 5.1.8 | 39,416 | 11/14/2025 | |
| 5.1.7 | 443,891 | 4/25/2025 | |
| 5.1.6 | 78,514,124 | 8/27/2024 | |
| 5.1.5 | 94,170,887 | 1/29/2024 | |
| 5.1.4 | 41,344,478 | 1/9/2024 | |
| 5.1.3 | 4,698,526 | 1/9/2024 | |
| 5.1.2 | 9,404,855 | 10/26/2023 | |
| 5.1.1 | 64,973,927 | 3/28/2023 | |
| 5.1.0 | 13,771,535 | 1/19/2023 | |
| 5.1.0-preview2.22314.2 | 146,105 | 11/10/2022 | |
| 5.1.0-preview1.22279.3 | 47,948 | 10/6/2022 | |
| 5.0.2 | 13,960,190 | 3/31/2023 | |
| 5.0.1 | 56,263,269 | 10/8/2022 | |
| 5.0.0 | 7,306,432 | 8/5/2022 | |
| 5.0.0-preview3.22168.1 | 14,243 | 6/17/2022 | |
| 5.0.0-preview2.22096.2 | 187,074 | 4/6/2022 | |
| 5.0.0-preview1.22069.1 | 12,466 | 3/10/2022 | |
| 4.1.1 | 3,638,312 | 9/13/2022 | |
| 4.1.0 | 22,928,583 | 1/31/2022 | |
| 4.0.6 | 97,025 | 8/21/2024 | |
| 4.0.5 | 15,644,136 | 1/9/2024 | |
| 4.0.4 | 34,303 | 10/30/2023 | |
| 4.0.3 | 39,509 | 4/20/2023 | |
| 4.0.2 | 210,659 | 9/13/2022 | |
| 4.0.1 | 5,096,363 | 1/17/2022 | |
| 4.0.0 | 15,304,493 | 11/19/2021 | |
| 4.0.0-preview3.21293.2 | 129,915 | 10/20/2021 | |
| 4.0.0-preview2.21264.2 | 19,901 | 9/21/2021 | |
| 4.0.0-preview1.21237.2 | 220,774 | 8/25/2021 | |
| 3.1.7 | 685,985 | 8/21/2024 | |
| 3.1.5 | 1,986,553 | 1/9/2024 | |
| 3.1.4 | 139,449 | 10/31/2023 | |
| 3.1.3 | 463,719 | 3/10/2023 | |
| 3.1.2 | 155,473 | 2/3/2023 | |
| 3.1.1 | 1,389,597 | 8/12/2022 | |
| 3.1.0 | 1,825,370 | 3/30/2022 | |
| 3.0.1 | 41,486,566 | 9/24/2021 | |
| 3.0.0 | 22,103,035 | 6/9/2021 | |
| 3.0.0-preview3.21140.5 | 10,122 | 5/20/2021 | |
| 3.0.0-preview2.21106.5 | 37,970 | 4/16/2021 | |
| 3.0.0-preview1.21075.2 | 119,724 | 3/16/2021 | |
| 2.1.7 | 10,932,468 | 1/9/2024 | |
| 2.1.6 | 3,386,444 | 4/27/2023 | |
| 2.1.5 | 3,331,816 | 8/30/2022 | |
| 2.1.4 | 123,828,648 | 9/21/2021 | |
| 2.1.3 | 3,343,049 | 5/21/2021 | |
| 2.1.2 | 29,329,871 | 3/3/2021 | |
| 2.1.1 | 14,155,677 | 12/18/2020 | |
| 2.1.0 | 3,957,486 | 11/19/2020 | |
| 2.1.0-preview2.20297.7 | 153,494 | 10/24/2020 | |
| 2.1.0-preview1.20235.1 | 174,635 | 8/22/2020 | |
| 2.0.1 | 71,679,014 | 8/25/2020 | |
| 2.0.0 | 18,128,090 | 6/16/2020 | |
| 2.0.0-preview4.20142.4 | 50,147 | 5/21/2020 | |
| 2.0.0-preview3.20122.2 | 102,566 | 5/1/2020 | |
| 2.0.0-preview2.20084.1 | 61,592 | 3/24/2020 | |
| 2.0.0-preview1.20021.1 | 286,423 | 1/21/2020 | |
| 1.1.4 | 2,250,788 | 3/10/2021 | |
| 1.1.3 | 64,209,462 | 5/15/2020 | |
| 1.1.2 | 2,048,954 | 4/15/2020 | |
| 1.1.1 | 14,958,403 | 2/14/2020 | |
| 1.1.0 | 7,819,689 | 11/20/2019 | |
| 1.1.0-preview2.19309.1 | 12,492 | 11/5/2019 | |
| 1.1.0-preview1.19275.1 | 83,202 | 10/2/2019 | |
| 1.0.19269.1 | 45,846,313 | 9/26/2019 | |
| 1.0.19249.1 | 13,770,504 | 9/6/2019 | |
| 1.0.19239.1 | 5,630,050 | 8/27/2019 | |
| 1.0.19221.1-Preview | 60,811 | 8/9/2019 | |
| 1.0.19189.1-Preview | 124,876 | 7/8/2019 | |
| 1.0.19128.1-Preview | 263,786 | 5/8/2019 | |
| 1.0.19123.2-Preview | 5,178 | 5/6/2019 |