Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What's the difference between Dataset.clone and Dataset.copy?

Answers were Sorted based on User's Feedback



What's the difference between Dataset.clone and Dataset.copy?..

Answer / bhavesh chhatrala

Clone :- It only copies structure, does not copy data.
Copy :- Copies both Structure and data

Is This Answer Correct ?    71 Yes 2 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / satyambabu

dataset.Clone :- It only copies structure, does not copy
data.
dataset.Copy :- Copies both Structure and data

Is This Answer Correct ?    57 Yes 2 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / suresh.gv

dataset.Clone or Deep Copy :- It only copies structure,
does not copy
data.
dataset.Copy or Shallow Copy :- Copies both Structure and
data

Is This Answer Correct ?    34 Yes 11 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / muzism

Shallow copy is when the address of the object is assigned
to another of the same type. If a change to one is made,
the change is apparent in both instances.

Deep copy is when the entire contents of the object are
copied from one object into another. Hence, there are two
autonomous instances of the object. If a change to one is
made, the change is confined to that object.

Dataset.clone() duplicates (only) the structure of an
dataset, with no data being duplicated.

Dataset.copy() performs a deep copy of the dataset

Is This Answer Correct ?    19 Yes 8 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / nitin

Dataset.clone method only copies structure while Copy
method copies structure as well as data also.

Is This Answer Correct ?    12 Yes 1 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / prudhvi

dataset.clone method copies the structure of the DataSet,
including all datatable schemas, relations, and constraints.
But it does not copy any data. Whereas, dataset.copy method
copies both the structure and data

Is This Answer Correct ?    5 Yes 0 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / anand r.b

DataSet.clone perform Shallow copy only strucature should
be copy not data
where as Datset.Copy perform Deepa copy it should copy
strucature with data

Is This Answer Correct ?    2 Yes 1 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / momo altawil

Clone() :cop only Structure and create new instance of the
obj.
copy() :cop the structure and Data without Create new
instance.

Is This Answer Correct ?    3 Yes 2 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / tahir

dataset.Clone or Deep Copy :- It only copies structure,
does not copy
data.
dataset.Copy or Shallow Copy :- Copies both Structure and
data

Is This Answer Correct ?    6 Yes 6 No

What's the difference between Dataset.clone and Dataset.copy?..

Answer / dasaradhi

Clone -- Creates another reference (Pointer) to the same
location.

Copy -- Creates two different references to two different
Address Spaces

DataSet dsOriginal = new DataSet();
DataSet dsClone = dsOriginal.Clone();
DataSet dsCopy = dsCopy.Copy();

What does this mean?
Well, here is the answer.
If you make changes to dsClone, they will reflect in
dsOriginal also. where as you do changes to dsCopy, the
changes will not reflect in dsOriginal.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More ADO.NET Interview Questions

What is ado.net code?

0 Answers  


What is the provider and namespaces being used to access oracle database?

5 Answers   E2E, Microsoft,


What is microsoft ado?

0 Answers  


what is type dataset?

3 Answers  


Define partial class?

0 Answers  


What is the use of SqlCommandBuilder?

0 Answers  


What is ado and rdo?

0 Answers  


Define different execute methods of ADO.NET command object ?

0 Answers   NA,


I loaded the dataset with a table of 10 records. One of the records is deleted from the backend, how do you check whether all the 10 records were present while updating the data(which event and steps) and throw the exception 28 can datareader hold data from multiple tables?

0 Answers  


Difference between ADO and ADO.net ?

11 Answers   Accenture, BirlaSoft, College School Exams Tests, Krest, Red Apple,


How to create data relations?

0 Answers  


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

0 Answers  


Categories