ExecuteScalar() only returns the value from the first column of the first row of your query.(in case of select query use ExecuteScalar)
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.
It's a verbatim string. This means newlines are preserved and escape sequences ignored.
What is parameterized query?
Parameterized SQL queries allow you to place parameters in an SQL query instead of a constant value. A parameter takes a value only when the query is executed, which allows the query to be reused with different values and for different purposes.
Are you sure you want to sign out?
Press No if you want to continue work. Press Yes to signout user.