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.

What Is Grok Voice 3.0? xAI’s New Speech-to-Speech Model Explained
Google’s Gemini Argon Wins Through Reach, Not Revolution

What Is the GhostApproval Vulnerability in AI Coding Assistants?

Startup Challenges DoorDash With $1 Delivery Fee

AI Insiders Urge New York Oversight

Pro-AI Political Group Builds Bipartisan War Chest

Prysm Capital Leader Links Parenting to Investing

McDonald’s Faces Antitrust Suit Over AI Pricing

OpenAI Addresses Australian Health Site Hack Probe

Industry Leaders Sign White House AI Accord

What Is the AgentCorruption Vulnerability in AWS AgentCore?

Lincoln Lab Tracks AI Hardware Since 2018

Divided Court Rejects AI Lab’s Rights Claims

Countries Eye Drones to Boost Rainfall

UK Watchdog Investigates Recruitment Robo Calls

Nexstrom Raises Funds for 2D Chip Equipment

Atlassian Deepens OpenAI Ties, Retains AI Choice
AI’s Real Race Is Utility, Not Intelligence

What Is Mistral Large 4? Mistral AI’s Trillion-Parameter Open Model Explained

What Is ReviewBench? GitHub’s AI Code Review Benchmark Explained
Comfort Should Drive the Ultimate Gaming Setup

Anthropic IPO Plans Test AI Investor Demand

Kolmo Opens Local Permit Rules Database

AI Subscriptions Reach Just 2% of Households
