Check the compatibility level of the database. It worked fine for me until i changed the compatibility level of the database that the function was installed in to sql2000.
Bob
-----------------------------------------------------------------------------
How to post to get the best help[/url]