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.

6 Signals Your System Is Sliding Into Operational Drift

Six Reasons Your AI Prototype Fails in Production

7 Early Signs Your AI Guardrails Won’t Hold in Production

How to Scale Search Infrastructure for High-Query Volumes

Technical Influence vs Authority in Engineering Teams

Optical Links Challenge Copper In Data Centers

Empathy Guides Rosalyn Engelman’s Partnership

Apple M5 Chips Target On-Device AI

Sophia Space Raises $10 Million Seed

Charles Payne Hosts Investor Town Hall

Xiaomi Highlights New Tech At MWC

Berkshire Hathaway Q4 Profit Falls Nearly 30 Percent

Amazon Debuts AI Dynamic Canvas for Sellers
Phones Are Ready For Serious Offline AI

4 Architectural Decisions That Shape Reliable RAG Systems

OpenAI Chair Sees AI Reshaping Work

Venezuelan Oil Rebranded As Brazilian To China

OpenAI Defends Safeguards In Defense Deal

Samsung Brings Phone-Based Door Unlocking

Smartphones Deliver Net Gains, Data Shows

Asking AI Chatbots Changes How We Learn

AI Rekindles Debate Over Photography

7 Refactor Patterns That Compound Over Years

DOJ Files Link Epstein To Russian Investors
