I have a stored procedure which looks like
CREATE PROCEDURE Update-all
( @RowID INT,
@Parameter1 NVARCHAR(50),
@Parameter2 INT
)
As
....
i will be passing @Parameter1 / @Parameter2 based on different conditions. if i don't pass @Parameter1 / @Parameter2 ,i am getting a error the stored procedure expects @parameter1/@parameter1 which is not supplied . Any ideas how to fix this issue?