Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Oracle SP
Message
De
12/07/2000 09:59:52
Yuri Myasnikov
Bank Menatep Spb., Chelyabinsk Dep.
Chelyabinsk, Russie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00390579
Message ID:
00391199
Vues:
27
Hi!

Small correction :)


h=SQLConnect("ORADSN","USERID","PWD") && Establish a connection
IF h > 0
WAIT WINDOW "Connection Successful" NOWAIT
*
* Execute the stored procedure
*
lcId = "123456" && Passed In Proc
ldDateReport = space(10) && Passed Out Proc
lnResult=SQLExec(h,"{Call SP_MYPROC((?lcId, ?@ldDateReport) }"
if lnResult <> -1
WAIT WINDOW "Execute Successful" NOWAIT
else
WAIT WINDOW "Execute Failed" NOWAIT
endif
=SQLDisconnect(h) && Terminate the connection
ELSE
WAIT WINDOW "Connection Failed"
ENDIF

Best Regards!

Yuri.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform