| | |
display all the records in table in SQL using VBScript in ASP
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
Ive written a code in VBScript in ASP where back end is SQL. Here I want to display all the records with the data of the selected field of the table "Users" but it displays only the first record repetitively for the total number of records in the table times.--URGENT--
MS SQL Syntax (Toggle Plain Text)
<html> <body> <% dim con, rec, str, id, name, passwd str="select * from users" SET con=createObject("ADODB.Connection") con.Open "Provider=SQLOLEDB.1;Data Source=.;Initial Catalog=ComputerWorkshop","sa","" SET rec=CreateObject("ADODB.Recordset") rec.Open str, con id=rec("biID") name=rec("vUserName") passwd=rec("vPassword") Response.WRITE "biID : vUserName : vPassword " Response.WRITE "<hr>" do until rec.EOF Response.WRITE id & " : " & name & " : " & passwd response.WRITE "<br>" rec.MoveNext loop rec.close con.close %> </body> </html>
Please help me to display all the records with the selected fields data of the table.
Thank you in advance.
![]() |
Similar Threads
- SQL String question (ASP)
Other Threads in the MS SQL Forum
- Previous Thread: Compare 2 tables
- Next Thread: Use Count criteria as row header
| Thread Tools | Search this Thread |





