Hi I have this stored procedure for Searching employee information. I want the user to have the choice to enter ID, or First Name or Last Name. but when I execute this stored procedure, it requires the other parameters.
  create proc searchtry
  @empID int,
  @firstname varchar(20),
  @lastname varchar(20)
  as
  begin
  select fld_EmployeeId,fld_EmployeeFirstName,fld_EmployeeLastName
  from Reference.tbl_EmployeeDetails
  where fld_EmployeeId  like @empID
  OR fld_EmployeeFirstName  like @firstname
  OR fld_EmployeeLastName  like @lastname
  end 
 
    