Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to execute procedures through VFP OLE DB provider
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00576274
Message ID:
00576284
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Take a look at mskb#Q299820 'HOWTO: Execute a Stored Procedure in a VFP Database with the VFP OLEDB Provider'.


Also make sure that CommandType set to adCmdText (1) or to adCmdUnknown (8), and not to adStoredProc (4). Visual FoxPro requires that stored procedures have open and close parentheses "()" at the end of the stored procedure name. However, ADO removes the parentheses from the end of the stored procedure name when you use adStoreProc.

>
>>Hi folks,
>>
>>It is possible to execute stored procedures (stored in DBC files) through VFP OLE DB provider???
>>
>>I want to access data stored in a DBC file, from another non-VFP application, and my goal is to execute the procedures, but I just get this error message "OLE IDispatch exception code 0 from Microsoft OLE DB Provider for Visual FoxPro: One or more errors occurred during processing of command..."
>>
>>But executing a simple query like "select * from customers", then it runs OK.
>>
>>Any idea??
>>
>>TIA,
>>Dr. Programejos
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform