The following SQL query with parameters works:
select A from B where C = @param1;
C#:
command.Parameters.AddWithValue("@param1", "TEXT");
NOTE: C
is a column of string type
The following SQL Query with parameters does not work:
select A from B where C = @param1 and D in (@param2);
C#:
command.Parameters.AddWithValue("@param1", "123,234,456");
NOTE: D
is a column of int
type