Ado
Ado
Ado
NET presentation
INTRODUCTION
ADO stands for Microsoft ActiveX Data Objects
It is a part of the .Net Framework which is used to establish a
connection between the .NET Application and data sources. The
Data sources can be SQL Server, Oracle, MySQL, and XML, etc.
ADO.NET consists of classes that can be used to connect,
retrieve, insert and delete data.
ADO.NET mainly uses System.Data.dll and System.Xml.dll.
COMPONENTS OF ADO.NET
Components are designed for data manipulation and faster
data access. Connection, Command, DataReader,
DataAdapter, DataSet, and DataView are the
components of ADO.NET that are used to perform
database operations.
ADO.NET has two main components that are used for
accessing and manipulating data. They are as follows:
1. Data provider and
2. DataSet.
WHAT IS .NET DATA
PROVIDERS?
The Database can not directly execute our C# code, it
only understands SQL. So, if a .NET application needs to
retrieve data or to do some insert, update, and delete
operations from or to a database, then the .NET
application needs to
1. Connect to the Database
2. Prepare an SQL Command
3. Execute the Command
WHAT IS .NET DATA
PROVIDERS?
we are using some classes such as
SQLConnection
SQLCommand
SQLDataReader
SQLDataAdapter
All the classes are prefixed with the word SQL, it means these
classes are going to interact with only the SQL Server database.
That means once the Fill method completes its execution, then
the connection closes automatically.