• One more major diff.

    You can not use temp tables in UDF

    But can use table variables in UDF....