General information
Category:
COM/DCOM and OLE Automation
>>>I have the stored procedure complete and can run it in VFP by calling "do getpackagecontents"... i get back the result set I want.
>>>
>>>Now the question is... how do I call this SP from Excel? I have the data connection but I only have choices for command types of "table" and "SQL". Anyone able to lend me a hand?
>>>
>>>Thanks in advance!
>>
>>
>>Update.... I have figured out I can call the stored procedure using EXEC getpackagecontents
>>
>>Problem is though I'm not getting back the dataset... only the return value 'true'. I'm sure it is running all the code in the stored procedure though. Question is how do I get that data to refresh inside Excel?
>
>You have to use SETRESULTSET() function in the stored procedure to return result set.
Thanks for your help. unfortunately we are using Visual Foxpro 8 sp1 ... don't think that function existed until 9. very ellusive problem for me this morning. One query request taking me most of the day. lol
Thanks so much for your help. My hair is beginning to get pulled out.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only