I have the following code:
string name = "eric!";
string expression = "UserName = " + name;
DataRow[] result = myDataTable.Select(expression);
I want to select all rows with the name "eric!".
"!" gives me the following error:
Unable to interpret token "!" .
How can I select all rows with such tokens?
(I really need the expression “!” In the expression since I am extracting usernames from the .sql file)
source
share