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
The solution I found is quite simple, this works like a charm and there's no need for sps or other functions;
SQL:
SELECT whatever
FROM whatever
WHERE (PATINDEX('%''' + CAST(id AS Varchar(20)) + '''%', @param) > 0)
C#:
String param = "'''1234'',''4567'''";
dataTable1 = tableAdapter1.getYourValues(param);