Hi,
I have to write a stored procedure and where i have to pass value in comm separated values in IN CLAUSE.
this i want without creating function.
REATE PROCEDURE GetEmployees
@EmployeeIds VARCHAR(100)
AS
BEGIN
SELECT FirstName, LastName
FROM Employees
WHERE EmployeeId IN(@EmployeeIds)
END
EXEC GetEmployees'1,3,5,9'
Thanks,
Satyam