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 is ispostback property?
Which object encapsulates state or data of a user?
What are directives in asp.net?
Can more than one person use the same login?
What are the asp.net list controls and difference between them?
In order to get assembly info which namespace we should import?
If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?
What is the concept of postback in asp.net?
What is the difference between globalization and localization?
Hi this is the coding for adding data in to an xml table
i want the coding for update and delete
Try
Dim emp_xml_doc As New XmlDocument
If
System.IO.File.Exists(Server.MapPath("emp.xml")) Then
emp_xml_doc.Load(Server.MapPath("emp.xml"))
Dim myrow_element As XmlElement
myrow_element =
emp_xml_doc.CreateElement("EmpDetails")
Dim str As String
str = "
Define a web service in .net?
In which event are the controls fully loaded?
Which is the best institute to learn Microsoft Technologies and the faculty if you Know?
How does session authentication work?
What is the default Orientation property in a Menu control?