i am tying to get record by passing string comma separated ids. My query in where is like,
Charindex(cast(v.Status as varchar(8000)), @status)
let suppose i pass parameter @status=15. now it will show me all records whose id is "1", "5"and "15" ? I just need record having id = 15 Hopes for your suggestions thanks
EDIT:
I actually use this link for solution,
RBarry Young answer
Passing a varchar full of comma delimited values to a SQL Server IN function