| 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+ |
This table describes runtime/test compatibility. The main driver project currently targets
net462,net8.0, andnet9.0; newer runtimes may be used for testing even if no TFM is shipped for them.
| .NET Version | Status | Notes |
|---|---|---|
| .NET Framework 4.6.2 | Supported | Minimum for netfx |
| .NET Framework 4.8.1 | Supported | Latest netfx |
| .NET 8.0 | Supported | LTS; shipped TFM |
| .NET 9.0 | Supported | STS; shipped TFM |
| .NET 10.0 | In testing | Runtime/test-only; package does not currently ship a net10.0 TFM |
| 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.