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.

Thousands Challenge Bambu With Legal Dare

CD Projekt Plans New Witcher Expansion
Kubernetes Cost Optimization: Strategies That Cut Cloud Bills by 40 Percent

Trump Backs Texas AG Over Cornyn

Century Health Raises $5 Million in Seed Funding
Apple Packaging Impresses But Ports Matter More

Trump Signals Caution on Iran Deal

OpenAI Splits Voice Models For Enterprises

SpaceX Confirms Plans For Public Listing

How Fintech Platforms Are Making Microloans More Accessible Online

Flipper One To Complement Flipper Zero

Real-World Tech Investing Moves Center Stage

US Signals Progress in Iran Talks

Judge Questions Reopened Probe in Deportation

Mercury Raises $200M at $5.2B Valuation
AI Code Review: How LLMs Are Catching Bugs Before Production

Secret Service Gunfire, Indian Movement Rebrands

Trump Claims Iran Strait Deal Near
Google’s Big Bet On Usefulness Risks Backlash

Claude for Small Business Launch Announced

Perk Rush Precedes 8,000 Job Cuts

Vetir Raises $5.5M at $150M Valuation

Study Finds Automation Targets Higher-Paid Workers

Eurovision Figure Rejects AI Over Authenticity
