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:
1117445 Thursday 8 1/8/2009 7:07:33 AM
1117446 Thursday 8 1/8/2009 7:24:26 AM
1117447 Thursday 8 1/8/2009 7:41:33 AM
1117448 Thursday 8 1/8/2009 9:57:07 AM
1117450 Thursday 8 1/8/2009 9:05:50 AM
1117451 Thursday 8 1/8/2009 9:18:20 AM
1117452 Thursday 8 1/8/2009 9:37:49 AM
1117454 Thursday 8 1/8/2009 9:55:52 AM
1117455 Thursday 8 1/8/2009 12:10:40 PM
1117456 Thursday 8 1/8/2009 11:15:55 AM
1117457 Thursday 8 1/8/2009 12:04:05 PM

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

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