What am I doing wrong here?
string favorites = "210,213";
sqlCommand.CommandText = "select * from clients (nolock)
where Deleted = 0 and ClientID in (@favorites)";
sqlCommand.Parameters.AddWithValue("@favorites", favorites);
One other note: the "210,213" is just an example. It could be any length of numbers. That is why I am using the SQL IN operator.
Thanks.