Microsoft.Data.SqlClient 2.1.2

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.

There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 2.12 or higher.

Install-Package Microsoft.Data.SqlClient -Version 2.1.2
dotnet add package Microsoft.Data.SqlClient --version 2.1.2
<PackageReference Include="Microsoft.Data.SqlClient" Version="2.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Data.SqlClient --version 2.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Microsoft.Data.SqlClient, 2.1.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.Data.SqlClient as a Cake Addin
#addin nuget:?package=Microsoft.Data.SqlClient&version=2.1.2

// Install Microsoft.Data.SqlClient as a Cake Tool
#tool nuget:?package=Microsoft.Data.SqlClient&version=2.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

https://go.microsoft.com/fwlink/?linkid=2090501

NuGet packages (431)

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.
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/aspnetcore/tree/718171eeb4bd236ab4f0d9b1ecd97ecc63ec0be1
AspNetCore.HealthChecks.SqlServer
HealthChecks.SqlServer is the health check package for SqlServer.
Serilog.Sinks.MSSqlServer
A Serilog sink that writes events to Microsoft SQL Server
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete and Read (CRUD) operations on SQL Server and SQLite

GitHub repositories (78)

Showing the top 5 popular GitHub repositories that depend on Microsoft.Data.SqlClient:

Repository Stars
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.
dotnet/orleans
Orleans is a cross-platform framework for building distributed applications with .NET
HangfireIO/Hangfire
An easy way to perform background job processing in your .NET and .NET Core applications. No Windows Service or separate process required
NLog/NLog
NLog - Advanced and Structured Logging for Various .NET Platforms

Version History

Version Downloads Last updated
3.0.0-preview2.21106.5 2,586 4/16/2021
3.0.0-preview1.21075.2 9,232 3/16/2021
2.1.2 686,947 3/3/2021
2.1.1 1,386,165 12/18/2020
2.1.0 820,164 11/19/2020
2.1.0-preview2.20297.7 33,911 10/24/2020
2.1.0-preview1.20235.1 82,328 8/22/2020
2.0.1 8,021,226 8/25/2020
2.0.0 3,262,896 6/16/2020
2.0.0-preview4.20142.4 34,056 5/21/2020
2.0.0-preview3.20122.2 67,293 5/1/2020
2.0.0-preview2.20084.1 50,527 3/24/2020
2.0.0-preview1.20021.1 212,323 1/21/2020
1.1.4 15,537 3/10/2021
1.1.3 10,972,851 5/15/2020
1.1.2 811,158 4/15/2020
1.1.1 4,306,042 2/14/2020
1.1.0 2,101,292 11/20/2019
1.1.0-preview2.19309.1 9,545 11/5/2019
1.1.0-preview1.19275.1 47,464 10/2/2019
1.0.19269.1 20,615,945 9/26/2019
1.0.19249.1 4,414,584 9/6/2019
1.0.19239.1 1,088,982 8/27/2019
1.0.19221.1-Preview 50,952 8/9/2019
1.0.19189.1-Preview 108,543 7/8/2019
1.0.19128.1-Preview 197,861 5/8/2019
1.0.19123.2-Preview 1,448 5/6/2019