SlideShare a Scribd company logo
1 of 1
Download to read offline
ADO VS ADO.NET

  1. ADO stands for ActiveX Data Objects and it relies on COM whereas ADO.NET relies on managed
     providers defined by the .NET CLR (Common Language Runtime).
  2. ADO.NET provides consistent access to data sources such as SQL Server, as well as data sources
     exposed through OLE DB and XML. While there are similarities between ADO and ADO.NET,
     the way they operate and their foundations are quite different. The following are some Advantages
     of ADO.Net over ADO in basic level.
  3. A major difference in creating connections with ADO and ADO.NET is that ADO fits all
     connections to all types of data sources into a single Connection object. ADO.NET can have
     separate Objects that represent connections to different data sources. In ADO.NET you can create
     multiple data provider namespaces to connect specifically with a particular data source, making
     access faster and more efficient and allowing each namespace to exploit the features of its targeted
     data provider.

        Dim connection As SqlConnection
        Connection = New SqlConnection ("connetionString")
        Dim connection As OleDbConnection
        Connection = New OleDbConnection ("connetionString")

  4. ADO allows you to create client side cursors only whereas ADO.NET gives you the choice of
     either using client side or server side cursors.
  5. ADO.NET introduces a new way of getting a single value from a query's results when you expect
     only one row and one column to return. The ADO.NET command object has an ExecuteScalar
     method which returns the first row and column's value from its associated query. But ADO not.
  6. ADO.Net dataset represents in memory representation of a database. ADO recordsets is merely a
     set of rows retrieved from a data source.

  7. ADO recordsets can hold data from one data source at a time. ADO.Net datasets can hold data
     from various sources and integrate the data and write it back to one or several data sources.
  8. The ADO.NET Framework supports two models of Data Access Architecture, Connection
     Oriented Data Access Architecture and Disconnected Data Access Architecture.But ADO provide
     the connectivity only connected mode.
  9. In the case of Data Communication, ADO objects communicate in binary mode while ADO.NET
     uses XML for passing the data.

More Related Content

What's hot

Asp net interview_questions
Asp net interview_questionsAsp net interview_questions
Asp net interview_questionsBilam
 
Introduction to ADO.NET
Introduction to ADO.NETIntroduction to ADO.NET
Introduction to ADO.NETrchakra
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.netNgeam Soly
 
For Beginners - Ado.net
For Beginners - Ado.netFor Beginners - Ado.net
For Beginners - Ado.netTarun Jain
 
Visual Basic.Net & Ado.Net
Visual Basic.Net & Ado.NetVisual Basic.Net & Ado.Net
Visual Basic.Net & Ado.NetFaRid Adwa
 
Intake 38 data access 1
Intake 38 data access 1Intake 38 data access 1
Intake 38 data access 1Mahmoud Ouf
 
Web based database application design using vb.net and sql server
Web based database application design using vb.net and sql serverWeb based database application design using vb.net and sql server
Web based database application design using vb.net and sql serverAmmara Arooj
 
Database connectivity to sql server asp.net
Database connectivity to sql server asp.netDatabase connectivity to sql server asp.net
Database connectivity to sql server asp.netHemant Sankhla
 
Working with xml data
Working with xml dataWorking with xml data
Working with xml dataaspnet123
 

What's hot (20)

Asp net interview_questions
Asp net interview_questionsAsp net interview_questions
Asp net interview_questions
 
Database Connection
Database ConnectionDatabase Connection
Database Connection
 
Ado.net
Ado.netAdo.net
Ado.net
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
ADO.NET -database connection
ADO.NET -database connectionADO.NET -database connection
ADO.NET -database connection
 
VB6 Using ADO Data Control
VB6 Using ADO Data ControlVB6 Using ADO Data Control
VB6 Using ADO Data Control
 
ASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NETASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NET
 
ado.net
ado.netado.net
ado.net
 
Introduction to ADO.NET
Introduction to ADO.NETIntroduction to ADO.NET
Introduction to ADO.NET
 
