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
Which library is used by the testers and developers to develop automated tests and create testing tools?
Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?
What is the used of "ispostback" property?
Where session variables are stored?
What is the difference between session object and application object?
When should I use server transfer and response redirect?
Explain the difference between debug.write and trace.write? When should each be used?
What is ascx?
What is difference between inproc and outproc?
Explain Areas in MVC?
What is bound controls
In which event of page cycle is the viewstate available?
how to include timer or counting time to display next page in asp.net
What is the difference between equals() and == in c#?
Define secured sockets layer.