i have a stored procedure
Create PROCEDURE abc @sRemovePreviouslySelectedWhereClause nvarchar(max) AS BEGIN SELECT * FROM table WHERE nId
You have to split the @sRemovePreviouslySelectedWhereClause parameter by ',' and place the resulting values in a temp table. Then your select would look like
select * from table where nId not in (select nId from #tempIds)