Can someone please show me how to use a Searched CASE expression inside of the select method of a datatable? I keep getting the error:
Syntax error: Missing operand after 'WHEN' operator
This is what I'm trying and it's not working with the error above.
DataRow[] unMappedRows = matches.Select("(CASE WHEN TRUE THEN 1 END) = 1");
I'm using SQL Server 2008 R2 and .NET Framework 4.