I have a procedure in which I have allowed variable number of arguments i.e
CREATE Procedure OutputProcedure
@FirstName nvarchar(20) = null,
@MiddleName nvarchar(20) = null,
@LastName nvarchar(20) = null,
@City nvarchar(20) = null,
@AveragePercentage int out
AS
BEGIN
/*CODE*/
End
Now, I want to be able to count the number of arguments which were passed to the procedure inside of this procedure itself. How can I do this?
I found This but it takes the name of the procedure being checked for the arguments which I think should not be the case if I was to do count inside of the same procedure only.