I am creating a stored proc for SQL Server. The WHERE clause of my select statement contains an IN statement. I want to pass a series of integer IDs into the stored procedure, to be used with the IN operator. So essentially the SQL will be...
SELECT * From Customers Where CustomerId IN (1,2,3,4,5);
So, how do I pass the 1 thru 5 to the stored proc? Thanks!