Hello folks.
Wow...just got back to Tek-tips after some time away. The new look is really sharp.
Question: I just finished some experimentation with populating a native MS Access table with the data contained in an ADO recordset. Initially, I ran a loop on the ADO recordset, and imbedded an INSERT statement within it. I updated the status bar (syscmd acsyscmdsetstatus...) with a counter so you can track progress. It was ... ah...quite slow (say, for 3k records).
So I had the "bright idea" to take my SQL, put it in a pass-through query, and then run and INSERT statement (only one this time) that inserted the query into the table. This was about 500 times faster. So this is good.
The question is, though, there are times when it would be really convenient if I could skip the whole set qDf=dBs.createquery("somequery)....qDf.connect="OBDC..."...qdf.SQL="{call pkg...procedure..from...Oracle"...insert into myNativeAccessTable select * from passthroughquery..etcetc...and just take the data out of the ADO recordset and transfer it to a table directly.
I'm one of those guys that tries to stick with code and stay away from all those gui-based object things as much as possible. Don't ask me why..
Anyway, if you have any ideas (I've asked around before and only got deafening silence for an answer...is it a bad question?), I would greatly appreciate your input.
BTW, the reason I need the data in a native Access table is another issue...and this thing is already long.
Thanks.
-Mike Kemp
Wow...just got back to Tek-tips after some time away. The new look is really sharp.
Question: I just finished some experimentation with populating a native MS Access table with the data contained in an ADO recordset. Initially, I ran a loop on the ADO recordset, and imbedded an INSERT statement within it. I updated the status bar (syscmd acsyscmdsetstatus...) with a counter so you can track progress. It was ... ah...quite slow (say, for 3k records).
So I had the "bright idea" to take my SQL, put it in a pass-through query, and then run and INSERT statement (only one this time) that inserted the query into the table. This was about 500 times faster. So this is good.
The question is, though, there are times when it would be really convenient if I could skip the whole set qDf=dBs.createquery("somequery)....qDf.connect="OBDC..."...qdf.SQL="{call pkg...procedure..from...Oracle"...insert into myNativeAccessTable select * from passthroughquery..etcetc...and just take the data out of the ADO recordset and transfer it to a table directly.
I'm one of those guys that tries to stick with code and stay away from all those gui-based object things as much as possible. Don't ask me why..
Anyway, if you have any ideas (I've asked around before and only got deafening silence for an answer...is it a bad question?), I would greatly appreciate your input.
BTW, the reason I need the data in a native Access table is another issue...and this thing is already long.
Thanks.
-Mike Kemp