I have something like this:
idsList = '1,23,46,67,82'
These are my parameters value which will be passed to my stored procedure, these are string values.
I want to use it something like this:
SELECT *
FROM table1
WHERE id IN (id_list)
id
is of typeint
while
idsList
isnvarchar
(string)
How do I split the values of idsList
and parse it to Int value then put it to my query?
Please for SQL Server only. Thanks in advance.