Microsoft.Data.SqlClient
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.
Install
dotnet add package Microsoft.Data.SqlClient --version 2.0.0
Install-Package Microsoft.Data.SqlClient -Version 2.0.0
<PackageReference Include="Microsoft.Data.SqlClient" Version="2.0.0" />
Frameworks
Dependencies
Adoption guide
Workloads running on SQL Server family platforms that need current security and connectivity features.
NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.
Published vulnerability advisories exist for this version. Read the advisory and choose a remediated version before release.
Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.
The published metadata declares 33 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.