[quoted text, click to view] On Fri, 12 Nov 2004 19:45:01 -0800, gtr wrote:
>Hello.
>I have a sql server stored procedure (with input parms) that outputs rows
>via a select stmt.
>
>I am using vb 6 and need to place those rows in a local access table.
>Obviously I can get a recordset back, loop thru the individual rows and
>insert them one by one into the local access table.
>
>Is there a way to firehose/stream those rows straight into my local access
>table?
>
>Thanks for your help.
Hi gtr,
Should this question not be asked in an Access or VB newsgroup?
Anyway, here are the steps to do what you want in Access. I know almost
nothing about VB, but I think you can work out how to initiate theses
steps from VB code.
1. Create a pass-through query (named Query1 in my example) with this SQL
test:
exec sp_who '3'
(I used sp_who as example proc and '3' as example parameter).
2. Create a second query with the following SQL text:
SELECT Query1.* INTO Test
FROM Query1;
3. Execute the second query.
Best, Hugo
--