SlideShare a Scribd company logo
Presentation
Created By :
Prabhu R
.Net
ADO.Net
Introduction to Ado.net
 Ado stand for Active Database Object.
 Before Ado.net we use Ado to access data from
database. Basically Ado has automatic driver
detection technique and its has only one drawback
that it only provide a connected environment so
efficiency of system may decrease.
 ADO.NET is a new database technology used by
.NET platform (introduced in 2002).
 In fact it is a set of classes used to communicate
between an application front end and a database.
 It supports both connected & disconnection mode of
data access.
Difference between ADO and ADO.NET
ADO ADO.NET
1.It is a COM based library. 1.It is a CLR based library.
2.Classic ADO requires active connection with the
data store.
2.ADO.NET architecture works while the data store is
disconnected.
3.Locking feature is available. 3.Locking feature is not available.
4.Data is stored in binary format. 4.Data is stored in XML.
5.XML integration is not possible. 5.XML integration is possible.
6.It uses the object named Recordset to reference
data from the data store.
6.It uses Dataset Object for data access and
representation.
7.Using Classic ADO, we can obtain information from
one table or set of tables through join. We cannot
fetch records from multiple tables independently.
7.Dataset object of ADO.NET includes collection of
DataTables wherein each DataTable will contain records
fetched from a particular table. Hence multiple table
records are maintained independently.
8.Firewall might prevent execution of Classic ADO.
8.ADO.NET has firewall proof and its execution will never
be interrupted.
9.Classic ADO architecture includes client side cursor
and server side cursor. 9.ADO.NET architecture doesn't include such cursors.
10.We cannot send multiple transactions using a
single connection instance.
10.We can send multiple transactions using a single
connection instance.
Namespaces used in ADO. Net
 System.Data
 It contains the common classes for connecting, fetching data
from database. Classes are like as DataTable, DataSet,
DataView etc.
 System.Data.SqlClient
 It contains classes for connecting, fetching data from Sql
Server database. Classes are like as
SqlDataAdapter,SqlDataReader etc.
 System.Data.OracleClient
 It contains classes for connecting, fetching data from Oracle
database. Classes are like as
OracleDataAdapter,OracleDataReader etc.
 System.Data.OleDb
 It contains classes for connecting, fetching data from any
database(like msaccess, db2, oracle, sqlserver, mysql).
Classes are like as OleDbDataAdapter,OleDbDataReader
etc.
 System.Data.Odbc
 It contains classes for connecting, fetching data from any
ADO.NET Architecture
Component of ADO.NET
architecture
 The two key components of ADO.NET are
 Data Providers
 DataSet
DataSet
 Basically it is a small Data structure that may
contain multiple datatables from multiple sources.
 The information in dataset is created inform of
XML and is stored with .xsd extention.
 It support disconnected mode of data access.It
has both scrolling mode means forward and
backward scrolling mode (fetching of data).
 DataSet can have multiple Datatable from
multiple sources but DataReader is able toread
only single Datatable.
Creating and using a DataSet
 The typical steps in creating and using a DataSet
are:
 (i)Create a DataSet object
 (ii) Connect to a database
 (iii)Fill the DataSet with one or more tables or views
 (iv)Disconnect from the database
 (v)Use the DataSet in the application
Data Provider
 Data provider is a set of ADO.Net classes that allow us to
access a database. Basically, it is a bridge between our
application (We can say front-end) and data source. There
are following Data Provider :
 SqlServer Data Provider:-It is used to access data from SqlServer
database (for version 7.0 or later).
 Oracle Data Provider:-It is used to access data from oracle
database (for version 8i or later).
 OleDb Data Provider:-It is used to access data from any database
(msaccess, mysql, db2).
 Odbc Data Provider :-It is used to access data from any database
(msaccess, mysql, db2).
 The four Objects from the .Net Framework provides
the functionality of Data Providers in the ADO.NET.
They are
 Connection Object
 Command Object
 Data Reader Object
 Data Adapter Object.
The SQLCONNECTION OBJECT
 The Connection :-The Connection object which
provides a connection to the database
Command Object
 The Command :-The Command object which is
used to execute a command
 It provide three methods which are used to
execute commands on the database:
 ExecuteNonQuery: Executes commands that
have no return values such as INSERT, UPDATE
or DELETE
 ExecuteScalar : Returns a single value from a
