Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Parameters with the VFPOLEDB provider?
Message
De
01/10/2003 00:25:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Using Parameters with the VFPOLEDB provider?
Divers
Thread ID:
00833708
Message ID:
00833708
Vues:
166
Is it possible to use parameters in INSERT and UPDATE commands with the VFP OLEDB Provider in .net (or any environment really?)

I have the following code:
System.Data.OleDb.OleDbCommand SaveGroupCommand = new OleDbCommand(
				"UPDATE GROUPDETAILS SET GROUPNAME = @groupName WHERE GROUPDETAILS.GROUPID = " + this.GroupId.ToString(), dbConnection);

SaveGroupCommand.Parameters.Add("@groupName", "Did it save");

SaveGroupCommand.ExecuteNonQuery();
But it fails with a syntax error, I have also tried using a "?" instead of the "@" and it is the same.

Is it possible to use parameters?
Have a nice day :)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform