Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing Oracle stored procedures
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00697165
Message ID:
00697170
Vues:
16
Gary,

try this:

=SQLPREPARE(gnConnHandle, '{call delete_emp}')

HTH,
Armin

"",

>I have tried the following code in the click event of a foxpro7 button to execute a stored procedure in an Oracle database. I already have a connection and have cursor in VFP7 that displays to a grid but can not execute the stored procedure. What is wrong with this code?
>
>* Make a connection to Oracle table (rissingg.employees)
>* (execute delete_emp ) a stored procedure
>STORE SQLCONNECT('Oracle_table','user_id','password') TO gnConnHandle
>IF gnConnHandle <= 0
> =MESSAGEBOX('Cannot make connection',16, 'SQL Connect Error')
>ELSE
> =MESSAGEBOX('Connection made',48,'SQL Connect Message')
>ENDIF
>=SQLPREPARE(gnConnHandle,'execute delete_emp')
>=SQLEXEC(gnConnHandle)
>=MESSAGEBOX('DELETE_EMP HAS RUN',48,'SQLEXEC Message')
>** = SQLDISCONNECT(gnConnHandle) && save this line for use later
>THISFORM.Refresh

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform