I am using AS 400 OLEDB with .NET. It uses \'?\' instead of \'@param to bind parameters with a command Now there is a situation where the command is like
SELECT
Try changing the names of the parameters
myCommand.Parameters.Add(new OleDbParameter("@startRowIndex",startRowIndex));
myCommand.Parameters.Add(new OleDbParameter("@startRowIndex2", startRowIndex));
myCommand.Parameters.Add(new OleDbParameter("@MaximumRows", MaximumRows));
but leave the SQL as is.