Define different execute methods of ADO.NET command object ?
Answer / Deepshikha Raghav
The ExecuteNonQuery method is used to execute SQL commands that do not return a result set, such as INSERT, UPDATE, or DELETE statements. The ExecuteScalar method returns the first column of the first row from the result set of a query, typically used for retrieving scalar values like counts. The ExecuteReader method returns a DataReader object, useful for reading forward-only, stream-based access to the data in a result set. Lastly, the ExecuteXmlReader method returns an XmlReader object, which provides read-only, forward-only access to XML data.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the different layers of ado.net?
What is the difference between Dataset. clone and Dataset.copy?
What is method to get XML and schema from Dataset? getXML() and get Schema ()
What is ole access?
Which is faster sqldataadapter and sqldatareader?
can we have multiple datatables in a datareader ?
18 Answers Fulcrum Logic, Infosys, Kale Consultants, Ness Technologies,
What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
Why do we use sqldataadapter?
What are the Different layers in ADO.Net?
What is csdl entity framework?
What are the ado.net connection pooling parameters?
What do you know about ado.net's methods?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)