Ado.net
Ado.netAdo.net
Ado.net
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.net
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
For Beginners - Ado.net
For Beginners - Ado.netFor Beginners - Ado.net
For Beginners - Ado.net
 
Visual Basic.Net & Ado.Net
Visual Basic.Net & Ado.NetVisual Basic.Net & Ado.Net
Visual Basic.Net & Ado.Net
 
ADO.NET by ASP.NET Development Company in india
ADO.NET by ASP.NET  Development Company in indiaADO.NET by ASP.NET  Development Company in india
ADO.NET by ASP.NET Development Company in india
 
Intake 38 data access 1
Intake 38 data access 1Intake 38 data access 1
Intake 38 data access 1
 
Web based database application design using vb.net and sql server
Web based database application design using vb.net and sql serverWeb based database application design using vb.net and sql server
Web based database application design using vb.net and sql server
 
Database connectivity to sql server asp.net
Database connectivity to sql server asp.netDatabase connectivity to sql server asp.net
Database connectivity to sql server asp.net
 
Working with xml data
Working with xml dataWorking with xml data
Working with xml data
 

Similar to Ado vs ado.net by varun tiwari

Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentalsMadhuri Kavade
 
Introduction to ado
Introduction to adoIntroduction to ado
Introduction to adoHarman Bajwa
 
In about a paragraph and in your own words, describe exactly what AD.pdf
In about a paragraph and in your own words, describe exactly what AD.pdfIn about a paragraph and in your own words, describe exactly what AD.pdf
In about a paragraph and in your own words, describe exactly what AD.pdfmalavshah9013
 
Is2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introIs2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introdannygriff1
 
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
 
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaSonu Vishwakarma
 
Ado.Net Architecture
Ado.Net ArchitectureAdo.Net Architecture
Ado.Net ArchitectureUmar Farooq
 
Lecture 6. ADO.NET Overview.
Lecture 6. ADO.NET Overview.Lecture 6. ADO.NET Overview.
Lecture 6. ADO.NET Overview.Alexey Furmanov
 
Ado.net & data persistence frameworks
Ado.net & data persistence frameworksAdo.net & data persistence frameworks
Ado.net & data persistence frameworksLuis Goldster
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb netZishan yousaf
 

Similar to Ado vs ado.net by varun tiwari (20)

Ado.net
Ado.netAdo.net
Ado.net
 
Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentals
 
Introduction to ado
Introduction to adoIntroduction to ado
Introduction to ado
 
Ado
AdoAdo
Ado
 
In about a paragraph and in your own words, describe exactly what AD.pdf
In about a paragraph and in your own words, describe exactly what AD.pdfIn about a paragraph and in your own words, describe exactly what AD.pdf
In about a paragraph and in your own words, describe exactly what AD.pdf
 
Introduction to ado.net
Introduction to ado.netIntroduction to ado.net
Introduction to ado.net
 
Microsoft data access components
Microsoft data access componentsMicrosoft data access components
Microsoft data access components
 
Unit4
Unit4Unit4
Unit4
 
Is2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_introIs2215 lecture7 lecturer_ado_intro
Is2215 lecture7 lecturer_ado_intro
 
Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Ado dot net complete meterial (1)
Ado dot net complete meterial (1)
 
Ado Net
Ado NetAdo Net
Ado Net
 
PPT temp.pptx
PPT temp.pptxPPT temp.pptx
PPT temp.pptx
 
unit 3.docx
unit 3.docxunit 3.docx
unit 3.docx
 
5.C#
5.C#5.C#
5.C#
 
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu Vishwakarma
 
6 database
6 database 6 database
6 database
 
Ado.Net Architecture
Ado.Net ArchitectureAdo.Net Architecture
Ado.Net Architecture
 
Lecture 6. ADO.NET Overview.
Lecture 6. ADO.NET Overview.Lecture 6. ADO.NET Overview.
Lecture 6. ADO.NET Overview.
 
Ado.net & data persistence frameworks
Ado.net & data persistence frameworksAdo.net & data persistence frameworks
Ado.net & data persistence frameworks
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb net
 

More from Bosco Technical Training Society, Don Bosco Technical School (Aff. GGSIP University, New Delhi)

More from Bosco Technical Training Society, Don Bosco Technical School (Aff. GGSIP University, New Delhi) (20)

String Manipulation Function and Header File Functions
String Manipulation Function and Header File FunctionsString Manipulation Function and Header File Functions
String Manipulation Function and Header File Functions
 
C Structure and Union in C
C Structure and Union in CC Structure and Union in C
C Structure and Union in C
 
Preprocessor Directive in C
Preprocessor Directive in CPreprocessor Directive in C
Preprocessor Directive in C
 
File Handling in C Programming
File Handling in C ProgrammingFile Handling in C Programming
File Handling in C Programming
 
Bit field enum and command line arguments
Bit field enum and command line argumentsBit field enum and command line arguments
Bit field enum and command line arguments
 
Pointers in C and Dynamic Memory Allocation
Pointers in C and Dynamic Memory AllocationPointers in C and Dynamic Memory Allocation
Pointers in C and Dynamic Memory Allocation
 
Array in C
Array in CArray in C
Array in C
 
C storage class
C storage classC storage class
C storage class
 
Function in C Programming
Function in C ProgrammingFunction in C Programming
Function in C Programming
 
C Constructs (C Statements & Loop)
C Constructs (C Statements & Loop)C Constructs (C Statements & Loop)
C Constructs (C Statements & Loop)
 
C Operators
C OperatorsC Operators
C Operators
 
C programming Basics
C programming BasicsC programming Basics
C programming Basics
 
Software Development Skills and SDLC
Software Development Skills and SDLCSoftware Development Skills and SDLC
Software Development Skills and SDLC
 
Mobile commerce
Mobile commerceMobile commerce
Mobile commerce
 
E commerce application
E commerce applicationE commerce application
E commerce application
 
Data normalization
Data normalizationData normalization
Data normalization
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
Security issue in e commerce
Security issue in e commerceSecurity issue in e commerce
Security issue in e commerce
 
ER to Relational Mapping
ER to Relational MappingER to Relational Mapping
ER to Relational Mapping
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 

Ado vs ado.net by varun tiwari

  • 1. ADO VS ADO.NET 1. ADO stands for ActiveX Data Objects and it relies on COM whereas ADO.NET relies on managed providers defined by the .NET CLR (Common Language Runtime). 2. ADO.NET provides consistent access to data sources such as SQL Server, as well as data sources exposed through OLE DB and XML. While there are similarities between ADO and ADO.NET, the way they operate and their foundations are quite different. The following are some Advantages of ADO.Net over ADO in basic level. 3. A major difference in creating connections with ADO and ADO.NET is that ADO fits all connections to all types of data sources into a single Connection object. ADO.NET can have separate Objects that represent connections to different data sources. In ADO.NET you can create multiple data provider namespaces to connect specifically with a particular data source, making access faster and more efficient and allowing each namespace to exploit the features of its targeted data provider. Dim connection As SqlConnection Connection = New SqlConnection ("connetionString") Dim connection As OleDbConnection Connection = New OleDbConnection ("connetionString") 4. ADO allows you to create client side cursors only whereas ADO.NET gives you the choice of either using client side or server side cursors. 5. ADO.NET introduces a new way of getting a single value from a query's results when you expect only one row and one column to return. The ADO.NET command object has an ExecuteScalar method which returns the first row and column's value from its associated query. But ADO not. 6. ADO.Net dataset represents in memory representation of a database. ADO recordsets is merely a set of rows retrieved from a data source. 7. ADO recordsets can hold data from one data source at a time. ADO.Net datasets can hold data from various sources and integrate the data and write it back to one or several data sources. 8. The ADO.NET Framework supports two models of Data Access Architecture, Connection Oriented Data Access Architecture and Disconnected Data Access Architecture.But ADO provide the connectivity only connected mode. 9. In the case of Data Communication, ADO objects communicate in binary mode while ADO.NET uses XML for passing the data.