RE: using IN operator in a stored procedure
Another option is to dynamically build the sql statement.declare @sql varchar(2000)set @sql='select * from tbl where id in (' + @idlist +')'EXEC (@sql)If the ids are integer, then you will want to remove the qoutes prior to building the string.Brian
2004-05-04