I want to create a copy of a datatable. I am not sure what is the correct way to do it. So, I decided to use
DataTable filteredData = sourceDataTable.Select(expression).CopyToDataTable();
as mentioned in this post - How to pass DataTable.Select() result to a new DataTable?
I tried to use it by setting expression = "where 'TRUE' = 'TRUE'". I hoped that this will not filter any rows from original data table, ie full copy. But, I got the error - System.Data.SyntaxErrorException: Syntax error: Missing operand after ''TRUE'' operator.
How do I copy a datatable easily ?