ASP
  Home arrow ASP arrow Page 2 - Developing a VBScript Class for an Extreme...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
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

Developing a VBScript Class for an Extremely Lightweight Recordset Alternative
By: Wrox Team
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 56
    2003-03-11

    Table of Contents:
  • Developing a VBScript Class for an Extremely Lightweight Recordset Alternative
  • Introduction
  • How Much is That Recordset in the Window?
  • Feeling Loopy?
  • Concluding Thoughts

  • 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


    Developing a VBScript Class for an Extremely Lightweight Recordset Alternative - Introduction


    (Page 2 of 5 )

    Sure, I like the ADO Recordset. It’s seen me through my entire ASP career, and has treated me well. Arguably, the bulk of my income for this past half decade I owe to the use of ADO Recordsets. But like every client relationship, every personal relationship, every data-table relationship, we have to take stock from time to time of what we’re putting into it and getting out of it.

    It occurred to me one day – while suffering over whether to give a particular Recordset object a server-side or client-side cursor – that combinations of cursors, lock-types and so on, was rarely ever exactly what I wanted. Every time there was a trade-off. For instance, did I want this Recordset to be "rewindable" (i.e. .MoveFirst resulted in something other than errors)? Well, I'd need to buy into all the other overhead of that kind of cursor. Most of the time, forward-only, fire-hose Recordsets were sufficient. Most often in my ASP work, I’m pulling a Recordset so I can count down through the data and spell out the HTML I want. But here and there, I need something different. Bookmarks. Rewindability. Whatever. But to get what I wanted, I couldn’t just do this:

    Dim rs
    Set rs = Server.CreateObject("ADODB.Recordset")
    rs.CursorType = adRewindabilityAndNothingElseDarnIt

    You can’t order up your features à la carte – you have to take one of the package deals available, when it comes to Recordset features.

    So I wondered, "Can't I build a lightweight replacement, with just the features I want?" That’s what I set out to do.

    More ASP Articles
    More By Wrox Team


     

    ASP ARTICLES

    - Central Scoreboard with Flash and ASP
    - Calorie Counter Using WAP and ASP
    - Creating PGP-Encrypted E-Mails Using ASP
    - Be My Guest in ASP
    - Session Replacement in ASP
    - Securing ASP Data Access Credentials Using t...
    - The Not So Ordinary Address Book
    - Adding and Displaying Data Easily via ASP an...
    - Sending Email From a Form in ASP
    - Adding Member Services in ASP
    - Removing Unconfirmed Members
    - Trapping HTTP 500.100 - Internal Server Error
    - So Many Rows, So Little Time! - Case Study
    - XDO: An XML Engine Class for Classic ASP
    - Credit Card Fraud Prevention Using ASP and C...






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