Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call a VFP stored procedure in Excel 2007
Message
From
10/11/2009 15:10:19
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01434112
Message ID:
01434126
Views:
39
>>>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
Map
View

Click here to load this message in the networking platform