I am trying to pass multiple values to a parameter default in SQL Server 2008.
Here is what I have:
Declare @PInactive  Int
Set @PInactive = Case When @PInactive is null Then (0 , 1) Else @PInactive End
Select
    ClientID
   ,PInactive
From
   #Client
Where
   PInactive in (@PInactive)
Gives me an error on Then (0 , 1)- stating incorrect syntax. I also tried with single quotes around the 0 and 1 to no avail.
Any suggestions would be greatly appreciated. I have many of these I need to use in this query.
Thanks, Scott