Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFPOLEDB and Parameters
Message
 
 
À
29/06/2004 16:32:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00918660
Message ID:
00918787
Vues:
9
Hi Dan,

This works in VFP. Maybe you can translate it into ASP.NET?
oCmd.CommandText = [select * from customers where CustomerID = ?]
oPar = oCmd.CreateParameter("CustomerID", adVarChar, adParamInput, 6, "ALFKI")
oCmd.Parameters.Append(oPar)
oRs = oCmd.Execute()
>I'm using the VFPOLEDB provider and I am creating a command object like this:
>
>
>OleDbCommand objCmd = new OleDbCommand("select * from customers where CustomerID = ?");
>objCmd.Parameters.Add("CustomerID", "ALFKI");
>
>
>When I execute this command I am getting an OleDbException that says:
>
>
>No value given for one or more required parameters.
>
>
>How do I use the parameter collection to pass parementers to commands?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform