| applyTo | ** |
|---|
When working with Microsoft.Data.SqlClient, reference official documentation for accurate API behavior.
| Package | NuGet URL |
|---|---|
| Microsoft.Data.SqlClient | https://www.nuget.org/packages/Microsoft.Data.SqlClient |
| Microsoft.Data.SqlClient.SNI | https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI |
| Microsoft.Data.SqlClient.SNI.runtime | https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI.runtime |
| Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider | https://www.nuget.org/packages/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider |
| Feature | SQL Server Version |
|---|---|
| TDS 7.4 | 2012+ |
| TDS 8.0 (Strict Encryption) | 2022+ |
| Always Encrypted | 2016+ |
| Secure Enclaves | 2019+ |
| JSON Data Type | 2025+ |
| Vector Data Type | 2025+ |
| UTF-8 Collations | 2019+ |
The driver implementation targets
net462;net10.0. Reference and unsupported-platform projects also retainnetstandard2.0, which does not extend driver runtime support. Existing dual-target tests targetnet462;net10.0; modern-only tests, including performance tests, targetnet10.0.
| .NET Version | Status | Notes |
|---|---|---|
| .NET Framework 4.6.2 | Supported | Minimum for netfx; shipped net462 TFM |
| .NET Framework 4.8.1 | Supported | Latest netfx |
| .NET 8.0 / .NET 9.0 | Not supported by this branch | No shipped or test TFM |
| .NET 10.0 | Supported | Minimum modern runtime; shipped net10.0 TFM |
PackageCompatibility tool/tests retain net481;net10.0 (xUnit v3), and AzureSqlConnector retains
net481;net10.0-windows. The historical SniCloseLegacyRepro matrix is unchanged.
| Project | Repository | Purpose |
|---|---|---|
| Entity Framework Core | https://github.com/dotnet/efcore | ORM using SqlClient |
| Dapper | https://github.com/DapperLib/Dapper | Micro-ORM |
| SqlServer Provider for EF Core | https://github.com/dotnet/efcore | EF Core SQL Server provider |
- GitHub Issues: https://github.com/dotnet/SqlClient/issues
- GitHub Discussions: https://github.com/dotnet/SqlClient/discussions
- Stack Overflow: Tag
microsoft.data.sqlclient - NuGet Issues: Report via GitHub
When implementing a feature or fixing a bug:
- Discover existing code — Search the codebase for relevant classes/methods and patterns
- Search documentation — Verify API behavior using official Microsoft Learn documentation
- Check for related issues — Search
dotnet/SqlClientissues and PRs on GitHub - Find code samples — Look for official code examples in Microsoft Learn
- Check pipeline status — Review CI/CD build status if relevant
This research workflow ensures implementations align with official documentation and existing patterns.