You are on page 1of 17

ADO.

NET is an object oriented framework


that allows you to interact with database
systems
We usually interact with database systems
through SQL queries or stored procedures
The best thing about ADO.NET is that it is
extremely flexible and efficient

Another important aspect of disconnected


architecture is that it maintains a local
repository of data in the dataset object.
The dataset object stores the tables, their
relationships and their different constraints.
The user can perform operations like update,
insert and delete on this local dataset.
The changes made to the dataset are applied
to the actual database as a batch when
needed.

All of the generic classes for data access are


contained in the System.Data namespace
Class: DataSet
The DataSet is a local buffer of tables or a
collection of disconnected recordsets
Class: DataTable
A DataTable is used to contain data in tabular
form using rows and columns

Class: Connection
Creates a connection to your data source
Class: Command
Provides access to commands to execute
against your data source
Class: DataReader
Provides a read-only, forward-only stream
containing your data

Class: DataAdapter
Serves as an ambassador between your
DataSet and data source, proving the
mapping instructions between the two

Class: DataRow
Represents a single record or row in a
DataTable
Class: DataColumn
Represents a column or field of a DataTable
Class: DataRelation
Represents the relationship between different
tables in a DataSet

SQL SELECT Statement


This query is used to select certain columns of
certain records from one or more database
tables.

1.
2.

create databases in Microsoft Access


Select add New Data Source from Data
menu

3. create databases in Microsoft Access


1. Select add New Data Source from Data
menu

You might also like