create table valued function

  • U rock!! It worked awesome. I would never thought of rewritting it like that. Runtime is now 1 sec from 7-8 sec which is awesome. Thank you!!!

  • Why is this part of your code?

    AND ISNULL(TableZ.MyCol,'') + '/' + ISNULL(Table2.MyCol,'') + '/' + ISNULL(Table3.MyCol,'')

    + '/' + ISNULL(Table4.MyCol,'')+ '/' + ISNULL(Table5.MyCol,'') IS NOT NULL

    Using the ISNULL followed by a check that it IS NOT NULL will always evaluate to true. It just extra processing for nothing (unless there's something I'm missing?).

Viewing 2 posts - 16 through 16 (of 16 total)

You must be logged in to reply to this topic. Login to reply