What is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.
Answer Posted / sudha
Executereader :-is used with read Method and it will read
the query and fill that in a dataset.we use it in
datareader.
Execute Scalar:-is used when you want a single output.It is
used with Return Value.
ExecuteNonQuery:-This Function is Used When you want to
update your query it does not perform any aoperation like:-
update,deletion,insert.It is used with Perform Action.
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is tracing? Where is it used?
What is the difference between session and viewstate in asp.net?
How do you change the session time-out value?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
Explain the difference between singleton and single call?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
Is asp.net outdated?
How do you handle server controls?
Explain the difference between asp and asp.net?
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
What are the disadvantages of asp.net?
Define reflection in .net?
Explain the components of web form in asp.net
Define managed code and managed data in .net?
What is in a session cookie?