You can use GetString() method of ADODB.Recordset object if you want to dumpthe complete table in an active server page. GetString() method returns thecomplete recordset as a string. You can specify the number of rows in therecordset to return. All rows will be returned if this parameter is notspecified, or if it is greater than the number of rows in the recordset. Youcan also specify the delimiters to use between various columns and the rows.You can use this method to build an HTML table in an asp page. To build anHTML table using this method you need to specify the combination of “
Here is the sample VBScript code from an active server page which can beused to build an HTML table.
<% Dim oConnection ' Connection Object Dim oRecordset ' Recordset Object ' Create connection and recordset object Set oConnection = Server.CreateObject("ADODB.Connection") Set oRecordset = Server.CreateObject("ADODB.Recordset") ' Open the connection object oConnection.Open "DSN=Sample","sa","" ' Open the recordset object oRecordset.Open "MyTable", oConnection,,,adCmdTable ' Write the complete table using GetString() method Response.Write "" Response.Write oRecordset.GetString(,," ", " ") Response.Write "
"%>
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
Related Posts
About Our Editorial Process
At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.
See our full editorial policy.
CI/CD in the AI Era: Pipelines That Build, Test, and Deploy Themselves
The Cybersecurity Skills Gap: Why Developers Should Add Security to Their Stack

TechCrunch Disrupt 2026 Opens Speaker Submissions

Apple Adds Behavior-Based App Recommendations

AI Firm Limits Flagship Model Over Security

A Developer’s Guide to Choosing the Right API Security Platform
Privacy-Preserving Machine Learning: Federated Learning Goes Production

SOUTHCOM Launches Autonomous Warfare Command
Fable 5 Is Power With A Leash

Google Plans Fall Launch Of Audio Glasses

Bank of America Pledges 4,000 Campus Hires

TechCrunch Disrupt 2026 Sets Ambitious Agenda

SpaceX Attracts $250 Billion IPO Demand

New Wearable Expands Health Tracking Suite

Fox News Highlights AI MAGA Catfishing

Ofqual Boosts Training To Detect Cheating Devices

DeFi Hacks Squeeze Yield-Focused Crypto Funds
The Platform Engineering Boom: Internal Developer Platforms Take Center Stage

MIT Researcher Touts AI For Nuclear

Dreamie Alarm Clock Bets On Podcasts

UK Probes eBay’s $1.2B Depop Deal

Tomb Raider Remake Arrives in 2027

TechCrunch Disrupt 2026 Early-Bird Deadline Nears
Vector Databases in 2026: Moving Beyond the AI Hype
