Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A discussion on Remote View's vs SQL Pass Through...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00354766
Message ID:
00356257
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform