I am getting a huge amount of data from my database which I before iterated through in a recordset like this:
sql = "select * from table"
set rs = conn.execute(sql)
if not rs.eof then
do until rs.eof
id = rs("id")
fullname = rs("fullname")
response.write("<a href='/" & id & "'>Hi " & fullname & ".<br />")
rs.movenext
loop
Now I am using a static recordset using GetRows() like this:
sql = "select * from table"
set rssql = conn.execute(sql)
if not rssql.eof then
rs = rssql.getrows()
end if
rssql.close
if isarray(rs) then
for counter = lbound(rs) to ubound(rs)
id = rs(0, counter)
fullname = rs(1, counter)
response.write("<a href='/" & id & "'>Hi " & fullname & ".<br />")
next
end if
Is it really not possible to do something like rs("id", counter) instead of using static numbers? I have a dynamic amount of coloumns (created by the system) in my table and it is very dynamic which of them I need. The number of coloumns I need in each rows are specificed by another coloumn in the row.