• SSChampion,

    I re-compiled procedure using local variables.

    But... first run with ( @P_UNIT_TYPE = 'VEH' )

    took 11 seconds.

    Next run ( @P_UNIT_TYPE = 'COM' )

    is taking more than 2 min... and still running.

    Still parameter sniffing occurring?...