ASP
  Home arrow ASP arrow Page 5 - 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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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 / 60
    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 - Concluding Thoughts


    (Page 5 of 5 )

    Some Anticipatory Objections

    Is this solution revolutionary? Not really. It serves the purpose it was meant for: to let me drop read-only ADO Recordsets as soon as I could to free up resources, without sacrificing speed or functionality. And as I worked on it, I found I actually gained functionality. My entire purpose in this article was to put before you the techniques I used, the discoveries I made, and the results of that work. But if I may, I'd like to address some arguments I foresee in this article’s "Comments" tab over the coming week or two:

    Why not compile it?

    Overhead. The thing is so light, and its performance is quite satisfactory, why incur all the effort of non-VBScript object instantiation?

    It doesn’t handle shaped Recordsets (i.e. Recordsets within Recordsets).

    That’s right. In my ASP work I use these so rarely compared to plain old "flat" Recordsets it wasn’t worth the effort. It could be done, but it's not something I suspect I'll spend the time to do.

    This is only good for read-only Recordsets, though!

    True. As I explained, I was inspired to build this because the vast majority of the Recordsets I use are read-only, and used just for HTML output. If I needed to edit data, I would certainly not use an ArraySet.

    Your persisting mechanism uses the Session variable? Don't you know Session variables are evil?

    The chief downside of the Session variable is that it's ineffective on multi-server sites, because we can't expect each user's requests to always hit the same machine. Quite true, and for that reason, you would not want to use it here. However, for single-server sites – and though we'd like to impress our peers, folks, admit it: most of our ASP sites are single-server – it works just fine.

    Your solution doesn’t use XML. If something doesn’t use XML it’s stupid. My cat uses XML. I can write XSLTs that convert meatloaf into wicker furniture. XML is de riguer, XML is mandatory, XML etc.

    Ah.

    ASP.NET provides the HumperDingleFloogleHorn class that provides exactly this functionality. You should just upgrade your entire application to .NET instead, and be cool like me.

    I’ll get right on it.

    You say you don’t use those other ### field properties, but I use two of them that you don’t. Therefore I'm smarter than you and deem your techniques valueless, misguided and laughable.

    The design is pretty simple to extend, so go for it. I'll look forward to your article on the matter.

    In any case…

    Please feel free to use the downloadable version of this file as you will. It contains essentially the same code discussed here, plus a bit more error-checking. If you make enhancements to it, I'd be glad to hear about them! I can be reached at Kelleher@tkelleher.com.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    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-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT