xstopx81
Aug 2nd, 2000, 12:48 PM
I'm currently making a program that reads the data from SQL server. Once I get connected to the server, I have to store all the informations from the database to an array.
Set m_oconn = CreateObject("adodb.connection")
m_oconn.open "sql"
sql = "SELECT top 100000 * FROM [masterdisc2000_email]"
Set l_ors = m_oconn.execute(sql)
dim storeinfo as variant
storeinfo = l_ors
After I do these statements, if I try to get single info in storeinfo, for example, storeinfo(5), error message comes out stating that the content is out of range. There are only one field in masterdisc2000 which contains email address. Help needed ASAP...
Another question... is creating a recordset and running a loop after faster or storing the info into an array after reading the info from the server and then running a loop with an array faster?
[Edited by xstopx81 on 08-02-2000 at 02:01 PM]
Set m_oconn = CreateObject("adodb.connection")
m_oconn.open "sql"
sql = "SELECT top 100000 * FROM [masterdisc2000_email]"
Set l_ors = m_oconn.execute(sql)
dim storeinfo as variant
storeinfo = l_ors
After I do these statements, if I try to get single info in storeinfo, for example, storeinfo(5), error message comes out stating that the content is out of range. There are only one field in masterdisc2000 which contains email address. Help needed ASAP...
Another question... is creating a recordset and running a loop after faster or storing the info into an array after reading the info from the server and then running a loop with an array faster?
[Edited by xstopx81 on 08-02-2000 at 02:01 PM]