I\'m passing a list of int\'s (comma separated)
ie. 1, 2, 3, 4
1, 2, 3, 4
to my sp. But I\'m getting an error because the list is a string, and I\'m comp
If you are using sql server 2016 and above then use STRING_SPLIT
declare @intArray varchar(200) Set @intArray = '3,4,6,7' SELECT * FROM tbl_Employee WHERE employeeID IN (select * from STRING_SPLIT(@intArray, ','))