How to pass multiple values to single parameter in stored procedure
问题 I'm using SSRS for reporting and executing a stored procedure to generate the data for my reports DECLARE @return_value int EXEC @return_value = [dbo].[MYREPORT] @ComparePeriod = 'Daily', @OverrideCompareDate = NULL, @PortfolioId = '5,6', @OverrideStartDate = NULL, @NewPositionsOnly = NULL, @SourceID = 13 SELECT 'Return Value' = @return_value GO In the above when I passed @PortfolioId = '5,6' it is giving me wrong inputs I need all records for portfolio id 5 and 6 also is this correct way to