database query
 ExecuteReader: Returns a result set by way of a
DataReader object
Data Adapter Object.
 data adapter : The DataAdapter serve as a bridge
between a DataSet and data source for retrieving and
saving data.
 The DataAdapter provides this bridge by using Fill to load
data from the data source into the DataSet and using
Update to send changes made in the DataSet back to the
data source.
 The data adapter objects connect a command objects to a
Dataset object.
 They provide the means for the exchange of data
between the data store and the tables in the DataSet.
 An OleDbDataAdapter object is used with an OLE-DB
provider A SqlDataAdapter object uses Tabular Data
Services with MS SQL Server.
Data Reader Object
 The DataReader:- The DataReader object which
provides a forward-only, read only, connected
recordset
 Limitations of the DataReader
 There is not possible to sort, filter, or manipulate the
data while using a DataReader, since it is read-only
and forward-only.
Differences between DataSet and
DataReader
DataSet DataReader
DataSet object can contain multiple
rowsets from the same data source as
well as from the relationships between
them.
DataReader provides forward-only and
read-only access to data.
Dataset is a disconnected architecture. Datareader is connected architecture.
Dataset can persist data. Datareader can not persist data.
A DataSet is well suited for data that
needs to be retrieved from multiple
tables.
It has live connection while reading
data
DatsSet is slower than DataReader
,Due to overhead.
Speed performance is better in
DataReader

More Related Content

What's hot

PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
Zeeshan Ahmed
 
Java swing
Java swingJava swing
Java swing
Apurbo Datta
 
Introduction to ADO.NET
Introduction to ADO.NETIntroduction to ADO.NET
Introduction to ADO.NET
rchakra
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
WebStackAcademy
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
Spotle.ai
 
ADO.NET
ADO.NETADO.NET
ADO.NET
Wani Zahoor
 
Delegates and events in C#
Delegates and events in C#Delegates and events in C#
Delegates and events in C#
Dr.Neeraj Kumar Pandey
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
Manisha Keim
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
priya Nithya
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
Rajkumarsoy
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
Thanachart Numnonda
 
Presentation on-exception-handling
Presentation on-exception-handlingPresentation on-exception-handling
Presentation on-exception-handling
Nahian Ahmed
 
Applets in java
Applets in javaApplets in java
Applets in java
Wani Zahoor
 
MYSQL - PHP Database Connectivity
MYSQL - PHP Database ConnectivityMYSQL - PHP Database Connectivity
MYSQL - PHP Database Connectivity
V.V.Vanniaperumal College for Women
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
Ravinder Kamboj
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
kamal kotecha
 

What's hot (20)

PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Java swing
Java swingJava swing
Java swing
 
Introduction to ADO.NET
Introduction to ADO.NETIntroduction to ADO.NET
Introduction to ADO.NET
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
 
Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
Delegates and events in C#
Delegates and events in C#Delegates and events in C#
Delegates and events in C#
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
 
Presentation on-exception-handling
Presentation on-exception-handlingPresentation on-exception-handling
Presentation on-exception-handling
 
Applets in java
Applets in javaApplets in java
Applets in java
 
MYSQL - PHP Database Connectivity
MYSQL - PHP Database ConnectivityMYSQL - PHP Database Connectivity
MYSQL - PHP Database Connectivity
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
Ch 7 data binding
Ch 7 data bindingCh 7 data binding
Ch 7 data binding
 

Viewers also liked

ADO.NET -database connection
ADO.NET -database connectionADO.NET -database connection
ADO.NET -database connection
Anekwong Yoddumnern
 
Chapter 1
Chapter 1Chapter 1
Chapter 1Uma Sam
 
Difference between vbscript and javascript
Difference between vbscript and javascriptDifference between vbscript and javascript
Difference between vbscript and javascript
Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
Umar Ali
 
Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)
Umar Ali
 
Client and server side scripting
Client and server side scriptingClient and server side scripting
Client and server side scripting
baabtra.com - No. 1 supplier of quality freshers
 
ASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NETASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NET
Randy Connolly
 
For Beginers - ADO.Net
For Beginers - ADO.NetFor Beginers - ADO.Net
For Beginers - ADO.Net
Snehal Harawande
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
Kumar S
 

Viewers also liked (11)

