Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A discussion on Remote View's vs SQL Pass Through...
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00354766
Message ID:
00356257
Views:
14
Jean-Rene:

Here are few code samples I pulled from an application I'm currently working on. Remember to test the result to make sure the command was sucessful.

*- Select SP, 'Cases' is the result cursor and lcCaseID is a parameter:
= SQLEXEC(oCMIS.ConHandle, '{CALL spGetCases(' + lcCaseID + ')}', 'Cases')

*- Insert SP, 'lcUpdateStr' is the parameter string thats generated by a method in the cursor object class:
= SQLEXEC(oCMIS.ConHandle, '{CALL spInsert' + THIS.ALIAS + '(' + lcUpdateStr + ')}')

*- Delete SP
= SQLEXEC(oCMIS.ConHandle, '{CALL spDelete' + THIS.ALIAS + '(' + ;
STR(EVAL('pk_' + THIS.ALIAS)) + ')}')

*- Update SP
= SQLEXEC(oCMIS.ConHandle, '{CALL spUpdate' + THIS.ALIAS + '(' + lcUpdateStr + ')}')

Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform