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

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

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();


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