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.
dotnet add package Microsoft.Data.SqlClient --version 6.1.4
Install-Package Microsoft.Data.SqlClient -Version 6.1.4
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.50.0, ) |
| Azure.Identity | [1.17.1, ) |
| Microsoft.Data.SqlClient.SNI | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [8.0.1, ) |
| Microsoft.Identity.Client | [4.80.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [7.7.1, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [7.7.1, ) |
| System.Buffers | [4.6.1, ) |
| System.Data.Common | [4.3.0, ) |
| System.Diagnostics.DiagnosticSource | [8.0.1, ) |
| System.IdentityModel.Tokens.Jwt | [7.7.1, ) |
| System.Memory | [4.6.3, ) |
| System.Security.Cryptography.Pkcs | [8.0.1, ) |
| System.Text.Json | [8.0.6, ) |
| System.Text.RegularExpressions | [4.3.1, ) |
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.50.0, ) |
| Azure.Identity | [1.17.1, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [8.0.1, ) |
| Microsoft.Identity.Client | [4.80.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [7.7.1, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [7.7.1, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| System.Configuration.ConfigurationManager | [8.0.1, ) |
| System.Diagnostics.DiagnosticSource | [8.0.1, ) |
| System.IdentityModel.Tokens.Jwt | [7.7.1, ) |
| System.Security.Cryptography.Pkcs | [8.0.1, ) |
| System.Text.Json | [8.0.6, ) |
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.50.0, ) |
| Azure.Identity | [1.17.1, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [8.0.1, ) |
| Microsoft.Identity.Client | [4.80.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [7.7.1, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [7.7.1, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| System.Configuration.ConfigurationManager | [8.0.1, ) |
| System.Diagnostics.DiagnosticSource | [8.0.1, ) |
| System.IdentityModel.Tokens.Jwt | [7.7.1, ) |
| System.Security.Cryptography.Pkcs | [8.0.1, ) |
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.50.0, ) |
| Azure.Identity | [1.17.1, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [6.0.2, ) |
| Microsoft.Extensions.Caching.Memory | [9.0.11, ) |
| Microsoft.Identity.Client | [4.80.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [7.7.1, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [7.7.1, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| System.Configuration.ConfigurationManager | [9.0.11, ) |
| System.Diagnostics.DiagnosticSource | [9.0.11, ) |
| System.IdentityModel.Tokens.Jwt | [7.7.1, ) |
| System.Security.Cryptography.Pkcs | [9.0.11, ) |
| 作者 | Microsoft |
|---|---|
| 发布时间 | 2026-01-15 18:01:21 |
| 项目主页 | https://aka.ms/sqlclientproject |
| 许可证 | https://www.nuget.org/packages/Microsoft.Data.SqlClient/6.1.4/license |