I have the following ms-sql query
select * from category where categoryId in (1)
Now instead of 1, I need to pass more than one categoryId dynamically using parameters. Something like this:
select * from category where categoryId in (@catId)
and value of @catId would be something like '1,2'. When I tried this I got an error saying
Error converting data type varchar to bigint.
How can I pass more than one categoryId.
Thanks in advance.