• Mark,

    I've found that UDF's that return table variables, or larger data sets tend to be awful slow, since the returned 'table' ends up not using any indices.  If you can avoid a UDF that returns a dataset (table) I would do so!

     

    Mark