“Parameter ?_1 has no default value” error when ExecuteReader

后端 未结 4 1345
情深已故
情深已故 2021-01-26 04:10

Having problem with the code below in a web service. Have searched for a solution but nothing that I have seen seems different to what I am doing below.

NB: The

4条回答
  •  醉酒成梦
    2021-01-26 04:22

    The question in fact had a wrong assumption and that was that there was an error in the code.

    The syntax of the SQL query was correct and the parameter was being inserted correctly. However the test data contained errors and therefore no result was being returned by a correctly formatted query.

    Thanks all for input.

提交回复
热议问题