I have two Data Tables as DtSource and DtDestination with same schema. I want to append the rows from DtSource to DtDestination and this should be done without for each loop as DtSource data table has 50000+ rows and looping through 50000+ rows takes a lot of time.
In .NET we can use DtDestination.Merge(DtSource). But when trying to use invoke Code and passing DtSource and DtDestination as arguements and code as DtDestination.Merge(DtSource) I’m getting error “Invoke code: Exception has been thrown by the target of an invocation.”
Can anyone help me achieve this without using for each loop please