Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Parameters with the VFPOLEDB provider?
Message
From
01/10/2003 00:25:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Using Parameters with the VFPOLEDB provider?
Miscellaneous
Thread ID:
00833708
Message ID:
00833708
Views:
167
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 :)
Next
Reply
Map
View

Click here to load this message in the networking platform