I have an application that run a lot of query using OleDbCommand. Every query is plain SQL text, and the command does not use parameters.
Now, the application should support chinese char and I do not wanto to change every query by adding the N char in front of the string to specify.
I am trying to do something like that, but It does not work:
OleDbCommand command = new OleDbCommand("?", connect);
command.CommandType = CommandType.Text;
command.Parameters.AddWithValue("query", qry);
OleDbDataAdapter da = new OleDbDataAdapter(command);
where qry is the query to execute without the N char in front of every string.
I really do not wat to change every query, it would be a mess.
Do you have a solution for me?