What is the use of mcommand ?

mcommand.fill(ds,"orderdetails");

Answer Posted / purushotham

mcommand is DataAdapter

DataAdapter object is like a bridge that links the database
and a Connection object with the ADO.NET-managed DataSet
object through its SELECT and action query Commands. It
specifies what data to move into and out of the DataSet.
Often, this takes the form of references to SQL statements
or stored procedures that are invoked to read or write to a
database.
The DataAdapter provides four properties that allow us to
control how updates are made to the server:
* SelectCommand
* UpdateCommand
* InsertCommand
* DeleteCommand

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is asp.net and how it works?

590


How do you hide the columns?

670


When cookie will expire?

687


Explain the differences between clr & cts?

637


What are the Types of object in asp

724






Which library is used by the testers and developers to develop automated tests and create testing tools?

625


Define a multilingual website?

618


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

712


Which method is used to enforce garbage collection in .net?

511


Why we are using mvc instead of asp.net? : Asp.Net MVC

603


What is ascx?

621


Is asp.net different from asp? If yes, explain how?

595


What are the differnt types of handler in ASP.NET?

629


How you can stop the validation of ASP.NET controls from client side?

615


Define resource files.

658