How can I add data from a DataTable to a database table directly?
I have searched on the internet not being able to get information from any site.
I have a DataTable and now I want to add that data to a database table.
importData.Tables[1];
for(int r = 0; r< totalrecoreds; r++;)
{
Array test[] = importData.Tables[1].Rows[r].ItemArray.ToArray;
}
What can I do? Do I have to add data one by one using for loop or is there any other method?