Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO and SQL stored procedures
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00560234
Message ID:
00560253
Vues:
18
James,
Try declaring an additional parameter as an OUTPUT parameter, ie:

CREATE PROC sp_getkey @tablename varchar(50), @returnkey integer OUTPUT AS.....

Set the @returnkey parameter in your stored procedure and check it AFTER calling the execute method to see what value was returned.

.Execute()
lnReturnKey = .Parameters('@returnkey').Value

Typically, creating a recordset that only contains one value is a lot of overhead and should be avoided if you can return a parameter instead.

Hope this helps.
Kurt
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform