Microsoft.Data.SqlClient 6.1.7

GitHub license Nuget Build status

Microsoft SqlClient Data Provider for SQL Server

Microsoft.Data.SqlClient is a .NET data provider for Microsoft SQL Server and the Azure SQL family of databases. It grew from a union of the two System.Data.SqlClient components which live independently in .NET and .NET Framework. Going forward, support for new SQL Server and Azure SQL features will only be implemented in Microsoft.Data.SqlClient.

Supportability

The Microsoft.Data.SqlClient package supports the following environments:

  • .NET Framework 4.6.2+
  • .NET 8.0+

Download

The Microsoft.Data.SqlClient NuGet package is available on NuGet.org.

SNI Package References

When targeting .NET Framework on Windows, a package reference to Microsoft.Data.SqlClient.SNI loads native Microsoft.Data.SqlClient.SNI.<platform>.dll libraries into the client's build directories.

When targeting .NET on Windows, a package reference to Microsoft.Data.SqlClient.SNI.runtime loads arm64, x64 and x86 native Microsoft.Data.SqlClient.SNI.dll libraries into subdirectories in the client's build directory.

Topic Link to File
Best Practices coding-best-practices.md
Build Guide BUILDGUIDE.md
Changelog CHANGELOG.md
Code of Conduct CODE_OF_CONDUCT.md
Coding Style coding-style.md
Contributing CONTRIBUTING.md
Copyright Information COPYRIGHT.md
Review Process review-process.md
Support Policy SUPPORT.md

Special thanks to everyone who has contributed to the project. We thank you for your continuous support in improving the SqlClient library!

Up-to-date list of contributors: Contributor Insights

Release Notes

All preview and stable driver release notes are available under release-notes.

Porting from System.Data.SqlClient

Refer to porting-cheat-sheet.md for a safe porting experience from System.Data.SqlClient to Microsoft.Data.SqlClient and share your experience with us by enhancing this guide for future developers.

Still have questions?

Check out our FAQ. Still not answered? Create an issue to ask a question.

Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include Microsoft, Azure, DotNet, AspNet, Xamarin, and our GitHub organizations.

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's definition of a security vulnerability, please report it to us as described below.

Reporting Security Issues

Please do not report security vulnerabilities through public GitHub issues.

Instead, please report them to the Microsoft Security Response Center (MSRC) at https://msrc.microsoft.com/create-report.

If you prefer to submit without logging in, send email to secure@microsoft.com. If possible, encrypt your message with our PGP key; please download it from the Microsoft Security Response Center PGP Key page.

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at microsoft.com/msrc.

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

  • Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
  • Full paths of source file(s) related to the manifestation of the issue
  • The location of the affected source code (tag/branch/commit or direct URL)
  • Any special configuration required to reproduce the issue
  • Step-by-step instructions to reproduce the issue
  • Proof-of-concept or exploit code (if possible)
  • Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our Microsoft Bug Bounty Program page for more details about our active programs.

Preferred Languages

We prefer all communications to be in English.

Policy

Microsoft follows the principle of Coordinated Vulnerability Disclosure.

License

The Microsoft.Data.SqlClient Driver for SQL Server is licensed under the MIT license. See the LICENSE file for more details.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Showing the top 20 packages that depend on Microsoft.Data.SqlClient.

Packages Downloads
Aspire.Hosting.SqlServer
Microsoft SQL Server support for .NET Aspire.
1 958
Aspire.Hosting.SqlServer
Microsoft SQL Server support for Aspire.
329
AspNetCore.HealthChecks.SqlServer
HealthChecks.SqlServer is the health check package for SqlServer.
2 053
Kros.Utils
General utilities and helpers.
420
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
235
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
371
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
443
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
473
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
711
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
809
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
1 009
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
1 543
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
1 585
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
2 359
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
3 123
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
10 611
Microsoft.EntityFrameworkCore.SqlServer.HierarchyId
Adds hierarchyid support to the SQL Server EF Core provider
749
Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite
NetTopologySuite support for the Microsoft SQL Server database provider for Entity Framework Core.
1 850
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/4ae1269bff83362236d0f3bd4c9302e6a1e9341c
227
Serilog.Sinks.MSSqlServer
A Serilog sink that writes events to Microsoft SQL Server and Azure SQL
220

