GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 150 of 164    Print  
What is the difference between Dataset.clone() and Dataset.copy()?

  
Total Answers and Comments: 6 Last Update: November 22, 2008     Asked by: srini 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Dharmendra
 
Using Dataset.clone() creates new instance of the same object.
Using Dataset.copy() copies content of data to another object wihtout creating new instance.

Above answer was rated as good by the following members:
vkreddy_g, Veerapally, aanand_agrawal, mm_farahat, shebageorge, Ag2703
November 20, 2007 02:07:44   #1  
sejal patel        

RE: What is the difference between Dataset.clone() and...
Clone : Copy only structure
Copy : Copy Structure & Data Both

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 1Overall Rating: +1    
November 26, 2007 03:27:47   #2  
Dharmendra        

RE: What is the difference between Dataset.clone() and...
Using Dataset.clone() creates new instance of the same object.
Using Dataset.copy() copies content of data to another object wihtout creating new instance.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 1Overall Rating: -N/A-    
December 04, 2007 03:05:56   #3  
parii Member Since: December 2007   Contribution: 30    

RE: What is the difference between Dataset.clone() and Dataset.copy()?
Dataset.clone(): Copies the structure of the dataset including all schemas relations and constraints. Does not copy any data.

Dataset.copy(): Copies both the structure and data.

 
Is this answer useful? Yes | NoAnswer is useful 4   Answer is not useful 0Overall Rating: +4    
May 28, 2008 08:00:59   #4  
aspnetvbnet Member Since: May 2008   Contribution: 1    

RE: What is the difference between Dataset.clone() and Dataset.copy()?
copy only data
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
July 08, 2008 07:23:34   #5  
lcutish Member Since: October 2006   Contribution: 3    

RE: What is the difference between Dataset.clone() and Dataset.copy()?
Copy methods copies both data and structure to another Dataset.
Clone copies only Structure. Ie it will create an empty DataSet.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 22, 2008 10:54:38   #6  
ishaahuja Member Since: November 2008   Contribution: 1    

RE: What is the difference between Dataset.clone() and Dataset.copy()?

Dataset.clone() copies the structure of the dataset including all data table schemas relations and constraints. and Dataset.copy() copies the structure with data of the Dataset.


Isha Ahuja


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape