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.

Why Operational Efficiency Is the New Competitive Advantage

Blackstone Unit in Talks With TXNM

Researcher Tests AI-Assisted Hacking Limits

Congresswoman Shares Journey, Criticizes Trump Policies

Microsoft Launches New In-House AI Models
Stop Assuming Online Videos Are Real Anymore

LLM vs Generative AI: Clearing Up the Confusion

When the Machines Grade the Machines

Reducing Operational Complexity With Smarter Logistics

Police Probe Motive After Deadly Shooting

Why Japanese Strategic LPs Seek Startups

Smart Feeder Brings Backyard Wildlife To Phones

Maono Targets Safer Desktop Recording Sessions

Muse Code Default Sends Data to Meta

Electronic Arts Going Private In Debt Deal

Tech Roundup: OpenAI Hack, Policy, Light Flip

Generative AI for Marketing: A Practical Guide That Works

Generative AI vs Predictive AI: How to Choose the Right Tool
Gaming Tablets Are the Real Portable Consoles

How Generative AI for Software Development Is Changing the Craft

Trump Administration Briefs AI Labs Privately

Zenity Raises $125 Million Series C

How to Triage SAST Findings Like Technical Debt

Grok Build Adds Parallel Workflow Orchestration
