I am trying to figure out how to pass a string such as
'1, 6, 9' to a Stored Proc to filter a recordset. I can't do a range, I need to be able to pass multiple, out of sequence values.
SIMPLY:
DECLARE @Var as varchar(10)
SET @Var = '1, 6, 9'
SELECT *
FROM
WHERE Table.Column in (@Var)
I have been banging my head! Please Help!!!
'1, 6, 9' to a Stored Proc to filter a recordset. I can't do a range, I need to be able to pass multiple, out of sequence values.
SIMPLY:
DECLARE @Var as varchar(10)
SET @Var = '1, 6, 9'
SELECT *
FROM
WHERE Table.Column in (@Var)
I have been banging my head! Please Help!!!