Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the return value from a foxpro stored procedure
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Getting the return value from a foxpro stored procedure
Divers
Thread ID:
00821760
Message ID:
00821760
Vues:
52
Is there any way to get a return value from a stored procedure? Here is the code that I am using. I need to get the return value of the stored procedure "getnextid()."

OleDbConnection myConnection = new OleDbConnection();
myConnection.ConnectionString = ConfigurationSettings.AppSettings["DataPath"];

OleDbCommand vfpNextId = new OleDbCommand();
vfpNextId.Connection = myConnection;
vfpNextId.CommandText = "getnextid( asnctlg, id_asnctlg )";

myConnection.Open();

try
{
vfpNextId.ExecuteNonQuery();
}
catch(Exception ex)
{
this.SetError(ex.Message);
return false;
}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform