0

What I want is an array which would store all the ID values coming from the database.How to do the same?

2
  • Can you fetch value from database. If it is post some codes what you've tried Commented Oct 20, 2012 at 10:38
  • Please provide more information. How exactly are the values "coming from the database"? What do you want to do with the values once you retrieved them from the database? Commented Oct 20, 2012 at 10:55

1 Answer 1

1

This is a task for the ADO GetRows method

<%
Dim aRs, oConn, oRS, sSQL
Set oConn=Server.CreateObject("ADODB.Connection")
oConn.Provider = Application("Provider")
oConn.Open Application("Database"), Application("UserName"), Application("Password")
sSQL="SELECT ID FROM yourtable ORDER by ID"
Set oRS = oConn.Execute(sSQL)
if not oRS.eof then
        aRS=oRS.GetRows()
end if
oRS.close
oConn.close
%>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.