System.Data.OleDb 10.0.0-preview.2.25163.2
About
This package implements a data provider for OLE DB data sources.
Key Features
Allows access to legacy OLE DB data sources.
How to Use
This is a basic example of retrieving the results of a query using an OleDbDataReader. For examples of using an OleDbDataAdapter, and of updating an OLE DB data source, please see the documentation.
using System.Data.OleDb;
string connectionString = ""; // Fill in
string queryString = "SELECT OrderID, CustomerID FROM Orders";
using OleDbConnection connection = new OleDbConnection(connectionString);
using OleDbCommand command = new OleDbCommand(queryString, connection);
connection.Open();
using OleDbDataReader reader = command.ExecuteReader();
while (reader.Read())
{
Console.WriteLine(reader.GetInt32(0) + ", " + reader.GetString(1));
}
Main Types
- OleDbConnection represents an open connection to an OLE DB data source.
- OleDbCommand represents an SQL statement or stored procedure to execute against an OLE DB data source.
- OleDbDataReader provides a way of reading a forward-only stream of data rows from an OLE DB data source.
- OleDbDataAdapter represents a set of data commands and a database connection that are used to fill a
DataSetand update the OLE DB data source.
Additional Documentation
Related Packages
System.Data.Odbc is a similar package for accessing ODBC data sources.
Feedback & Contributing
System.Data.OleDb is released as open source under the MIT license. Bug reports are welcome at the GitHub repository. This package is considered complete and we only consider low-risk, high-impact fixes that are necessary to maintain or improve quality.
Showing the top 20 packages that depend on System.Data.OleDb.
| Packages | Downloads |
|---|---|
|
Microsoft.SqlServer.SqlManagementObjects
The SQL Server Management Objects (SMO) Framework is a set of objects designed for programmatic management of Microsoft SQL Server and Microsoft Azure SQL Database.
|
7 |
|
DevExpress.Win.Design
.NET version of DevExpress controls with a preview version of design-time features. Requires Visual Studio v16.10 or newer.
|
6 |
|
Microsoft.SqlServer.SqlManagementObjects
The SQL Server Management Objects (SMO) Framework is a set of objects designed for programmatic management of Microsoft SQL Server and Microsoft Azure SQL Database.
|
6 |
|
DevExpress.Reporting.Demos
Provides components for .NET Core 3 Reporting demos.
|
5 |
|
DevExpress.Win.Dashboard.Design
.NET version of DevExpress Dashboard controls with a preview version of design-time features. Requires Visual Studio v16.10 or newer.
|
5 |
|
DevExpress.Win.Demos
Provides components for .NET Core 3 Win demos.
|
5 |
|
Microsoft.SqlServer.SqlManagementObjects
The SQL Server Management Objects (SMO) Framework is a set of objects designed for programmatic management of Microsoft SQL Server and Microsoft Azure SQL Database.
|
5 |
.NET Framework 4.6.2
- No dependencies.
.NET 8.0
- System.Configuration.ConfigurationManager (>= 10.0.0-preview.2.25163.2)
- System.Diagnostics.PerformanceCounter (>= 10.0.0-preview.2.25163.2)
.NET 9.0
- System.Configuration.ConfigurationManager (>= 10.0.0-preview.2.25163.2)
- System.Diagnostics.PerformanceCounter (>= 10.0.0-preview.2.25163.2)
.NET 10.0
- System.Configuration.ConfigurationManager (>= 10.0.0-preview.2.25163.2)
- System.Diagnostics.PerformanceCounter (>= 10.0.0-preview.2.25163.2)
.NET Standard 2.0
- No dependencies.