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
How would you turn off cookies on a page of a website?
Why mvc is better than asp.net? : Asp.Net MVC
What do you mean by role-based security?
In which situation can you not use a viewstate?
What is a runtime version?
What is different in .net 1.1 and .net 2.0?
What is the procedure to create the environment for asp.net? : asp.net mvc
How do u deploy ur project?
is gateway for sms continue connected for sending sms.how?
How do cookies work?
Where can I get information on cookies in asp.net?
What is a session government?
What are the different types of Caching techniques in ASP.NET?
Where session id is stored?
How many types of session in ASP.NET