I have an adapter in c# and I want to know if a value (type of int) is in a list of values. How can I do it? when I do send IN @sendList it’s giving me an error. I tried to use LIKE like this @sendList LIKE '%'+ send +'%' but Adapter can’t convert from int to varchar…
I have an adapter in c# and I want to know if a value
Share
The easiest way would be splitting your list of IDs:
But if you insist on a parameter, you can write an SQL function that convert your list to string. You can find many examples (like this) over the web.