I have an SQL where clause: -
where table1.resource in @ListOfRes
I'm trying to add to the SQL command like this:-
command.Parameters.AddWithValue("@ListOfRes", "'1','2'");
The result I'm looking for is: -
where table1.resource in ('1','2')
But I can't seem to build a string this way, is there a different data type I need to be using?