ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash




Script Output:
1054134 Saturday 5 7/5/2008 5:49:26 AM
1054135 Saturday 5 7/5/2008 5:50:27 AM
1054137 Saturday 5 7/5/2008 5:20:16 AM
1054138 Saturday 5 7/5/2008 5:31:06 AM
1054139 Saturday 5 7/5/2008 5:58:52 AM
1054140 Saturday 5 7/5/2008 7:07:39 AM
1054141 Saturday 5 7/5/2008 7:07:42 AM
1054142 Saturday 5 7/5/2008 7:15:56 AM

ASP HTML Download            FAQ

This sample is part of a pair which illustrate the usage of two of the more efficient database display routines. This set of code utilizes the GetRows method. The other one is covered in our GetString Sample.

Both of these routines get their efficiency primarily from getting you disconnected from the database as quickly as possible. This one does it by creating a copy of the data in a 2D array. Once you have the array you can close all your ADO objects and manipulate and display the data at your leisure.

Similar efficiencies can be gained in traditional code by disconnecting your recordsets as early as possible, but very few people ever actually do this. These recordset methods facilitate getting you out of your objects and getting them released ASAP. That being said, the components are also simply more efficient then doing the same thing in VBScript, so they'll even beat a disconnected recordset, but I figured I'd mention it for those situations when GetRows or GetString is just too cumbersome to use. For the rest of the time use one of these... they're just as easy (if not easier) and they'll save your server a lot of unneccesary work.

As always... don't let the length of the code discourage you... it's mostly comments!


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES