ASP.NET
  Home arrow ASP.NET arrow Page 4 - What is ADO?
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

What is ADO?
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 15
    2004-08-11

    Table of Contents:
  • What is ADO?
  • About Universal Data Access
  • Existing Technologies
  • Why ADO?
  • ADO and ADO.NET
  • Providers and Drivers
  • New Features
  • ADO 2.8
  • Examples 1-3
  • Examples 4-6
  • Language Differences
  • Creating Objects in JScript, Visual C and .NET

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    What is ADO? - Why ADO?


    (Page 4 of 12 )

    OLE DB is a COM-based set of object-oriented interfaces, so it is too complex for a large portion of the programming community to use, or it is not suitable because they use programming languages that don’t have access to custom COM interfaces. For example, accessing OLE DB directly requires C++ because of the OLE DB interface’s complexity. ADO is the higher-level model that most people will use, because it allows access from dual-interface COM components that can be accessed from Visual Basic and scripting languages. It equates fairly well to the DAO level, where you create an object and call its methods and properties. As a COM component, it can be used from any language that supports COM, such as Visual Basic, VBA, scripting languages, and Visual C++.

    So now my diagram looks even more enticing:

    Various languages all have the ability to use a central data access strategy. Some languages (like Java and Visual C++) can talk directly to OLE DB in addition to talking to the easier ADO—although we’ll be looking at only the ADO layer here.

    ADO also improves speed and ease of development by providing an object model that allows data to be retrieved from a data source with as little as one line of code.

    ADO addresses another pressing need that has been created by the increasing use of the Web as an application medium. Conventional applications are generally connected to their data store via a Local Area Network (LAN). They can open a connection to the data and keep that connection open throughout the life of the program. Consequently, the data store knows who is connecting. Many applications also process data on the client—perhaps a set of records that the user is browsing through or updating. Because the client is connected to the server—the data source—there’s no trouble updating the data.

    On the Web, however, the underlying HTTP protocol is stateless. No permanent connection between client and server exists If you think about the way the Web works, you’ll realize why this is a problem:

    1. You request a Web page in your browser.

    2. The Web server receives the request, runs any server-side script, then sends the page back to you, and the connection is closed.

    That’s it. As soon as this is over, the Web server forgets about you. Admittedly, with ASP you can store some sort of session state, but it’s not very sophisticated. How then, with this disconnected network, do you provide a system that allows data to be updated on the client and sent back to the server? This is where ADO comes in, with disconnected recordsets. This technology allows the recordset to be disassociated from the server and reassociated at a later date. Additionally, you can update, insert, and delete records on the disconnected recordsets locally, and update the central set of records (the server) at a later date. In fact, disconnected recordsets don’t have to be associated with a database at all—they can be manually created and used as a data store in much the same way as collections are. Manually created recordsets, however, cannot be used to update data stores.

    The use of client-side data manipulation also allows you to sort data, find records, and generally manage recordsets without resorting to additional trips to the server. Although this idea primarily fits with the nature of Web applications, it can work just as well for the standard type of applications running on a LAN, and can reduce network traffic.

    This is from ADO Programmer's Reference, by Dave Sussman (Apress, ISBN 1590593421). Check it out at your favorite bookstore today. Buy this book now.

    More ASP.NET Articles
    More By Apress Publishing


     

    ASP.NET ARTICLES

    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT