I\'ve got the following query that returns 2 records (in DataSet\'s query builder)
SELECT EmpID, Name, id
FROM Users
WHERE (CAST(id AS Var
A variable is not allowed in the IN clause.
You are expecting the values as a comma delimited string you could use the split function (user defined and non-standard) to join them with the original tables:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=326300&SiteID=1
For more information you can visit this