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
How to fetch a data from one table to another table in asp.net ?
Why is the standalone environment only useful during the development process?
What is routing in MVC?
Does asp.net still recognize the global.asa file?
What is a swagger in web api?
What is inheritance and an how it be used, example with an example?
Write a code snippet to implement the indentation in json in web api.
Which methods validate all the controls on a page?
What is difference between ispostback and autopostback in asp net?
Write the different features of a Thread and a Process?
Explain diff. Between friend and protected friend?
What is the use of the tag in the web.config file?
What is the differences between a primary key and a unique key in sql server?
What is request and response in asp.net?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?