This works:
However, this does not:
Can any of you help on this one? I'm getting something like, "error converting varchar '1,2,3,4' to int." What gives? Kevin
slanek@ssd.fsi.com
Code:
SELECT *
FROM myTable
WHERE myCol IN (1,2,3,4)
Code:
DECLARE @myVar varchar(8)
SET @myVar = '1,2,3,4'
SELECT *
FROM myTable
WHERE myCol IN (@myVar)
slanek@ssd.fsi.com