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 key events of sqlconnection class?

616


What are advantages of microsoft-provided data provider classes in ado.net?

547


Which is the feature of ado.net?

530


What is difference between executequery and executeupdate?

504


Describe the disconnected architecture of ADO.NET’s data access model.

544






Explian About DataAdapters

590


What are the major challenges in accessing data from a database?

541


What is the difference between executequery and executenonquery?

510


What does ado stand for?

525


Command objects uses, purposes and their methods.

523


How to add an aggregate column?

537


How can I retrieve two tables of data at a time by using data reader?

515


Which is faster entity framework or ado.net?

504


What is ado or jdbc?

516


What is difference between datatable and dataset?

526