Add to Favorites    Make Home Page 4877 Online  
 Language Categories  
 Our Services  

Home » ASP Home » SQL Home » Database Display via GetString


Search Projects & Source Codes:

Title Database Display via GetString
Description This page demonstrates the capabilities how to display a table from a SQL statement a very fast and scaleable way using a recordset method called GetString. GetString essentially asks the backend database to build a huge string instead of moving the data as rows and columns. It allows very limited specifications, basically what string to place between each column and row and how to display nulls. Notice the total absence of the traditional EOF loop. Its speed and scalability advantages are explained in: Http:// This example does require ADO 2.0 or greater which can be downloaded from: If you are unsure which ADO version your server has will help you determine this. Does this approach matter for small data sets for example 9 rows x 2 columns of data? YES!!!!!!!! My site has SQLserver scripts that run like lightning. I once needed to fill a 9 item listbox from Access and got 90 sec script timeouts with movenext. Getstring never timed out. So in a real production situation it makes weak databases feasible and of course reduces the load on more industrial back-ends so maybe the SQLserver doesn't need as many indexes or RAM upgrades.
Category ASP » SQL
Hits 319666
Code Select and Copy the Code
<TITLE>dbtablegetstring.asp</TITLE> <body bgcolor="#FFFFFF"> <% whichDSN="DSN=Student;uid=student;pwd=magic" mySQL="select * from publishers where state='NY'" Set conntemp=Server.CreateObject("adodb.connection") whichDSN Set rstemp=conntemp.execute(mySQL) If rstemp.eof Then Response.Write "No records matched<br>" Response.Write mySQL & "<br>So cannot make table..." Call CloseAll Response.End End If Response.Write "<table border='1'><tr>" 'Put Headings On The Table of Field Names For Each whatever In rstemp.fields Response.Write "<td><b>" & & "</B></TD>" Next Response.Write "</tr><tr><td>" Response.Write rstemp.getstring(,, "</td><td>", "</td></tr><TR><TD>", "-null-") Response.Write "</td></tr></table>" Call CloseAll Sub CloseALL rstemp.close Set rstemp=Nothing conntemp.close Set conntemp=Nothing End Sub %> </body></html>

Related Source Codes

Script Name Author
ııııııııııııııııııııı VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld


Google Groups Subscribe to SourceCodesWorld - Techies Talk

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!

ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page


Google Search


Source Codes is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2022, All Rights Reserved.
Page URL:

Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review