I've been struggling with this all day - been all over SO and Google and can't find anything to help. I have a SQL query in an XSD tableadapter that looks something like this:
SELECT column A, column B, column C
FROM Table
WHERE variable1 = @UserID
AND variable2 IN (@ListOfItems)
Variable 2 is an int32 column.
So, I want to pass a comma-separated list of values to the @ListOfItems parameter. However, whenever I try, no matter how I configure the adapter (change the provider and data types for the parameter), it just kicks up and says "Conversion failed converting the varchar value '1,2,3' to data type int.
I can see that the string I'm generating is valid - if I copy the query into a SQL editor and hard code the string, it works fine.
Is what I'm trying to do even possible with a tableadapter?
Any help is appreciated beyond measure.