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 does uri mean?
what cut off mark for po's,what questions they asked for interview?
Explain how dot net compiled code will become platform independent?
Explain the server control events of asp.net ?
What is application Object?
What are session cookies?
What is the difference between ASP Session State and ASP.Net Session State?
What is the caspol.exe tool used for?
How about the security in Activex DLL and Activex EXE ?
What are the security types in ASP/ASP.NET? Different Authentication modes?
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
What is globalization and localization in asp net?
What is the difference between system.stringbuilder and system.string
How many types of cookies are available in asp?
Do cookies store passwords?