OleDbCommand objCmd = new OleDbCommand("select * from customers where CustomerID = ?myParam"); objCmd.Parameters.Add("@myParam", "ALFKI");gives me
Command contains unrecognized phrase/keyword.and
OleDbCommand objCmd = new OleDbCommand("select * from customers where CustomerID = ?myParam"); objCmd.Parameters.Add("@myParam", "ALFKI");gives me
Missing operand.>I think you are missing "@" in your syntax. I think it should be
>objCmd.Parameters.Add("@CustomerID", "ALFKI"); >>
>>OleDbCommand objCmd = new OleDbCommand("select * from customers where CustomerID = ?"); >>objCmd.Parameters.Add("CustomerID", "ALFKI"); >>>>
>>No value given for one or more required parameters. >>>>