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.
dotnet add package Microsoft.Data.SqlClient --version 5.1.8
Install-Package Microsoft.Data.SqlClient -Version 5.1.8
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.41.0, ) |
| Azure.Identity | [1.12.1, ) |
| Microsoft.Data.SqlClient.SNI | [5.1.2, ) |
| Microsoft.Identity.Client | [4.76.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [6.35.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [6.35.0, ) |
| System.Buffers | [4.5.1, ) |
| System.Text.Encodings.Web | [6.0.1, ) |
| System.Text.Json | [6.0.11, ) |
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.41.0, ) |
| Azure.Identity | [1.12.1, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [5.1.2, ) |
| Microsoft.Identity.Client | [4.76.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [6.35.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [6.35.0, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| Microsoft.Win32.Registry | [5.0.0, ) |
| System.Buffers | [4.5.1, ) |
| System.Configuration.ConfigurationManager | [6.0.1, ) |
| System.Runtime.Caching | [6.0.0, ) |
| System.Runtime.Loader | [4.3.0, ) |
| System.Security.Cryptography.Cng | [5.0.0, ) |
| System.Security.Permissions | [6.0.0, ) |
| System.Security.Principal.Windows | [5.0.0, ) |
| System.Text.Encoding.CodePages | [6.0.0, ) |
| System.Text.Encodings.Web | [6.0.1, ) |
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.41.0, ) |
| Azure.Identity | [1.12.1, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [5.1.2, ) |
| Microsoft.Identity.Client | [4.76.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [6.35.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [6.35.0, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| Microsoft.Win32.Registry | [5.0.0, ) |
| System.Configuration.ConfigurationManager | [6.0.1, ) |
| System.Runtime.Caching | [6.0.0, ) |
| System.Runtime.Loader | [4.3.0, ) |
| System.Security.Cryptography.Cng | [5.0.0, ) |
| System.Security.Permissions | [6.0.0, ) |
| System.Security.Principal.Windows | [5.0.0, ) |
| System.Text.Encoding.CodePages | [6.0.0, ) |
| System.Text.Encodings.Web | [6.0.1, ) |
| 包名 | 版本要求 |
|---|---|
| Azure.Core | [1.41.0, ) |
| Azure.Identity | [1.12.1, ) |
| Microsoft.Data.SqlClient.SNI.runtime | [5.1.2, ) |
| Microsoft.Identity.Client | [4.76.0, ) |
| Microsoft.IdentityModel.JsonWebTokens | [6.35.0, ) |
| Microsoft.IdentityModel.Protocols.OpenIdConnect | [6.35.0, ) |
| Microsoft.SqlServer.Server | [1.0.0, ) |
| System.Configuration.ConfigurationManager | [6.0.1, ) |
| System.Diagnostics.DiagnosticSource | [6.0.1, ) |
| System.Runtime.Caching | [6.0.0, ) |
| System.Security.Permissions | [6.0.0, ) |
| System.Security.Principal.Windows | [5.0.0, ) |
| System.Text.Encoding.CodePages | [6.0.0, ) |
| System.Text.Encodings.Web | [6.0.1, ) |
| 作者 | Microsoft |
|---|---|
| 发布时间 | 2025-11-14 14:26:24 |
| 项目主页 | https://aka.ms/sqlclientproject |
| 许可证 | https://www.nuget.org/packages/Microsoft.Data.SqlClient/5.1.8/license |