General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
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
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