I currently have a stored procedure that I want to take on a flexible number of arguments. Does anyone know if that is possible?
ALTER PROCEDURE myStoredProc
(@variable1 INT,
@variable2 INT,
@variable3 INT)
The example above, I have 3 parameters. But is it possible to have N number? And in the body have loops that go over the N number of variables for some sort of execution?
Thank you.