IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Powerbuilder Discussion :

[PowerBuilder/Oracle] Problème de procedure stockée


Sujet :

Powerbuilder

  1. #1
    Nouveau membre du Club
    Inscrit en
    Août 2004
    Messages
    92
    Détails du profil
    Informations forums :
    Inscription : Août 2004
    Messages : 92
    Points : 30
    Points
    30
    Par défaut [PowerBuilder/Oracle] Problème de procedure stockée
    Hi all,

    1. I want to call Oracle Stored Procedure thru my PB application. Can you please tell me how i can do this?

    I am using PB 8.0.1 with Oracle 8.1.7. I want to call a store proc that will either return a single value or a result set. What is the way to call both kind of store procs from PB. I tried using the RPCFUN method but i coulden't get the result.

    Can i directly attach the store proc returning resultset to the datawindow? If yes then how can i change the output of a datawindow dynamically based on the input parameter?

    What is the purpose of DataWindow.Modify() method?
    Can i attach the store proc returning single value to a textbox or other control?

    What are different ways for all this?

    2. Also tell me how to access a value returned thru an OUT parameter from a store proc.
    Ex: if i have a store proc in oracle as:
    procedure showname(empno IN number, ename OUT varchar2) i.e. i am getting the name of the employee from emp table by entering the empno.
    Now when i call this store proc from PB, i want to display this name into a textbox when i click on a button. How can i get the returned name value from the procedure?

    Thanks

  2. #2
    Membre à l'essai
    Inscrit en
    Juillet 2004
    Messages
    29
    Détails du profil
    Informations forums :
    Inscription : Juillet 2004
    Messages : 29
    Points : 17
    Points
    17
    Par défaut store proc Powerbuilder
    En ce qui concerne les output, il faut les recuperer en utilisant fetch nom_proc into var1, ...varn.
    Qd au resultset il peut etre recupere via une dw de type store proc

    Voila tout ce que je peux dire dessus. J'espere que mes reponses ont ete claires

    A+

    jpdar

Discussions similaires

  1. iBatis/Oracle : problème exécution procédure stockée
    Par marinew dans le forum Accès aux données
    Réponses: 6
    Dernier message: 28/02/2011, 15h31
  2. Problème ( bloquant ) : " Procedure stockée "
    Par moutaki dans le forum PL/SQL
    Réponses: 2
    Dernier message: 17/07/2008, 14h45
  3. problème utilisation procedure stockée
    Par meddy dans le forum Développement
    Réponses: 7
    Dernier message: 17/04/2008, 14h10
  4. CRecordset - Procedure stocké sur Oracle
    Par Psykotik dans le forum MFC
    Réponses: 1
    Dernier message: 19/12/2005, 14h29
  5. [C#] [Oracle] Probleme avec une procedure stockée
    Par sronin1 dans le forum Accès aux données
    Réponses: 4
    Dernier message: 28/05/2004, 19h04

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo