Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored procedures and the 26 parameters limit
Message
 
 
To
13/01/2005 05:50:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00976697
Message ID:
00977721
Views:
35
This message has been marked as a message which has helped to the initial question of the thread.
Hi David,

You may consider using XML. VFP9 OLE DB provider supports XMLTOCURSOR() and CURSORTOXML() functions whick makes it easier to use XML.

>
>We are experiencing the following problem with the VFP limit that a procedure can only have a maximum of 26 parameters :
>
>We are using VFP as front end and a VFP database as back end, but with a custom middle tier based on ADO, which should allow to switch to an Oracle back end with the least possible work. We decided that every access or modification of the database should be done through stored procedures, thus isolating the code to rewrite when switching to Oracle.
>
>A problem arose very quickly when I tried to write a procedure to insert in a table with 60+ field, because a VFP stored procedure cannot handle that many parameters.
>
>Does anybody have a workaround ? I tried to think about one without success. It would be nice to use an object reference or array instead of single-value parameters, but I don't think that ADO would handle those.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform