Join tables

Hi @shrishti.diggikar ,

We could also try with the Except method provided that the Schema of the two tables are the same :

dt_newRecords = dt_todayRecords.AsEnumerable.Except(dt_allRecords.AsEnumerable,DataRowComparer.Default).CopyToDataTable

The Direct CopyToDatatable gives out error if there are no filtered rows found, hence we could follow the below method to handle it :

1 Like