does not have a corresponding column in the data reader with the same name

前端 未结 4 1237
清歌不尽
清歌不尽 2021-01-04 00:56

I have Table named tbl_search with columns : id(int), title(nvarchar100), result(ntext) and i want using SQL query, like

4条回答
  •  执念已碎
    2021-01-04 01:24

    I solved this issue because I had a '@StartDate' in my last select and asp.net could not read it and returned it as 'Column1', so I have solved this by assigning @StartDate to a variable which is good practice anyway.

提交回复
热议问题