• Since the best plan will vary based on the selectivity of the specific @BatchID passed in, try it with the RECOMPILE option:

    SELECT *

    FROM <myDatabase>.<mySchema>.vw_BatchItems

    WHERE BatchID = @BatchID

    OPTION ( RECOMPILE );

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.