Command.ExecuteNonQuery() return always -1

后端 未结 4 1554
一生所求
一生所求 2021-01-25 04:35

I have a problem when I executed Select command in C# using ExecuteNonQuery() method; It always return -1; This means that no record returned by the selected statement, doesn\'t

4条回答
  •  北恋
    北恋 (楼主)
    2021-01-25 04:50

    Use ExecuteReader() OR SqlDataAdapter() for fetching rows.

提交回复
热议问题