I have two variables like:
@FieldName
@values
Those two variables hold values like:
@FieldName– contains[a],[b],[c],[d]@values– contains5,6,7,8
Now I need to retrieve the data of column 'b' & 'd' only.
How can we get b=6 & d=8?
Thanks in advance.
well I hate to do such a things on SQL Server, but
end
You can also put all this list into temporary/variable table and do join.
Or, even better, you can pass parameters into sp in xml form and not in distinct lists