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.

Evvy Raises $40 Million for Women’s Health

Prince Harry Warns of AI Chatbot Risks

Amazon Adds AI Agents for Sellers

Claude Opus 5.5: Lower Pricing and Higher Coding Benchmarks Explained

US Housing Market Tilts Toward Buyers

Virtual Character Sidesteps Politics in Movie Promotion

Google Safety Founder Urges AI Slowdown

C2C Links AI Models Through KV Caches

The SaaS Metrics That Actually Predict Growth

Researchers Claim Hacks of Meta and Slack

More Americans Turn to Chatbots for Support

AI Leaders Clash Over Development Pace

What Is Karmada? The Kubernetes Multi-Cluster Tool Explained

Apple Faces Leadership Test Under John Ternus

Senator Urges Independent Tests for Frontier AI

Silent Data Change Skews Audience Counts

Revenant Ventures Closes $78.5 Million Debut Fund

How to Become a Software Engineer Without a CS Degree
Opus 5.5 Won the Latest AI Contest

Enterprises Struggle to Control AI Agent Costs

Ohio Data Center Boom Pressures Residents

Venture Gains Lift San Francisco Pension Returns

Walter Torous to Lead MIT Real Estate Center

XTU Targets Budget Action-Camera Buyers
