What is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.
Answer Posted / surya narayana panda
ExecuteReader-It is readonly forward only.It executes the
command and return the reader objectl.It executes only
select command.
ExecuteNonQuery-It executes command and return's no
value.It returns only how many row effected.It returns
value when the commandType is stroedProcedure with output
parameter.
ExecuteScalar-It executes the command and return a single
value.That is 1st column and 1st row.
| Is This Answer Correct ? | 24 Yes | 2 No |
Post New Answer View All Answers
Explain how cookies work. Give an example of cookie abuse.
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What’s the catch?
What is base class of .net?
What r the asp.net list controls and difference between them?
Describe how passport authentication works.
What does asp.net stand for?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
What are the file extensions for razor views?
how can create login from create and written conde in asp.net
What is loop in asp.net?
What is asp.net mvc5? : Asp.Net MVC
How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC
What is the equivalent of date() and time() in asp.net?