• Thanks ChrisM@Work for your comment. I got the tone.

    Generally UDFs are slow as compare to same query.

    Vimal LohaniSQL DBA | MCP (70-461,70-462)==============================The greatest barrier to success is the fear of failure ** Success is a journey not a destination**Think before you print, SAVE TREES, Protect Mother Nature