objective in this session we will discuss about : 1.what is ado. net ? 2.assembly used in ado.net...
TRANSCRIPT
![Page 1: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/1.jpg)
![Page 2: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/2.jpg)
Objective
In this session we will discuss about :
1. What is ADO. NET ?
2. Assembly used in ADO.NET
3. Namespace used in ADO.NET
4. What is the full form of ADO?
5. What are major difference between classic ADO and ADO.NET?
6. ADO.NET Components
7. NET Framework Data Provider
![Page 3: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/3.jpg)
What is ADO. NET ?
• ADO. NET provides a bridge between the front end controls and the back end
database.
![Page 4: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/4.jpg)
Continue…• ADO.NET is a set of classes that expose data access services for .NET Framework
programmers.
• ADO.NET provides data access services in the Microsoft .NET platform.
• ADO.NET provides consistent access to data sources such as SQL Server and XML,
and to data sources exposed through OLE DB and ODBC.
• Data-sharing consumer applications can use ADO.NET to connect to these data
sources and retrieve, handle, and update the data that they contain.
• ADO.NET includes .NET Framework data providers for connecting to a database,
executing commands, and retrieving results.
![Page 5: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/5.jpg)
Assembly used in ADO.NET
• The ADO.NET classes are found in System.Data.dll, and are integrated with the XML
classes found in System.Xml.dll.
• ADO.NET is a set of computer software components that programmers can use to
access data and data services based on disconnected DataSets and XML.
![Page 6: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/6.jpg)
Namespace used in ADO.NET
Disconnected
Connect
ed
![Page 7: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/7.jpg)
What is the full form of ADO?• The full form of ADO is ActiveX Data Object.
![Page 8: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/8.jpg)
Features of ADO.NET
1. Contains a number of classes that provide you with various methods and attributes
to manage the communication between your application and data source.
2. Enables you to access different data sources, such as Microsoft SQL Server, and
XML, as per your requirements.
3. Provides a rich set of features, such as connection and commands that can be used
to develop robust and highly efficient data services in .NET applications.
4. Provides various data providers that are specific to databases produced by various
vendors.
For example, ADO.NET has a separate provider to access data from Oracle
databases; whereas, another provider is used to access data from SQL databases.
![Page 9: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/9.jpg)
What are major difference between classic ADO and ADO.NET?
• In ADO we have recordset and in ADO.NET we have dataset.
• In recordset we can only have one table.
• If we want to accommodate more than one tables. We need to do inner join and fill
the recordset.
• Dataset can have multiple tables.
• All data persist in XML as compared to classic ADO where data persisted in Binary
format also.
![Page 10: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/10.jpg)
ADO.NET Components• The two main components of ADO.NET 3.0 for accessing and manipulating data are
the .NET Framework data providers and the DataSet.
Data providers Data Set
![Page 11: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/11.jpg)
.NET Framework Data Provider
![Page 12: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/12.jpg)
Data provider• An ADO.NET data provider is a software component that interacts with a data
source.
• It is required for :
1. Connecting to a database.
2. Retrieving data.
3. Storing the data in a dataset.
4. Reading the retrieved data.
5. Updating the database.
![Page 13: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/13.jpg)
List of Data provider
![Page 14: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/14.jpg)
Continue…
.NET Framework Data Provider for SQL Server (SqlClient)
.NET Framework Data Provider for OLE DB
.NET Framework Data Provider for ODBC
.NET Framework Data Provider for Oracle
![Page 15: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/15.jpg)
Core Objects of .NET Framework Data Providers
![Page 16: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/16.jpg)
Creating and Managing Connections
• To create and manage connections, you need to:
1. Create a connection object.
2. Create a command object.
3. Open the connection object.
4. Execute the SQL statement in the command object.
5. Close the connection object.
![Page 17: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/17.jpg)
SqlConnection Class
![Page 18: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/18.jpg)
Ex
![Page 19: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/19.jpg)
SqlCommand
![Page 20: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/20.jpg)
Continue…
![Page 21: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/21.jpg)
Ex
![Page 22: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/22.jpg)
Adding Parameters to Commands
![Page 23: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/23.jpg)
Command Using Stored Procedures
![Page 24: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/24.jpg)
SqlCommand run a stored procedure that takes a parameter
![Page 25: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/25.jpg)
Data Reader
![Page 26: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/26.jpg)
Ex
![Page 27: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/27.jpg)
Data Adapter
![Page 28: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/28.jpg)
Continue…
![Page 29: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/29.jpg)
Continue…• The DataAdapter object serves as a conduit between the data source and the
Dataset.
• The DataAdapter knows about the DataSet and it knows how to populate it.
![Page 30: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/30.jpg)
Continue…
![Page 31: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/31.jpg)
Ex
![Page 32: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/32.jpg)
![Page 33: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/33.jpg)
Continue…
![Page 34: Objective In this session we will discuss about : 1.What is ADO. NET ? 2.Assembly used in ADO.NET 3.Namespace used in ADO.NET 4.What is the full form](https://reader038.vdocuments.site/reader038/viewer/2022110207/56649d895503460f94a6f6dd/html5/thumbnails/34.jpg)
Summary!!