Nevermind guys, I decided to just use a table variable and it works fine, Not sure if it's the most effiecnt way to complete the task, so would still be interested in hearing and seeing other ways to have gone about this.ELSE IF (@AreaAdmin = 1 AND @CategoryID = 3)declare @FliterTableVar table ( FilterID VARCHAR(3), FilterName nchar(5))BEGINBEGIN Insert Into @FliterTableVar (FilterID, FilterName) SELECT 'SPC' AS FilterID , 'SPC' AS FilterName Insert Into @FliterTableVar (FilterID, FilterName) SELECT 'VZW' AS FilterID , 'VZW' AS FilterNameEND SELECT * FROM @FliterTableVarEND
Thanks