Hi Friends
Differences between dataset.clone and dataset.copy?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 4, 2012, 10:36 PM
DataSet.Copy copies both the structure (tables, relations etc) and the data.In other word the Copy method of the DataSet class copies both the structure and data of a DataSet object. It returns a new DataSet object having the same structure including all DataTable schemas, relations, and constraints and data as the existing DataSet object.
DataSet.Clone copies only the structure of the DataSet.In other word the Clone method of the DataSet class copies only the schema of a DataSet object. It returns a new DataSet object that has the same schema as the existing DataSet object, including all DataTable schemas, relations, and constraints. It does not copy any data from the existing DataSet object into the new DataSet.
hope this help.
VulpesPosted Mar 2, 2012, 6:17 PM
The Copy() method copies both the structure and the data.
By structure, I mean the schema, relations and constraints of all DataTables in the DataSet.