What is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.
Answer Posted / divya sharma
Execute Non Query- its for manipulation
(insert,delete,update),returns number of rows affected.
Execute Reader- accesses data in read only,forward only way
(perform commands such as select).
Execute scalar- returns only one value i.e. 1st row,1st
column, after execution of query.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Explain form level validation and field level validation?
9. Why should we hire you over the others waiting to be interviewed?
What is the Intermittent crashing of application in production?
What is a 404 redirect?
What is difference cookie and session?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
Is data edited in the Repeater control?
Describe a Windows Service and its lifecycle ?
Write a code for passing ArrayList in Web API?
Can any body provide me the sample web application in asp.net
What is s2s tracking?
How does session authentication work?
I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?
Web API uses which library for JSON serialization?
What are the properties of the eventargs argument when capturing keyboard events?