I created this stored procedure
create proc SelectEmployee
@Name nvarchar(30),
@Gender nvarchar(30)
as
begin
Select * from Employee where name=@Name and gender = @Gender
end
but when I execute without a parameter I get this error
Procedure or function 'SelectEmployee' expects parameter '@Name', which was not supplied.
Is it possible to execute a stored procedure without providing the parameter value? and How can I make the parameter not mandatory in a stored procedure?