System.Data.SqlClient
4.9.1
Prefix Reserved
dotnet add package System.Data.SqlClient --version 4.9.1
NuGet\Install-Package System.Data.SqlClient -Version 4.9.1
<PackageReference Include="System.Data.SqlClient" Version="4.9.1" />
<PackageVersion Include="System.Data.SqlClient" Version="4.9.1" />
<PackageReference Include="System.Data.SqlClient" />
paket add System.Data.SqlClient --version 4.9.1
#r "nuget: System.Data.SqlClient, 4.9.1"
#:package System.Data.SqlClient@4.9.1
#addin nuget:?package=System.Data.SqlClient&version=4.9.1
#tool nuget:?package=System.Data.SqlClient&version=4.9.1
About
The legacy .NET Data Provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS).
System.Data.SqlClient is deprecated. Please use Microsoft.Data.SqlClient instead.
Main Types
The main types provided by this library are:
- System.Data.SqlClient.SqlConnection
- System.Data.SqlClient.SqlException
- System.Data.SqlClient.SqlParameter
- System.Data.SqlDbType
- System.Data.SqlClient.SqlDataReader
- System.Data.SqlClient.SqlCommand
- System.Data.SqlClient.SqlTransaction
- System.Data.SqlClient.SqlParameterCollection
- System.Data.SqlClient.SqlClientFactory
Additional Documentation
- Introducing the new Microsoft.Data.SqlClient
- Announcement: System.Data.SqlClient package is now deprecated
- For conceptual information about using this namespace when programming with .NET, see SQL Server and ADO.NET.
- API reference for System.Data.SqlClient can be found in: https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient?view=netframework-4.8.1
- API reference for Microsoft.Data.SqlClient can be found in: https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.sqlclient
Related Packages
License
System.Data.SqlClient is released as open source under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net6.0
- runtime.native.System.Data.SqlClient.sni (>= 4.4.0)
-
net8.0
- runtime.native.System.Data.SqlClient.sni (>= 4.4.0)
NuGet packages (3.8K)
Showing the top 5 NuGet packages that depend on System.Data.SqlClient:
| Package | Downloads |
|---|---|
|
EntityFramework
Entity Framework 6 (EF6) is a tried and tested object-relational mapper for .NET with many years of feature development and stabilization. |
|
|
Microsoft.PowerShell.SDK
Runtime for hosting PowerShell |
|
|
EPPlus.Core
EPPlus.Core is an unofficial port of the EPPlus library to .NET Core. |
|
|
ApprovalUtilities
Common helper classes developed with ApprovalTests |
|
|
AWSXRayRecorder.Handlers.SqlServer
This package contains libraries to trace SqlServer queries. |
GitHub repositories (11)
Showing the top 11 popular GitHub repositories that depend on System.Data.SqlClient:
| Repository | Stars |
|---|---|
|
microsoft/PowerToys
Microsoft PowerToys is a collection of utilities that supercharge productivity and customization on Windows
|
|
|
PowerShell/PowerShell
PowerShell for every system!
|
|
|
DapperLib/Dapper
Dapper - a simple object mapper for .Net
|
|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
|
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
|
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
|
dotnet/orleans
Cloud Native application framework for .NET
|
|
|
HangfireIO/Hangfire
An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
|
|
|
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
|
|
|
dotnet/machinelearning
ML.NET is an open source and cross-platform machine learning framework for .NET.
|
|
|
memstechtips/Winhance
Application designed to optimize, customize and enhance your Windows experience.
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 4.9.1 | 247,178 | 2/18/2026 | |
| 4.9.0 | 30,133,024 | 11/12/2024 | |
| 4.8.6 | 135,700,114 | 1/9/2024 | |
| 4.8.5 | 86,585,954 | 11/8/2022 | |
| 4.8.4 | 5,095,375 | 10/14/2022 | |
| 4.8.3 | 91,984,077 | 9/14/2021 | |
| 4.8.2 | 83,476,916 | 8/11/2020 | |
| 4.8.1 | 115,523,922 | 2/18/2020 | |
| 4.8.0 | 29,513,980 | 12/3/2019 | |
| 4.8.0-preview3.19551.4 | 91,878 | 11/13/2019 | |
| 4.8.0-preview2.19523.17 | 29,241 | 11/1/2019 | |
| 4.8.0-preview1.19504.10 | 51,025 | 10/15/2019 | |
| 4.7.0 | 39,995,795 | 9/23/2019 | |
| 4.7.0-rc1.19456.4 | 18,292 | 9/16/2019 | |
| 4.7.0-preview9.19421.4 | 20,216 | 9/4/2019 | |
| 4.7.0-preview9.19416.11 | 1,739 | 9/4/2019 | |
| 4.7.0-preview8.19405.3 | 80,085 | 8/13/2019 | |
| 4.7.0-preview7.19362.9 | 244,914 | 7/23/2019 | |
| 4.7.0-preview6.19264.9 | 3,849 | 9/4/2019 | |
| 4.5.3 | 962,478 | 2/18/2020 |