I want to pass multiply values parameter to my procedure and use it as a filter. My parameter is called @Month and it's datatype is NVARCHAR(MAX) in the procedure. I have used filter as
WHERE (cal.CalendarYear = @Year) AND (cal.MonthId IN (@Month))
and also tried STRING_SPLIT function.
However, when I run my report, it return an error
Conversion failed when converting the nvarchar value '1,2,3,4,5,6,7,8,9,10,11,12' to data type int.
TABLE
variable to pass the values as rows instead. – TT.