I am developing an ASP.NET application and passing a string value like \"1,2,3,4\" into a procedure to select those values which are IN (1,2,3,4) but its saying \"Conversion
Sure it can't do that,
The generated query would be sth like this
SELECT * FROM CheckList_Groups Where id in ('1,2,3,4')
and sure it can't be executed.
you can build the query in your stored procedure then execute it with exec
'SELECT * FROM CheckList_Groups Where id in (' + @pGroupIDs + ')'
or
SELECT * FROM CheckList_Groups Where charindex(','+id+',' , @pGroupIDs)>0
but you first must add the ','
to start and end of your parameter in your c# code