ADO.NET -database connection
ADO.NET -database connectionADO.NET -database connection
ADO.NET -database connection
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Difference between vbscript and javascript
Difference between vbscript and javascriptDifference between vbscript and javascript
Difference between vbscript and javascript
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)
 
Client and server side scripting
Client and server side scriptingClient and server side scripting
Client and server side scripting
 
Ado.net
Ado.netAdo.net
Ado.net
 
ASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NETASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NET
 
For Beginers - ADO.Net
For Beginers - ADO.NetFor Beginers - ADO.Net
For Beginers - ADO.Net
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 

Similar to Ado.Net Tutorial

Ado
AdoAdo
Introduction to ado
Introduction to adoIntroduction to ado
Introduction to adoHarman Bajwa
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)
Shrijan Tiwari
 
Introduction to ado.net
Introduction to ado.netIntroduction to ado.net
Introduction to ado.net
Paneliya Prince
 
Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentalsMadhuri Kavade
 
Chap14 ado.net
Chap14 ado.netChap14 ado.net
Chap14 ado.net
mentorrbuddy
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb netZishan yousaf
 
Ado.net
Ado.netAdo.net
Ado.net
Om Prakash
 
ado.net
ado.netado.net
ado.net
ZAIYAUL HAQUE
 
What is ado .net architecture_.pdf
What is ado .net architecture_.pdfWhat is ado .net architecture_.pdf
What is ado .net architecture_.pdf
Albert828253
 
Is2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introIs2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introdannygriff1
 
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaSonu Vishwakarma
 
Ado.net
Ado.netAdo.net
Ado.net
dina1985vlr
 
Ado Net
Ado NetAdo Net
Ado.Net Architecture
Ado.Net ArchitectureAdo.Net Architecture
Ado.Net Architecture
Umar Farooq
 
Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Mubarak Hussain
 

Similar to Ado.Net Tutorial (20)

Ado
AdoAdo
Ado
 
Introduction to ado
Introduction to adoIntroduction to ado
Introduction to ado
 
PPT temp.pptx
PPT temp.pptxPPT temp.pptx
PPT temp.pptx
 
Session x(ado.net)
Session x(ado.net)Session x(ado.net)
Session x(ado.net)
 
Introduction to ado.net
Introduction to ado.netIntroduction to ado.net
Introduction to ado.net
 
Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentals
 
Chap14 ado.net
Chap14 ado.netChap14 ado.net
Chap14 ado.net
 
Ado.net
Ado.netAdo.net
Ado.net
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb net
 
Unit4
Unit4Unit4
Unit4
 
Ado.net
Ado.netAdo.net
Ado.net
 
ado.net
ado.netado.net
ado.net
 
What is ado .net architecture_.pdf
What is ado .net architecture_.pdfWhat is ado .net architecture_.pdf
What is ado .net architecture_.pdf
 
Ado
AdoAdo
Ado
 
Is2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introIs2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_intro
 
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu Vishwakarma
 
Ado.net
Ado.netAdo.net
Ado.net
 
Ado Net
Ado NetAdo Net
Ado Net
 
Ado.Net Architecture
Ado.Net ArchitectureAdo.Net Architecture
Ado.Net Architecture
 
Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Ado dot net complete meterial (1)
Ado dot net complete meterial (1)
 

Recently uploaded

SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
Globus
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
kalichargn70th171
 

Recently uploaded (20)

SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 

