SyntaxFix
Write A Post
Hire A Developer
Questions
You need to treat a table valued udf like a table, eg JOIN it
select Emp_Id from Employee E JOIN dbo.Splitfn(@Id,',') CSV ON E.Emp_Id = CSV.items