You can pass multiple values to a stored procedure using an IN clause in the stored procedure's parameter list.
For example, if you want to pass in a list of integers to a stored procedure, you could define the stored procedure as follows:
CREATE PROCEDURE MyProc
@intList INT[],
AS
BEGIN
SELECT * FROM MyTable WHERE MyColumn IN @intList
END
To call the stored procedure and pass in the list of integers, you can use the following code:
DECLARE @intList INT[]
SET @intList = (1, 2, 3, 4, 5)
EXEC MyProc @intList
Note that the list of integers is passed in as an array. You can also use a table-valued parameter to pass in a list of values, but this requires creating a user-defined table type and using it as the parameter data type.