Ado.Net Tutorial

  • 2. Introduction to Ado.net  Ado stand for Active Database Object.  Before Ado.net we use Ado to access data from database. Basically Ado has automatic driver detection technique and its has only one drawback that it only provide a connected environment so efficiency of system may decrease.  ADO.NET is a new database technology used by .NET platform (introduced in 2002).  In fact it is a set of classes used to communicate between an application front end and a database.  It supports both connected & disconnection mode of data access.
  • 3. Difference between ADO and ADO.NET ADO ADO.NET 1.It is a COM based library. 1.It is a CLR based library. 2.Classic ADO requires active connection with the data store. 2.ADO.NET architecture works while the data store is disconnected. 3.Locking feature is available. 3.Locking feature is not available. 4.Data is stored in binary format. 4.Data is stored in XML. 5.XML integration is not possible. 5.XML integration is possible. 6.It uses the object named Recordset to reference data from the data store. 6.It uses Dataset Object for data access and representation. 7.Using Classic ADO, we can obtain information from one table or set of tables through join. We cannot fetch records from multiple tables independently. 7.Dataset object of ADO.NET includes collection of DataTables wherein each DataTable will contain records fetched from a particular table. Hence multiple table records are maintained independently. 8.Firewall might prevent execution of Classic ADO. 8.ADO.NET has firewall proof and its execution will never be interrupted. 9.Classic ADO architecture includes client side cursor and server side cursor. 9.ADO.NET architecture doesn't include such cursors. 10.We cannot send multiple transactions using a single connection instance. 10.We can send multiple transactions using a single connection instance.
  • 4. Namespaces used in ADO. Net  System.Data  It contains the common classes for connecting, fetching data from database. Classes are like as DataTable, DataSet, DataView etc.  System.Data.SqlClient  It contains classes for connecting, fetching data from Sql Server database. Classes are like as SqlDataAdapter,SqlDataReader etc.  System.Data.OracleClient  It contains classes for connecting, fetching data from Oracle database. Classes are like as OracleDataAdapter,OracleDataReader etc.  System.Data.OleDb  It contains classes for connecting, fetching data from any database(like msaccess, db2, oracle, sqlserver, mysql). Classes are like as OleDbDataAdapter,OleDbDataReader etc.  System.Data.Odbc  It contains classes for connecting, fetching data from any
  • 6. Component of ADO.NET architecture  The two key components of ADO.NET are  Data Providers  DataSet
  • 7. DataSet  Basically it is a small Data structure that may contain multiple datatables from multiple sources.  The information in dataset is created inform of XML and is stored with .xsd extention.  It support disconnected mode of data access.It has both scrolling mode means forward and backward scrolling mode (fetching of data).  DataSet can have multiple Datatable from multiple sources but DataReader is able toread only single Datatable.
  • 8. Creating and using a DataSet  The typical steps in creating and using a DataSet are:  (i)Create a DataSet object  (ii) Connect to a database  (iii)Fill the DataSet with one or more tables or views  (iv)Disconnect from the database  (v)Use the DataSet in the application
  • 9. Data Provider  Data provider is a set of ADO.Net classes that allow us to access a database. Basically, it is a bridge between our application (We can say front-end) and data source. There are following Data Provider :  SqlServer Data Provider:-It is used to access data from SqlServer database (for version 7.0 or later).  Oracle Data Provider:-It is used to access data from oracle database (for version 8i or later).  OleDb Data Provider:-It is used to access data from any database (msaccess, mysql, db2).  Odbc Data Provider :-It is used to access data from any database (msaccess, mysql, db2).
  • 10.  The four Objects from the .Net Framework provides the functionality of Data Providers in the ADO.NET. They are  Connection Object  Command Object  Data Reader Object  Data Adapter Object.
  • 11. The SQLCONNECTION OBJECT  The Connection :-The Connection object which provides a connection to the database
  • 12. Command Object  The Command :-The Command object which is used to execute a command  It provide three methods which are used to execute commands on the database:  ExecuteNonQuery: Executes commands that have no return values such as INSERT, UPDATE or DELETE  ExecuteScalar : Returns a single value from a database query  ExecuteReader: Returns a result set by way of a DataReader object
  • 13. Data Adapter Object.  data adapter : The DataAdapter serve as a bridge between a DataSet and data source for retrieving and saving data.  The DataAdapter provides this bridge by using Fill to load data from the data source into the DataSet and using Update to send changes made in the DataSet back to the data source.  The data adapter objects connect a command objects to a Dataset object.  They provide the means for the exchange of data between the data store and the tables in the DataSet.  An OleDbDataAdapter object is used with an OLE-DB provider A SqlDataAdapter object uses Tabular Data Services with MS SQL Server.
  • 14. Data Reader Object  The DataReader:- The DataReader object which provides a forward-only, read only, connected recordset  Limitations of the DataReader  There is not possible to sort, filter, or manipulate the data while using a DataReader, since it is read-only and forward-only.
  • 15. Differences between DataSet and DataReader DataSet DataReader DataSet object can contain multiple rowsets from the same data source as well as from the relationships between them. DataReader provides forward-only and read-only access to data. Dataset is a disconnected architecture. Datareader is connected architecture. Dataset can persist data. Datareader can not persist data. A DataSet is well suited for data that needs to be retrieved from multiple tables. It has live connection while reading data DatsSet is slower than DataReader ,Due to overhead. Speed performance is better in DataReader