In the parameter list for the proc, give the params default values of NULL like thisSP_SOMETHING (@DateFrom datetime = NULL,@DateTo datetime = NULL,@Param1 char(8) = NULL,@Param2 char(3) = NULL,@Param3 tinyint = NULL )
Then in your WHERE clause check for the NULL something like thisWHERE (@DateFrom IS NULL OR @DateTo IS NULL OR datecol BETWEEN @DateFrom AND @DateTo)AND (@Param1 IS NULL OR col1 = @Param1)AND (@Param2 IS NULL OR col2 = @Param2)AND (@Param3 IS NULL OR col3 = @Param3)