Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning Values when using Store Procedures
Message
De
03/07/2006 04:44:24
 
 
À
30/06/2006 04:03:45
Information générale
Forum:
Visual Basic
Catégorie:
SQL Server
Divers
Thread ID:
01132618
Message ID:
01133367
Vues:
22
This message has been marked as the solution to the initial question of the thread.
I guess you somehow ignored the second part of my message. If in your VB Code you make use of Command object, this would be much better. Following is the segment that should return the new value to you.
Dim mcmd as ADODB.Command

mcmd.CommandType=adCmdStoredProc
mcmd.CommandText="AddRecord"

dim mParam as ADODB.Parameter

Set mParam = mCmd.CreateParameter("MyNewKey",adinteger,adParamOutput)
mCmd.Parameters.Append mParam

mcmd.Execute

msgbox mcmd(0)
Best Luck..
Nilesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform