What is the use of Merge method in Ado.Net?

 Posted by vishalneeraj-24503 on 12/18/2013 | Category: ADO.NET Interview questions | Views: 2116 | Points: 40
Answer:

Merge is used for merging one Datatable/Dataset to another Datatable/Dataset.it's just like Copy() method in Datatable/Dataset.

For Example:-

DataTable dt_employee = new DataTable();
DataTable dt_merge = new DataTable();

dt_merge.Merge(dt_employee);

Here,All the columns as well as rows of dt_employee will be copied or merged to dt_merge DataTable.
Merge method will have no return type.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response