I would like to used a stored procedure to pass in a list of numbers (Status codes). I have tried:
@Status varchar(10)
As
select distinct status from tblTable
where status in (@Status)
I have tried changing status from an integer to a 1 char field.
Using an exec statement is not an option.
Thanks,
Paul
@Status varchar(10)
As
select distinct status from tblTable
where status in (@Status)
I have tried changing status from an integer to a 1 char field.
Using an exec statement is not an option.
Thanks,
Paul