.NET Framework 4.6.2

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
7.1.1 1 2026-10-13
7.1.0 0 2026-09-18
7.1.0-preview3.26238.4 0 2026-08-27
7.1.0-preview2.26190.5 0 2026-07-10
7.1.0-preview1.26124.5 0 2026-05-05
7.0.3 0 2026-09-10
7.0.2 48 2026-09-14
7.0.1 384 2026-08-28
7.0.0 133 2026-03-18
7.0.0-preview4.26064.3 0 2026-03-05
7.0.0-preview3.25342.7 0 2025-12-08
7.0.0-preview2.25289.6 0 2025-10-16
7.0.0-preview1.25257.1 0 2025-09-14
6.1.7 1 2026-10-14
6.1.6 261 2026-07-08
6.1.5 0 2026-04-27
6.1.4 53 2026-03-09
6.1.3 0 2025-11-12
6.1.2 126 2025-11-26
6.1.1 2 305 2025-09-10
6.1.0 344 2025-08-07
6.1.0-preview2.25178.5 0 2025-06-27
6.1.0-preview1.25120.4 0 2025-04-30
6.0.5 0 2026-01-16
6.0.4 0 2025-11-15
6.0.3 0 2025-10-08
6.0.2 14 2025-05-20
6.0.1 187 2025-03-27
6.0.0-preview3.24332.3 0 2024-11-28
6.0.0-preview2.24304.8 0 2024-10-30
6.0.0-preview1.24240.8 0 2024-08-27
5.2.3 1 769 2025-09-10
5.2.2 11 289 2025-02-28
5.2.1 2 2025-09-17
5.2.0 1 2025-12-19
5.2.0-preview5.24024.3 0 2024-01-25
5.2.0-preview4.23342.2 0 2023-12-08
5.2.0-preview3.23201.1 0 2023-07-20
5.2.0-preview2.23159.1 0 2023-06-08
5.2.0-preview1.23109.1 0 2023-04-20
5.1.9 1 2026-03-12
5.1.8 0 2025-11-14
5.1.7 8 2026-03-05
5.1.6 3 595 2025-02-27
5.1.5 68 2025-04-11
5.1.4 4 825 2025-01-15
5.1.3 0 2024-01-09
5.1.2 0 2023-10-26
5.1.1 42 2025-04-02
5.1.0 28 2025-03-25
5.1.0-preview2.22314.2 0 2022-11-10
5.1.0-preview1.22279.3 0 2022-10-06
5.0.2 0 2023-03-31
5.0.1 1 003 2025-03-06
5.0.0 0 2022-08-05
5.0.0-preview3.22168.1 0 2022-06-17
5.0.0-preview2.22096.2 0 2022-04-06
5.0.0-preview1.22069.1 0 2022-03-10
4.1.1 0 2022-09-13
4.1.0 0 2022-01-31
4.0.6 0 2024-08-21
4.0.5 47 2025-10-08
4.0.4 0 2023-10-30
4.0.3 0 2023-04-20
4.0.2 0 2022-09-13
4.0.1 0 2022-01-17
4.0.0 10 133 2025-01-15
4.0.0-preview3.21293.2 0 2021-10-20
4.0.0-preview2.21264.2 0 2021-09-21
4.0.0-preview1.21237.2 0 2021-08-25
3.1.7 0 2024-08-21
3.1.5 0 2024-01-09
3.1.4 0 2023-10-31
3.1.3 0 2023-03-10
3.1.2 0 2023-02-03
3.1.1 0 2022-08-12
3.1.0 0 2022-03-30
3.0.1 0 2021-09-24
3.0.0 8 881 2025-01-20
3.0.0-preview3.21140.5 0 2021-05-20
3.0.0-preview2.21106.5 0 2021-04-16
3.0.0-preview1.21075.2 0 2021-03-16
2.1.7 501 2025-03-14
2.1.6 0 2023-04-27
2.1.5 0 2022-08-30
2.1.4 9 443 2025-01-15
2.1.3 0 2021-05-21
2.1.2 0 2021-03-03
2.1.1 8 369 2025-02-27
2.1.0 0 2020-11-19
2.1.0-preview2.20297.7 0 2020-10-24
2.1.0-preview1.20235.1 0 2020-08-22
2.0.1 0 2020-08-25
2.0.0 0 2020-06-16
2.0.0-preview4.20142.4 0 2020-05-21
2.0.0-preview3.20122.2 0 2020-05-01
2.0.0-preview2.20084.1 0 2020-03-24
2.0.0-preview1.20021.1 0 2020-01-21
1.1.4 0 2021-03-10
1.1.3 0 2020-05-15
1.1.2 0 2020-04-15
1.1.1 0 2020-02-14
1.1.0 0 2019-11-20
1.1.0-preview2.19309.1 0 2019-11-05
1.1.0-preview1.19275.1 0 2019-10-02
1.0.19269.1 0 2019-09-26
1.0.19249.1 0 2019-09-06
1.0.19239.1 0 2019-08-27
1.0.19221.1-Preview 0 2019-08-09
1.0.19189.1-Preview 0 2019-07-08
1.0.19128.1-Preview 0 2019-05-08
1.0.19123.2-Preview 0 2019-05-06