Computer Science, asked by minalraghu7346, 1 year ago

Difference between executereader and executenonquery

Answers

Answered by Somyasisodiya
6
ExecuteScalar() only returns the value from the first column of the first row of your query. ExecuteReader() returns an object that can iterate over the entire result set. ExecuteNonQuery() does not return data at all: only the number of rows affected by an insert, update, or delete.
Similar questions