Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MySQL Stored Procedures
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
MySQL Stored Procedures
Divers
Thread ID:
01117533
Message ID:
01117533
Vues:
52
Hi all. I'm trying to exec a MySQL 5.0.20 stored procedure (which executes ok inside MySQL Administrator) thru MyODBC 3.51.12, but I always get an error.
The SP is defined like:

CREATE DEFINER=`root`@`%` FUNCTION `NumRecs`() RETURNS int(11)
SQL SECURITY INVOKER
COMMENT 'Prueba de Stored Procedure'
BEGIN
Declare nRecs Int;
Select Count(*) Into nRecs From NCH;
Return nRecs;
END

And in the VFP .prg:

h=SQLConnect("Necropolis")
If h>0
If SQLExec(h, "Call NumRecs();", "qRecs") < 0
AError(x)
MessageBox( x[3] )
EndIf
SQLDisconnect(h)
EndIf

TIA
Germán Turriziani
Marcos Juarez - Córdoba - Argentina
gturriziani@tutopia.com
gturriziani@hotmail.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform