I have a query where I want to return all the rows which are associated with a list of values. You could write this very simply as:
select * from TableA whe
You can also use multiple resultsets and send a bounch of query like this:
select * from TableA where ColumnB = @value0
select * from TableA where ColumnB = @value1
select * from TableA where ColumnB = @value2
...
select * from TableA where ColumnB = @valuen
in a single call. even if apparently counter intuitive it leverages execution plan and is safe in term of parametrization.