What is the use of command objects?

Answer Posted / sandyni

Command object is used to connect the connection object to
data reader or dataset. and is used to execute queries and
stored procedures which are defined in the commandtext
property.

the main methods for command object property are....

1. ExecuteNonQuery()
2.ExecuteReader()
3.ExecuteScalar()

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the drawbacks of using ado.net?

691


Explain the advantage of ADO.Net?

716


List the 4 common ado.net namespaces?

857


What are the connected and disconnected modes in ado.net?

682


How do I delete a row from a DataTable?

752






Which object holds only data and does not interact with data source?

699


Why edit is not possible in repeater?

685


What is the use of connection object in ado.net?

752


What are the features of ado.net?

676


How to add an aggregate column?

730


Is ado.net dead?

717


Give an example that shows how to execute a stored procedure in ado.net?

767


What is difference in record set and dataset?

705


Is ado.net an orm?

702


How do you merge 2 datasets into the third dataset in a simple manner?

747